ez-a-sync 0.32.11__cp313-cp313-win_amd64.whl → 0.32.13__cp313-cp313-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of ez-a-sync might be problematic. Click here for more details.
- a_sync/_smart.c +1122 -1133
- a_sync/_smart.cp313-win_amd64.pyd +0 -0
- a_sync/_smart.pyx +11 -10
- a_sync/a_sync/_descriptor.cp313-win_amd64.pyd +0 -0
- a_sync/a_sync/_flags.cp313-win_amd64.pyd +0 -0
- a_sync/a_sync/_helpers.cp313-win_amd64.pyd +0 -0
- a_sync/a_sync/_kwargs.cp313-win_amd64.pyd +0 -0
- a_sync/a_sync/abstract.cp313-win_amd64.pyd +0 -0
- a_sync/a_sync/base.cp313-win_amd64.pyd +0 -0
- a_sync/a_sync/flags.cp313-win_amd64.pyd +0 -0
- a_sync/a_sync/function.cp313-win_amd64.pyd +0 -0
- a_sync/a_sync/method.cp313-win_amd64.pyd +0 -0
- a_sync/a_sync/modifiers/manager.cp313-win_amd64.pyd +0 -0
- a_sync/a_sync/property.cp313-win_amd64.pyd +0 -0
- a_sync/async_property/cached.cp313-win_amd64.pyd +0 -0
- a_sync/async_property/proxy.cp313-win_amd64.pyd +0 -0
- a_sync/asyncio/as_completed.cp313-win_amd64.pyd +0 -0
- a_sync/asyncio/create_task.c +735 -579
- a_sync/asyncio/create_task.cp313-win_amd64.pyd +0 -0
- a_sync/asyncio/create_task.pyx +7 -4
- a_sync/asyncio/gather.cp313-win_amd64.pyd +0 -0
- a_sync/asyncio/igather.cp313-win_amd64.pyd +0 -0
- a_sync/asyncio/sleep.cp313-win_amd64.pyd +0 -0
- a_sync/debugging.c +3 -2
- a_sync/debugging.cp313-win_amd64.pyd +0 -0
- a_sync/exceptions.cp313-win_amd64.pyd +0 -0
- a_sync/functools.cp313-win_amd64.pyd +0 -0
- a_sync/iter.c +216 -81
- a_sync/iter.cp313-win_amd64.pyd +0 -0
- a_sync/iter.pxd +2 -0
- a_sync/primitives/_debug.cp313-win_amd64.pyd +0 -0
- a_sync/primitives/_loggable.cp313-win_amd64.pyd +0 -0
- a_sync/primitives/locks/counter.cp313-win_amd64.pyd +0 -0
- a_sync/primitives/locks/event.c +426 -428
- a_sync/primitives/locks/event.cp313-win_amd64.pyd +0 -0
- a_sync/primitives/locks/event.pyx +3 -1
- a_sync/primitives/locks/prio_semaphore.c +2623 -1503
- a_sync/primitives/locks/prio_semaphore.cp313-win_amd64.pyd +0 -0
- a_sync/primitives/locks/prio_semaphore.pxd +9 -8
- a_sync/primitives/locks/prio_semaphore.pyx +65 -22
- a_sync/primitives/locks/semaphore.c +1048 -1051
- a_sync/primitives/locks/semaphore.cp313-win_amd64.pyd +0 -0
- a_sync/primitives/locks/semaphore.pyx +4 -2
- a_sync/task.py +22 -6
- a_sync/utils/repr.cp313-win_amd64.pyd +0 -0
- {ez_a_sync-0.32.11.dist-info → ez_a_sync-0.32.13.dist-info}/METADATA +1 -1
- {ez_a_sync-0.32.11.dist-info → ez_a_sync-0.32.13.dist-info}/RECORD +50 -50
- {ez_a_sync-0.32.11.dist-info → ez_a_sync-0.32.13.dist-info}/WHEEL +1 -1
- {ez_a_sync-0.32.11.dist-info → ez_a_sync-0.32.13.dist-info}/licenses/LICENSE.txt +0 -0
- {ez_a_sync-0.32.11.dist-info → ez_a_sync-0.32.13.dist-info}/top_level.txt +0 -0
a_sync/asyncio/create_task.c
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
/* BEGIN: Cython Metadata
|
|
4
4
|
{
|
|
5
5
|
"distutils": {
|
|
6
|
+
"depends": [],
|
|
6
7
|
"include_dirs": [
|
|
7
8
|
"include"
|
|
8
9
|
],
|
|
@@ -1234,6 +1235,9 @@ static CYTHON_INLINE float __PYX_NAN() {
|
|
|
1234
1235
|
#define __PYX_HAVE__a_sync__asyncio__create_task
|
|
1235
1236
|
#define __PYX_HAVE_API__a_sync__asyncio__create_task
|
|
1236
1237
|
/* Early includes */
|
|
1238
|
+
#include <string.h>
|
|
1239
|
+
#include <stdio.h>
|
|
1240
|
+
#include <stddef.h>
|
|
1237
1241
|
#ifdef _OPENMP
|
|
1238
1242
|
#include <omp.h>
|
|
1239
1243
|
#endif /* _OPENMP */
|
|
@@ -1484,6 +1488,7 @@ static const char *__pyx_filename;
|
|
|
1484
1488
|
static const char *__pyx_f[] = {
|
|
1485
1489
|
"a_sync\\\\asyncio\\\\create_task.pyx",
|
|
1486
1490
|
"<stringsource>",
|
|
1491
|
+
"type.pxd",
|
|
1487
1492
|
};
|
|
1488
1493
|
/* #### Code section: utility_code_proto_before_types ### */
|
|
1489
1494
|
/* NoFastGil.proto */
|
|
@@ -1507,7 +1512,7 @@ struct __pyx_obj_6a_sync_7asyncio_11create_task___pyx_scope_struct____await;
|
|
|
1507
1512
|
struct __pyx_obj_6a_sync_7asyncio_11create_task___pyx_scope_struct_1___persisted_task_exc_wrap;
|
|
1508
1513
|
struct __pyx_obj___pyx_scope_struct____Pyx_CFunc_79ed5e__6a_sync_7asyncio_11create_task_bint__lParenobj__etc_to_py_3fut;
|
|
1509
1514
|
|
|
1510
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
1515
|
+
/* "a_sync/asyncio/create_task.pyx":151
|
|
1511
1516
|
* cdef object __await
|
|
1512
1517
|
*
|
|
1513
1518
|
* async def __await(awaitable: Awaitable[T]) -> T: # <<<<<<<<<<<<<<
|
|
@@ -1525,7 +1530,7 @@ struct __pyx_obj_6a_sync_7asyncio_11create_task___pyx_scope_struct____await {
|
|
|
1525
1530
|
};
|
|
1526
1531
|
|
|
1527
1532
|
|
|
1528
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
1533
|
+
/* "a_sync/asyncio/create_task.pyx":245
|
|
1529
1534
|
* cdef object __persisted_task_exc_wrap
|
|
1530
1535
|
*
|
|
1531
1536
|
* async def __persisted_task_exc_wrap(task: "Task[T]") -> T: # <<<<<<<<<<<<<<
|
|
@@ -2512,6 +2517,25 @@ static int __Pyx_validate_bases_tuple(const char *type_name, Py_ssize_t dictoffs
|
|
|
2512
2517
|
/* PyType_Ready.proto */
|
|
2513
2518
|
CYTHON_UNUSED static int __Pyx_PyType_Ready(PyTypeObject *t);
|
|
2514
2519
|
|
|
2520
|
+
/* TypeImport.proto */
|
|
2521
|
+
#ifndef __PYX_HAVE_RT_ImportType_proto_3_0_12
|
|
2522
|
+
#define __PYX_HAVE_RT_ImportType_proto_3_0_12
|
|
2523
|
+
#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
|
|
2524
|
+
#include <stdalign.h>
|
|
2525
|
+
#endif
|
|
2526
|
+
#if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) || __cplusplus >= 201103L
|
|
2527
|
+
#define __PYX_GET_STRUCT_ALIGNMENT_3_0_12(s) alignof(s)
|
|
2528
|
+
#else
|
|
2529
|
+
#define __PYX_GET_STRUCT_ALIGNMENT_3_0_12(s) sizeof(void*)
|
|
2530
|
+
#endif
|
|
2531
|
+
enum __Pyx_ImportType_CheckSize_3_0_12 {
|
|
2532
|
+
__Pyx_ImportType_CheckSize_Error_3_0_12 = 0,
|
|
2533
|
+
__Pyx_ImportType_CheckSize_Warn_3_0_12 = 1,
|
|
2534
|
+
__Pyx_ImportType_CheckSize_Ignore_3_0_12 = 2
|
|
2535
|
+
};
|
|
2536
|
+
static PyTypeObject *__Pyx_ImportType_3_0_12(PyObject* module, const char *module_name, const char *class_name, size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_0_12 check_size);
|
|
2537
|
+
#endif
|
|
2538
|
+
|
|
2515
2539
|
/* Import.proto */
|
|
2516
2540
|
static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level);
|
|
2517
2541
|
|
|
@@ -2661,6 +2685,22 @@ static int __Pyx_InitStrings(__Pyx_StringTabEntry *t);
|
|
|
2661
2685
|
|
|
2662
2686
|
/* #### Code section: module_declarations ### */
|
|
2663
2687
|
|
|
2688
|
+
/* Module declarations from "libc.string" */
|
|
2689
|
+
|
|
2690
|
+
/* Module declarations from "libc.stdio" */
|
|
2691
|
+
|
|
2692
|
+
/* Module declarations from "__builtin__" */
|
|
2693
|
+
|
|
2694
|
+
/* Module declarations from "cpython.type" */
|
|
2695
|
+
|
|
2696
|
+
/* Module declarations from "cpython" */
|
|
2697
|
+
|
|
2698
|
+
/* Module declarations from "cpython.object" */
|
|
2699
|
+
|
|
2700
|
+
/* Module declarations from "libc.stddef" */
|
|
2701
|
+
|
|
2702
|
+
/* Module declarations from "cpython.unicode" */
|
|
2703
|
+
|
|
2664
2704
|
/* Module declarations from "a_sync.asyncio.create_task" */
|
|
2665
2705
|
static PyObject *__pyx_v_6a_sync_7asyncio_11create_task_get_running_loop = 0;
|
|
2666
2706
|
static PyObject *__pyx_v_6a_sync_7asyncio_11create_task_iscoroutine = 0;
|
|
@@ -2739,21 +2779,18 @@ static const char __pyx_k_loop_2[] = "_loop";
|
|
|
2739
2779
|
static const char __pyx_k_name_2[] = "__name__";
|
|
2740
2780
|
static const char __pyx_k_return[] = "return";
|
|
2741
2781
|
static const char __pyx_k_typing[] = "typing";
|
|
2742
|
-
static const char __pyx_k_PENDING[] = "PENDING";
|
|
2743
2782
|
static const char __pyx_k_asyncio[] = "asyncio";
|
|
2744
2783
|
static const char __pyx_k_await_2[] = "__await__";
|
|
2745
2784
|
static const char __pyx_k_disable[] = "disable";
|
|
2746
2785
|
static const char __pyx_k_inspect[] = "inspect";
|
|
2747
2786
|
static const char __pyx_k_logging[] = "logging";
|
|
2748
2787
|
static const char __pyx_k_message[] = "message";
|
|
2749
|
-
static const char __pyx_k_FINISHED[] = "FINISHED";
|
|
2750
2788
|
static const char __pyx_k_Optional[] = "Optional";
|
|
2751
2789
|
static const char __pyx_k_Set_Task[] = "Set[Task]";
|
|
2752
2790
|
static const char __pyx_k_aiotasks[] = "aiotasks";
|
|
2753
2791
|
static const char __pyx_k_children[] = "_children";
|
|
2754
2792
|
static const char __pyx_k_set_name[] = "set_name";
|
|
2755
2793
|
static const char __pyx_k_Awaitable[] = "Awaitable";
|
|
2756
|
-
static const char __pyx_k_CANCELLED[] = "CANCELLED";
|
|
2757
2794
|
static const char __pyx_k_SmartTask[] = "SmartTask";
|
|
2758
2795
|
static const char __pyx_k_awaitable[] = "awaitable";
|
|
2759
2796
|
static const char __pyx_k_exception[] = "exception";
|
|
@@ -2772,7 +2809,7 @@ static const char __pyx_k_stringsource[] = "<stringsource>";
|
|
|
2772
2809
|
static const char __pyx_k_task_factory[] = "_task_factory";
|
|
2773
2810
|
static const char __pyx_k_asyncio_tasks[] = "asyncio.tasks";
|
|
2774
2811
|
static const char __pyx_k_a_sync__typing[] = "a_sync._typing";
|
|
2775
|
-
static const char
|
|
2812
|
+
static const char __pyx_k_await_line_151[] = "__await (line 151)";
|
|
2776
2813
|
static const char __pyx_k_GatheringFuture[] = "_GatheringFuture";
|
|
2777
2814
|
static const char __pyx_k_get_running_loop[] = "get_running_loop";
|
|
2778
2815
|
static const char __pyx_k_source_traceback[] = "_source_traceback";
|
|
@@ -2783,7 +2820,7 @@ static const char __pyx_k_cline_in_traceback[] = "cline_in_traceback";
|
|
|
2783
2820
|
static const char __pyx_k_skip_gc_until_done[] = "skip_gc_until_done";
|
|
2784
2821
|
static const char __pyx_k_smart_task_factory[] = "smart_task_factory";
|
|
2785
2822
|
static const char __pyx_k_source_traceback_2[] = "source_traceback";
|
|
2786
|
-
static const char
|
|
2823
|
+
static const char __pyx_k_create_task_line_48[] = "create_task (line 48)";
|
|
2787
2824
|
static const char __pyx_k_get_persisted_tasks[] = "_get_persisted_tasks";
|
|
2788
2825
|
static const char __pyx_k_log_destroy_pending[] = "log_destroy_pending";
|
|
2789
2826
|
static const char __pyx_k_Exception_is_not_set[] = "Exception is not set.";
|
|
@@ -2838,6 +2875,23 @@ typedef struct {
|
|
|
2838
2875
|
PyTypeObject *__pyx_CoroutineType;
|
|
2839
2876
|
#endif
|
|
2840
2877
|
#if CYTHON_USE_MODULE_STATE
|
|
2878
|
+
#endif
|
|
2879
|
+
#if CYTHON_USE_MODULE_STATE
|
|
2880
|
+
#endif
|
|
2881
|
+
#if CYTHON_USE_MODULE_STATE
|
|
2882
|
+
#endif
|
|
2883
|
+
#if CYTHON_USE_MODULE_STATE
|
|
2884
|
+
#endif
|
|
2885
|
+
PyTypeObject *__pyx_ptype_7cpython_4type_type;
|
|
2886
|
+
#if CYTHON_USE_MODULE_STATE
|
|
2887
|
+
#endif
|
|
2888
|
+
#if CYTHON_USE_MODULE_STATE
|
|
2889
|
+
#endif
|
|
2890
|
+
#if CYTHON_USE_MODULE_STATE
|
|
2891
|
+
#endif
|
|
2892
|
+
#if CYTHON_USE_MODULE_STATE
|
|
2893
|
+
#endif
|
|
2894
|
+
#if CYTHON_USE_MODULE_STATE
|
|
2841
2895
|
PyObject *__pyx_type_6a_sync_7asyncio_11create_task___pyx_scope_struct____await;
|
|
2842
2896
|
PyObject *__pyx_type_6a_sync_7asyncio_11create_task___pyx_scope_struct_1___persisted_task_exc_wrap;
|
|
2843
2897
|
PyObject *__pyx_scope_struct____Pyx_CFunc_79ed5e__6a_sync_7asyncio_11create_task_bint__lParenobj__etc_to_py_3fut;
|
|
@@ -2847,16 +2901,13 @@ typedef struct {
|
|
|
2847
2901
|
PyTypeObject *__pyx_ptype___pyx_scope_struct____Pyx_CFunc_79ed5e__6a_sync_7asyncio_11create_task_bint__lParenobj__etc_to_py_3fut;
|
|
2848
2902
|
PyObject *__pyx_n_s_Awaitable;
|
|
2849
2903
|
PyObject *__pyx_kp_s_Awaitable_T;
|
|
2850
|
-
PyObject *__pyx_n_u_CANCELLED;
|
|
2851
2904
|
PyObject *__pyx_kp_u_Exception_is_not_set;
|
|
2852
2905
|
PyObject *__pyx_kp_u_Extends_func_asyncio_create_tas;
|
|
2853
|
-
PyObject *__pyx_n_u_FINISHED;
|
|
2854
2906
|
PyObject *__pyx_n_s_Future;
|
|
2855
2907
|
PyObject *__pyx_n_s_Future__log_traceback;
|
|
2856
2908
|
PyObject *__pyx_n_s_GatheringFuture;
|
|
2857
2909
|
PyObject *__pyx_n_s_InvalidStateError;
|
|
2858
2910
|
PyObject *__pyx_n_s_Optional;
|
|
2859
|
-
PyObject *__pyx_n_u_PENDING;
|
|
2860
2911
|
PyObject *__pyx_n_s_PersistedTaskException;
|
|
2861
2912
|
PyObject *__pyx_n_s_Pyx_CFunc_79ed5e__6a_sync_7asy;
|
|
2862
2913
|
PyObject *__pyx_n_s_RuntimeError;
|
|
@@ -2884,7 +2935,7 @@ typedef struct {
|
|
|
2884
2935
|
PyObject *__pyx_n_s_asyncio_tasks;
|
|
2885
2936
|
PyObject *__pyx_n_s_await;
|
|
2886
2937
|
PyObject *__pyx_n_s_await_2;
|
|
2887
|
-
PyObject *
|
|
2938
|
+
PyObject *__pyx_kp_u_await_line_151;
|
|
2888
2939
|
PyObject *__pyx_n_s_awaitable;
|
|
2889
2940
|
PyObject *__pyx_n_s_bint;
|
|
2890
2941
|
PyObject *__pyx_n_s_call_exception_handler;
|
|
@@ -2896,7 +2947,7 @@ typedef struct {
|
|
|
2896
2947
|
PyObject *__pyx_n_s_coro;
|
|
2897
2948
|
PyObject *__pyx_n_s_create_task;
|
|
2898
2949
|
PyObject *__pyx_n_u_create_task;
|
|
2899
|
-
PyObject *
|
|
2950
|
+
PyObject *__pyx_kp_u_create_task_line_48;
|
|
2900
2951
|
PyObject *__pyx_n_s_difference_update;
|
|
2901
2952
|
PyObject *__pyx_kp_u_disable;
|
|
2902
2953
|
PyObject *__pyx_n_s_e;
|
|
@@ -3001,6 +3052,7 @@ static int __pyx_m_clear(PyObject *m) {
|
|
|
3001
3052
|
#ifdef __Pyx_FusedFunction_USED
|
|
3002
3053
|
Py_CLEAR(clear_module_state->__pyx_FusedFunctionType);
|
|
3003
3054
|
#endif
|
|
3055
|
+
Py_CLEAR(clear_module_state->__pyx_ptype_7cpython_4type_type);
|
|
3004
3056
|
Py_CLEAR(clear_module_state->__pyx_ptype_6a_sync_7asyncio_11create_task___pyx_scope_struct____await);
|
|
3005
3057
|
Py_CLEAR(clear_module_state->__pyx_type_6a_sync_7asyncio_11create_task___pyx_scope_struct____await);
|
|
3006
3058
|
Py_CLEAR(clear_module_state->__pyx_ptype_6a_sync_7asyncio_11create_task___pyx_scope_struct_1___persisted_task_exc_wrap);
|
|
@@ -3009,16 +3061,13 @@ static int __pyx_m_clear(PyObject *m) {
|
|
|
3009
3061
|
Py_CLEAR(clear_module_state->__pyx_scope_struct____Pyx_CFunc_79ed5e__6a_sync_7asyncio_11create_task_bint__lParenobj__etc_to_py_3fut);
|
|
3010
3062
|
Py_CLEAR(clear_module_state->__pyx_n_s_Awaitable);
|
|
3011
3063
|
Py_CLEAR(clear_module_state->__pyx_kp_s_Awaitable_T);
|
|
3012
|
-
Py_CLEAR(clear_module_state->__pyx_n_u_CANCELLED);
|
|
3013
3064
|
Py_CLEAR(clear_module_state->__pyx_kp_u_Exception_is_not_set);
|
|
3014
3065
|
Py_CLEAR(clear_module_state->__pyx_kp_u_Extends_func_asyncio_create_tas);
|
|
3015
|
-
Py_CLEAR(clear_module_state->__pyx_n_u_FINISHED);
|
|
3016
3066
|
Py_CLEAR(clear_module_state->__pyx_n_s_Future);
|
|
3017
3067
|
Py_CLEAR(clear_module_state->__pyx_n_s_Future__log_traceback);
|
|
3018
3068
|
Py_CLEAR(clear_module_state->__pyx_n_s_GatheringFuture);
|
|
3019
3069
|
Py_CLEAR(clear_module_state->__pyx_n_s_InvalidStateError);
|
|
3020
3070
|
Py_CLEAR(clear_module_state->__pyx_n_s_Optional);
|
|
3021
|
-
Py_CLEAR(clear_module_state->__pyx_n_u_PENDING);
|
|
3022
3071
|
Py_CLEAR(clear_module_state->__pyx_n_s_PersistedTaskException);
|
|
3023
3072
|
Py_CLEAR(clear_module_state->__pyx_n_s_Pyx_CFunc_79ed5e__6a_sync_7asy);
|
|
3024
3073
|
Py_CLEAR(clear_module_state->__pyx_n_s_RuntimeError);
|
|
@@ -3046,7 +3095,7 @@ static int __pyx_m_clear(PyObject *m) {
|
|
|
3046
3095
|
Py_CLEAR(clear_module_state->__pyx_n_s_asyncio_tasks);
|
|
3047
3096
|
Py_CLEAR(clear_module_state->__pyx_n_s_await);
|
|
3048
3097
|
Py_CLEAR(clear_module_state->__pyx_n_s_await_2);
|
|
3049
|
-
Py_CLEAR(clear_module_state->
|
|
3098
|
+
Py_CLEAR(clear_module_state->__pyx_kp_u_await_line_151);
|
|
3050
3099
|
Py_CLEAR(clear_module_state->__pyx_n_s_awaitable);
|
|
3051
3100
|
Py_CLEAR(clear_module_state->__pyx_n_s_bint);
|
|
3052
3101
|
Py_CLEAR(clear_module_state->__pyx_n_s_call_exception_handler);
|
|
@@ -3058,7 +3107,7 @@ static int __pyx_m_clear(PyObject *m) {
|
|
|
3058
3107
|
Py_CLEAR(clear_module_state->__pyx_n_s_coro);
|
|
3059
3108
|
Py_CLEAR(clear_module_state->__pyx_n_s_create_task);
|
|
3060
3109
|
Py_CLEAR(clear_module_state->__pyx_n_u_create_task);
|
|
3061
|
-
Py_CLEAR(clear_module_state->
|
|
3110
|
+
Py_CLEAR(clear_module_state->__pyx_kp_u_create_task_line_48);
|
|
3062
3111
|
Py_CLEAR(clear_module_state->__pyx_n_s_difference_update);
|
|
3063
3112
|
Py_CLEAR(clear_module_state->__pyx_kp_u_disable);
|
|
3064
3113
|
Py_CLEAR(clear_module_state->__pyx_n_s_e);
|
|
@@ -3141,6 +3190,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
3141
3190
|
#ifdef __Pyx_FusedFunction_USED
|
|
3142
3191
|
Py_VISIT(traverse_module_state->__pyx_FusedFunctionType);
|
|
3143
3192
|
#endif
|
|
3193
|
+
Py_VISIT(traverse_module_state->__pyx_ptype_7cpython_4type_type);
|
|
3144
3194
|
Py_VISIT(traverse_module_state->__pyx_ptype_6a_sync_7asyncio_11create_task___pyx_scope_struct____await);
|
|
3145
3195
|
Py_VISIT(traverse_module_state->__pyx_type_6a_sync_7asyncio_11create_task___pyx_scope_struct____await);
|
|
3146
3196
|
Py_VISIT(traverse_module_state->__pyx_ptype_6a_sync_7asyncio_11create_task___pyx_scope_struct_1___persisted_task_exc_wrap);
|
|
@@ -3149,16 +3199,13 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
3149
3199
|
Py_VISIT(traverse_module_state->__pyx_scope_struct____Pyx_CFunc_79ed5e__6a_sync_7asyncio_11create_task_bint__lParenobj__etc_to_py_3fut);
|
|
3150
3200
|
Py_VISIT(traverse_module_state->__pyx_n_s_Awaitable);
|
|
3151
3201
|
Py_VISIT(traverse_module_state->__pyx_kp_s_Awaitable_T);
|
|
3152
|
-
Py_VISIT(traverse_module_state->__pyx_n_u_CANCELLED);
|
|
3153
3202
|
Py_VISIT(traverse_module_state->__pyx_kp_u_Exception_is_not_set);
|
|
3154
3203
|
Py_VISIT(traverse_module_state->__pyx_kp_u_Extends_func_asyncio_create_tas);
|
|
3155
|
-
Py_VISIT(traverse_module_state->__pyx_n_u_FINISHED);
|
|
3156
3204
|
Py_VISIT(traverse_module_state->__pyx_n_s_Future);
|
|
3157
3205
|
Py_VISIT(traverse_module_state->__pyx_n_s_Future__log_traceback);
|
|
3158
3206
|
Py_VISIT(traverse_module_state->__pyx_n_s_GatheringFuture);
|
|
3159
3207
|
Py_VISIT(traverse_module_state->__pyx_n_s_InvalidStateError);
|
|
3160
3208
|
Py_VISIT(traverse_module_state->__pyx_n_s_Optional);
|
|
3161
|
-
Py_VISIT(traverse_module_state->__pyx_n_u_PENDING);
|
|
3162
3209
|
Py_VISIT(traverse_module_state->__pyx_n_s_PersistedTaskException);
|
|
3163
3210
|
Py_VISIT(traverse_module_state->__pyx_n_s_Pyx_CFunc_79ed5e__6a_sync_7asy);
|
|
3164
3211
|
Py_VISIT(traverse_module_state->__pyx_n_s_RuntimeError);
|
|
@@ -3186,7 +3233,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
3186
3233
|
Py_VISIT(traverse_module_state->__pyx_n_s_asyncio_tasks);
|
|
3187
3234
|
Py_VISIT(traverse_module_state->__pyx_n_s_await);
|
|
3188
3235
|
Py_VISIT(traverse_module_state->__pyx_n_s_await_2);
|
|
3189
|
-
Py_VISIT(traverse_module_state->
|
|
3236
|
+
Py_VISIT(traverse_module_state->__pyx_kp_u_await_line_151);
|
|
3190
3237
|
Py_VISIT(traverse_module_state->__pyx_n_s_awaitable);
|
|
3191
3238
|
Py_VISIT(traverse_module_state->__pyx_n_s_bint);
|
|
3192
3239
|
Py_VISIT(traverse_module_state->__pyx_n_s_call_exception_handler);
|
|
@@ -3198,7 +3245,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
3198
3245
|
Py_VISIT(traverse_module_state->__pyx_n_s_coro);
|
|
3199
3246
|
Py_VISIT(traverse_module_state->__pyx_n_s_create_task);
|
|
3200
3247
|
Py_VISIT(traverse_module_state->__pyx_n_u_create_task);
|
|
3201
|
-
Py_VISIT(traverse_module_state->
|
|
3248
|
+
Py_VISIT(traverse_module_state->__pyx_kp_u_create_task_line_48);
|
|
3202
3249
|
Py_VISIT(traverse_module_state->__pyx_n_s_difference_update);
|
|
3203
3250
|
Py_VISIT(traverse_module_state->__pyx_kp_u_disable);
|
|
3204
3251
|
Py_VISIT(traverse_module_state->__pyx_n_s_e);
|
|
@@ -3290,6 +3337,23 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
3290
3337
|
#define __pyx_CoroutineType __pyx_mstate_global->__pyx_CoroutineType
|
|
3291
3338
|
#endif
|
|
3292
3339
|
#if CYTHON_USE_MODULE_STATE
|
|
3340
|
+
#endif
|
|
3341
|
+
#if CYTHON_USE_MODULE_STATE
|
|
3342
|
+
#endif
|
|
3343
|
+
#if CYTHON_USE_MODULE_STATE
|
|
3344
|
+
#endif
|
|
3345
|
+
#if CYTHON_USE_MODULE_STATE
|
|
3346
|
+
#endif
|
|
3347
|
+
#define __pyx_ptype_7cpython_4type_type __pyx_mstate_global->__pyx_ptype_7cpython_4type_type
|
|
3348
|
+
#if CYTHON_USE_MODULE_STATE
|
|
3349
|
+
#endif
|
|
3350
|
+
#if CYTHON_USE_MODULE_STATE
|
|
3351
|
+
#endif
|
|
3352
|
+
#if CYTHON_USE_MODULE_STATE
|
|
3353
|
+
#endif
|
|
3354
|
+
#if CYTHON_USE_MODULE_STATE
|
|
3355
|
+
#endif
|
|
3356
|
+
#if CYTHON_USE_MODULE_STATE
|
|
3293
3357
|
#define __pyx_type_6a_sync_7asyncio_11create_task___pyx_scope_struct____await __pyx_mstate_global->__pyx_type_6a_sync_7asyncio_11create_task___pyx_scope_struct____await
|
|
3294
3358
|
#define __pyx_type_6a_sync_7asyncio_11create_task___pyx_scope_struct_1___persisted_task_exc_wrap __pyx_mstate_global->__pyx_type_6a_sync_7asyncio_11create_task___pyx_scope_struct_1___persisted_task_exc_wrap
|
|
3295
3359
|
#define __pyx_scope_struct____Pyx_CFunc_79ed5e__6a_sync_7asyncio_11create_task_bint__lParenobj__etc_to_py_3fut __pyx_mstate_global->__pyx_scope_struct____Pyx_CFunc_79ed5e__6a_sync_7asyncio_11create_task_bint__lParenobj__etc_to_py_3fut
|
|
@@ -3299,16 +3363,13 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
3299
3363
|
#define __pyx_ptype___pyx_scope_struct____Pyx_CFunc_79ed5e__6a_sync_7asyncio_11create_task_bint__lParenobj__etc_to_py_3fut __pyx_mstate_global->__pyx_ptype___pyx_scope_struct____Pyx_CFunc_79ed5e__6a_sync_7asyncio_11create_task_bint__lParenobj__etc_to_py_3fut
|
|
3300
3364
|
#define __pyx_n_s_Awaitable __pyx_mstate_global->__pyx_n_s_Awaitable
|
|
3301
3365
|
#define __pyx_kp_s_Awaitable_T __pyx_mstate_global->__pyx_kp_s_Awaitable_T
|
|
3302
|
-
#define __pyx_n_u_CANCELLED __pyx_mstate_global->__pyx_n_u_CANCELLED
|
|
3303
3366
|
#define __pyx_kp_u_Exception_is_not_set __pyx_mstate_global->__pyx_kp_u_Exception_is_not_set
|
|
3304
3367
|
#define __pyx_kp_u_Extends_func_asyncio_create_tas __pyx_mstate_global->__pyx_kp_u_Extends_func_asyncio_create_tas
|
|
3305
|
-
#define __pyx_n_u_FINISHED __pyx_mstate_global->__pyx_n_u_FINISHED
|
|
3306
3368
|
#define __pyx_n_s_Future __pyx_mstate_global->__pyx_n_s_Future
|
|
3307
3369
|
#define __pyx_n_s_Future__log_traceback __pyx_mstate_global->__pyx_n_s_Future__log_traceback
|
|
3308
3370
|
#define __pyx_n_s_GatheringFuture __pyx_mstate_global->__pyx_n_s_GatheringFuture
|
|
3309
3371
|
#define __pyx_n_s_InvalidStateError __pyx_mstate_global->__pyx_n_s_InvalidStateError
|
|
3310
3372
|
#define __pyx_n_s_Optional __pyx_mstate_global->__pyx_n_s_Optional
|
|
3311
|
-
#define __pyx_n_u_PENDING __pyx_mstate_global->__pyx_n_u_PENDING
|
|
3312
3373
|
#define __pyx_n_s_PersistedTaskException __pyx_mstate_global->__pyx_n_s_PersistedTaskException
|
|
3313
3374
|
#define __pyx_n_s_Pyx_CFunc_79ed5e__6a_sync_7asy __pyx_mstate_global->__pyx_n_s_Pyx_CFunc_79ed5e__6a_sync_7asy
|
|
3314
3375
|
#define __pyx_n_s_RuntimeError __pyx_mstate_global->__pyx_n_s_RuntimeError
|
|
@@ -3336,7 +3397,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
3336
3397
|
#define __pyx_n_s_asyncio_tasks __pyx_mstate_global->__pyx_n_s_asyncio_tasks
|
|
3337
3398
|
#define __pyx_n_s_await __pyx_mstate_global->__pyx_n_s_await
|
|
3338
3399
|
#define __pyx_n_s_await_2 __pyx_mstate_global->__pyx_n_s_await_2
|
|
3339
|
-
#define
|
|
3400
|
+
#define __pyx_kp_u_await_line_151 __pyx_mstate_global->__pyx_kp_u_await_line_151
|
|
3340
3401
|
#define __pyx_n_s_awaitable __pyx_mstate_global->__pyx_n_s_awaitable
|
|
3341
3402
|
#define __pyx_n_s_bint __pyx_mstate_global->__pyx_n_s_bint
|
|
3342
3403
|
#define __pyx_n_s_call_exception_handler __pyx_mstate_global->__pyx_n_s_call_exception_handler
|
|
@@ -3348,7 +3409,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
3348
3409
|
#define __pyx_n_s_coro __pyx_mstate_global->__pyx_n_s_coro
|
|
3349
3410
|
#define __pyx_n_s_create_task __pyx_mstate_global->__pyx_n_s_create_task
|
|
3350
3411
|
#define __pyx_n_u_create_task __pyx_mstate_global->__pyx_n_u_create_task
|
|
3351
|
-
#define
|
|
3412
|
+
#define __pyx_kp_u_create_task_line_48 __pyx_mstate_global->__pyx_kp_u_create_task_line_48
|
|
3352
3413
|
#define __pyx_n_s_difference_update __pyx_mstate_global->__pyx_n_s_difference_update
|
|
3353
3414
|
#define __pyx_kp_u_disable __pyx_mstate_global->__pyx_kp_u_disable
|
|
3354
3415
|
#define __pyx_n_s_e __pyx_mstate_global->__pyx_n_s_e
|
|
@@ -3650,7 +3711,7 @@ static PyObject *__Pyx_CFunc_79ed5e__6a_sync_7asyncio_11create_task_bint__lParen
|
|
|
3650
3711
|
return __pyx_r;
|
|
3651
3712
|
}
|
|
3652
3713
|
|
|
3653
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
3714
|
+
/* "a_sync/asyncio/create_task.pyx":48
|
|
3654
3715
|
*
|
|
3655
3716
|
*
|
|
3656
3717
|
* def create_task( # <<<<<<<<<<<<<<
|
|
@@ -3702,7 +3763,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
|
|
|
3702
3763
|
PyObject **__pyx_pyargnames[] = {&__pyx_n_s_coro,&__pyx_n_s_name,&__pyx_n_s_skip_gc_until_done,&__pyx_n_s_log_destroy_pending,0};
|
|
3703
3764
|
values[1] = __Pyx_Arg_NewRef_FASTCALL(((PyObject*)((PyObject*)__pyx_kp_u__3)));
|
|
3704
3765
|
|
|
3705
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
3766
|
+
/* "a_sync/asyncio/create_task.pyx":52
|
|
3706
3767
|
* *,
|
|
3707
3768
|
* name: str = "",
|
|
3708
3769
|
* skip_gc_until_done: bint = False, # <<<<<<<<<<<<<<
|
|
@@ -3711,7 +3772,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
|
|
|
3711
3772
|
*/
|
|
3712
3773
|
values[2] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)((PyObject *)Py_False)));
|
|
3713
3774
|
|
|
3714
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
3775
|
+
/* "a_sync/asyncio/create_task.pyx":53
|
|
3715
3776
|
* name: str = "",
|
|
3716
3777
|
* skip_gc_until_done: bint = False,
|
|
3717
3778
|
* log_destroy_pending: bint = True, # <<<<<<<<<<<<<<
|
|
@@ -3734,7 +3795,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
|
|
|
3734
3795
|
(void)__Pyx_Arg_NewRef_FASTCALL(values[0]);
|
|
3735
3796
|
kw_args--;
|
|
3736
3797
|
}
|
|
3737
|
-
else if (unlikely(PyErr_Occurred())) __PYX_ERR(0,
|
|
3798
|
+
else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 48, __pyx_L3_error)
|
|
3738
3799
|
else goto __pyx_L5_argtuple_error;
|
|
3739
3800
|
}
|
|
3740
3801
|
if (kw_args > 0 && likely(kw_args <= 3)) {
|
|
@@ -3742,12 +3803,12 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
|
|
|
3742
3803
|
for (index = 1; index < 4 && kw_args > 0; index++) {
|
|
3743
3804
|
PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, *__pyx_pyargnames[index]);
|
|
3744
3805
|
if (value) { values[index] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
|
|
3745
|
-
else if (unlikely(PyErr_Occurred())) __PYX_ERR(0,
|
|
3806
|
+
else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 48, __pyx_L3_error)
|
|
3746
3807
|
}
|
|
3747
3808
|
}
|
|
3748
3809
|
if (unlikely(kw_args > 0)) {
|
|
3749
3810
|
const Py_ssize_t kwd_pos_args = __pyx_nargs;
|
|
3750
|
-
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "create_task") < 0)) __PYX_ERR(0,
|
|
3811
|
+
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "create_task") < 0)) __PYX_ERR(0, 48, __pyx_L3_error)
|
|
3751
3812
|
}
|
|
3752
3813
|
} else if (unlikely(__pyx_nargs != 1)) {
|
|
3753
3814
|
goto __pyx_L5_argtuple_error;
|
|
@@ -3761,7 +3822,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
|
|
|
3761
3822
|
}
|
|
3762
3823
|
goto __pyx_L6_skip;
|
|
3763
3824
|
__pyx_L5_argtuple_error:;
|
|
3764
|
-
__Pyx_RaiseArgtupleInvalid("create_task", 1, 1, 1, __pyx_nargs); __PYX_ERR(0,
|
|
3825
|
+
__Pyx_RaiseArgtupleInvalid("create_task", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 48, __pyx_L3_error)
|
|
3765
3826
|
__pyx_L6_skip:;
|
|
3766
3827
|
goto __pyx_L4_argument_unpacking_done;
|
|
3767
3828
|
__pyx_L3_error:;
|
|
@@ -3775,10 +3836,10 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
|
|
|
3775
3836
|
__Pyx_RefNannyFinishContext();
|
|
3776
3837
|
return NULL;
|
|
3777
3838
|
__pyx_L4_argument_unpacking_done:;
|
|
3778
|
-
if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_name), (&PyUnicode_Type), 0, "name", 1))) __PYX_ERR(0,
|
|
3839
|
+
if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_name), (&PyUnicode_Type), 0, "name", 1))) __PYX_ERR(0, 51, __pyx_L1_error)
|
|
3779
3840
|
__pyx_r = __pyx_pf_6a_sync_7asyncio_11create_task_create_task(__pyx_self, __pyx_v_coro, __pyx_v_name, __pyx_v_skip_gc_until_done, __pyx_v_log_destroy_pending);
|
|
3780
3841
|
|
|
3781
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
3842
|
+
/* "a_sync/asyncio/create_task.pyx":48
|
|
3782
3843
|
*
|
|
3783
3844
|
*
|
|
3784
3845
|
* def create_task( # <<<<<<<<<<<<<<
|
|
@@ -3813,26 +3874,26 @@ static PyObject *__pyx_pf_6a_sync_7asyncio_11create_task_create_task(CYTHON_UNUS
|
|
|
3813
3874
|
int __pyx_clineno = 0;
|
|
3814
3875
|
__Pyx_TraceFrameInit(__pyx_codeobj__4)
|
|
3815
3876
|
__Pyx_RefNannySetupContext("create_task", 1);
|
|
3816
|
-
__Pyx_TraceCall("create_task", __pyx_f[0],
|
|
3877
|
+
__Pyx_TraceCall("create_task", __pyx_f[0], 48, 0, __PYX_ERR(0, 48, __pyx_L1_error));
|
|
3817
3878
|
|
|
3818
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
3879
|
+
/* "a_sync/asyncio/create_task.pyx":89
|
|
3819
3880
|
* - :class:`Task`
|
|
3820
3881
|
* """
|
|
3821
3882
|
* return ccreate_task(coro, name, skip_gc_until_done, log_destroy_pending) # <<<<<<<<<<<<<<
|
|
3822
3883
|
*
|
|
3823
3884
|
* cdef object ccreate_task_simple(object coro):
|
|
3824
3885
|
*/
|
|
3825
|
-
__Pyx_TraceLine(
|
|
3886
|
+
__Pyx_TraceLine(89,0,__PYX_ERR(0, 89, __pyx_L1_error))
|
|
3826
3887
|
__Pyx_XDECREF(__pyx_r);
|
|
3827
|
-
__pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_skip_gc_until_done); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0,
|
|
3828
|
-
__pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_log_destroy_pending); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0,
|
|
3829
|
-
__pyx_t_3 = __pyx_f_6a_sync_7asyncio_11create_task_ccreate_task(__pyx_v_coro, __pyx_v_name, __pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
3888
|
+
__pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_skip_gc_until_done); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 89, __pyx_L1_error)
|
|
3889
|
+
__pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_log_destroy_pending); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 89, __pyx_L1_error)
|
|
3890
|
+
__pyx_t_3 = __pyx_f_6a_sync_7asyncio_11create_task_ccreate_task(__pyx_v_coro, __pyx_v_name, __pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 89, __pyx_L1_error)
|
|
3830
3891
|
__Pyx_GOTREF(__pyx_t_3);
|
|
3831
3892
|
__pyx_r = __pyx_t_3;
|
|
3832
3893
|
__pyx_t_3 = 0;
|
|
3833
3894
|
goto __pyx_L0;
|
|
3834
3895
|
|
|
3835
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
3896
|
+
/* "a_sync/asyncio/create_task.pyx":48
|
|
3836
3897
|
*
|
|
3837
3898
|
*
|
|
3838
3899
|
* def create_task( # <<<<<<<<<<<<<<
|
|
@@ -3852,7 +3913,7 @@ static PyObject *__pyx_pf_6a_sync_7asyncio_11create_task_create_task(CYTHON_UNUS
|
|
|
3852
3913
|
return __pyx_r;
|
|
3853
3914
|
}
|
|
3854
3915
|
|
|
3855
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
3916
|
+
/* "a_sync/asyncio/create_task.pyx":91
|
|
3856
3917
|
* return ccreate_task(coro, name, skip_gc_until_done, log_destroy_pending)
|
|
3857
3918
|
*
|
|
3858
3919
|
* cdef object ccreate_task_simple(object coro): # <<<<<<<<<<<<<<
|
|
@@ -3869,24 +3930,24 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task_simple(PyOb
|
|
|
3869
3930
|
const char *__pyx_filename = NULL;
|
|
3870
3931
|
int __pyx_clineno = 0;
|
|
3871
3932
|
__Pyx_RefNannySetupContext("ccreate_task_simple", 1);
|
|
3872
|
-
__Pyx_TraceCall("ccreate_task_simple", __pyx_f[0],
|
|
3933
|
+
__Pyx_TraceCall("ccreate_task_simple", __pyx_f[0], 91, 0, __PYX_ERR(0, 91, __pyx_L1_error));
|
|
3873
3934
|
|
|
3874
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
3935
|
+
/* "a_sync/asyncio/create_task.pyx":92
|
|
3875
3936
|
*
|
|
3876
3937
|
* cdef object ccreate_task_simple(object coro):
|
|
3877
3938
|
* return ccreate_task(coro, "", False, True) # <<<<<<<<<<<<<<
|
|
3878
3939
|
*
|
|
3879
3940
|
* cdef object ccreate_task(object coro, str name, bint skip_gc_until_done, bint log_destroy_pending):
|
|
3880
3941
|
*/
|
|
3881
|
-
__Pyx_TraceLine(
|
|
3942
|
+
__Pyx_TraceLine(92,0,__PYX_ERR(0, 92, __pyx_L1_error))
|
|
3882
3943
|
__Pyx_XDECREF(__pyx_r);
|
|
3883
|
-
__pyx_t_1 = __pyx_f_6a_sync_7asyncio_11create_task_ccreate_task(__pyx_v_coro, __pyx_kp_u__3, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
3944
|
+
__pyx_t_1 = __pyx_f_6a_sync_7asyncio_11create_task_ccreate_task(__pyx_v_coro, __pyx_kp_u__3, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 92, __pyx_L1_error)
|
|
3884
3945
|
__Pyx_GOTREF(__pyx_t_1);
|
|
3885
3946
|
__pyx_r = __pyx_t_1;
|
|
3886
3947
|
__pyx_t_1 = 0;
|
|
3887
3948
|
goto __pyx_L0;
|
|
3888
3949
|
|
|
3889
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
3950
|
+
/* "a_sync/asyncio/create_task.pyx":91
|
|
3890
3951
|
* return ccreate_task(coro, name, skip_gc_until_done, log_destroy_pending)
|
|
3891
3952
|
*
|
|
3892
3953
|
* cdef object ccreate_task_simple(object coro): # <<<<<<<<<<<<<<
|
|
@@ -3906,7 +3967,7 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task_simple(PyOb
|
|
|
3906
3967
|
return __pyx_r;
|
|
3907
3968
|
}
|
|
3908
3969
|
|
|
3909
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
3970
|
+
/* "a_sync/asyncio/create_task.pyx":94
|
|
3910
3971
|
* return ccreate_task(coro, "", False, True)
|
|
3911
3972
|
*
|
|
3912
3973
|
* cdef object ccreate_task(object coro, str name, bint skip_gc_until_done, bint log_destroy_pending): # <<<<<<<<<<<<<<
|
|
@@ -3933,17 +3994,17 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task(PyObject *_
|
|
|
3933
3994
|
const char *__pyx_filename = NULL;
|
|
3934
3995
|
int __pyx_clineno = 0;
|
|
3935
3996
|
__Pyx_RefNannySetupContext("ccreate_task", 0);
|
|
3936
|
-
__Pyx_TraceCall("ccreate_task", __pyx_f[0],
|
|
3997
|
+
__Pyx_TraceCall("ccreate_task", __pyx_f[0], 94, 0, __PYX_ERR(0, 94, __pyx_L1_error));
|
|
3937
3998
|
__Pyx_INCREF(__pyx_v_coro);
|
|
3938
3999
|
|
|
3939
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4000
|
+
/* "a_sync/asyncio/create_task.pyx":95
|
|
3940
4001
|
*
|
|
3941
4002
|
* cdef object ccreate_task(object coro, str name, bint skip_gc_until_done, bint log_destroy_pending):
|
|
3942
4003
|
* cdef object loop = get_running_loop() # <<<<<<<<<<<<<<
|
|
3943
4004
|
* cdef object task_factory = loop._task_factory
|
|
3944
4005
|
* cdef object task, persisted
|
|
3945
4006
|
*/
|
|
3946
|
-
__Pyx_TraceLine(
|
|
4007
|
+
__Pyx_TraceLine(95,0,__PYX_ERR(0, 95, __pyx_L1_error))
|
|
3947
4008
|
__Pyx_INCREF(__pyx_v_6a_sync_7asyncio_11create_task_get_running_loop);
|
|
3948
4009
|
__pyx_t_2 = __pyx_v_6a_sync_7asyncio_11create_task_get_running_loop; __pyx_t_3 = NULL;
|
|
3949
4010
|
__pyx_t_4 = 0;
|
|
@@ -3963,34 +4024,34 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task(PyObject *_
|
|
|
3963
4024
|
PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
|
|
3964
4025
|
__pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4);
|
|
3965
4026
|
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
3966
|
-
if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
4027
|
+
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 95, __pyx_L1_error)
|
|
3967
4028
|
__Pyx_GOTREF(__pyx_t_1);
|
|
3968
4029
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
3969
4030
|
}
|
|
3970
4031
|
__pyx_v_loop = __pyx_t_1;
|
|
3971
4032
|
__pyx_t_1 = 0;
|
|
3972
4033
|
|
|
3973
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4034
|
+
/* "a_sync/asyncio/create_task.pyx":96
|
|
3974
4035
|
* cdef object ccreate_task(object coro, str name, bint skip_gc_until_done, bint log_destroy_pending):
|
|
3975
4036
|
* cdef object loop = get_running_loop()
|
|
3976
4037
|
* cdef object task_factory = loop._task_factory # <<<<<<<<<<<<<<
|
|
3977
4038
|
* cdef object task, persisted
|
|
3978
4039
|
*
|
|
3979
4040
|
*/
|
|
3980
|
-
__Pyx_TraceLine(
|
|
3981
|
-
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_loop, __pyx_n_s_task_factory); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
4041
|
+
__Pyx_TraceLine(96,0,__PYX_ERR(0, 96, __pyx_L1_error))
|
|
4042
|
+
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_loop, __pyx_n_s_task_factory); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 96, __pyx_L1_error)
|
|
3982
4043
|
__Pyx_GOTREF(__pyx_t_1);
|
|
3983
4044
|
__pyx_v_task_factory = __pyx_t_1;
|
|
3984
4045
|
__pyx_t_1 = 0;
|
|
3985
4046
|
|
|
3986
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4047
|
+
/* "a_sync/asyncio/create_task.pyx":99
|
|
3987
4048
|
* cdef object task, persisted
|
|
3988
4049
|
*
|
|
3989
4050
|
* if not iscoroutine(coro): # <<<<<<<<<<<<<<
|
|
3990
4051
|
* coro = __await(coro)
|
|
3991
4052
|
*
|
|
3992
4053
|
*/
|
|
3993
|
-
__Pyx_TraceLine(
|
|
4054
|
+
__Pyx_TraceLine(99,0,__PYX_ERR(0, 99, __pyx_L1_error))
|
|
3994
4055
|
__Pyx_INCREF(__pyx_v_6a_sync_7asyncio_11create_task_iscoroutine);
|
|
3995
4056
|
__pyx_t_2 = __pyx_v_6a_sync_7asyncio_11create_task_iscoroutine; __pyx_t_3 = NULL;
|
|
3996
4057
|
__pyx_t_4 = 0;
|
|
@@ -4010,23 +4071,23 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task(PyObject *_
|
|
|
4010
4071
|
PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_coro};
|
|
4011
4072
|
__pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 1+__pyx_t_4);
|
|
4012
4073
|
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
4013
|
-
if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
4074
|
+
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 99, __pyx_L1_error)
|
|
4014
4075
|
__Pyx_GOTREF(__pyx_t_1);
|
|
4015
4076
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
4016
4077
|
}
|
|
4017
|
-
__pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0,
|
|
4078
|
+
__pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 99, __pyx_L1_error)
|
|
4018
4079
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
4019
4080
|
__pyx_t_6 = (!__pyx_t_5);
|
|
4020
4081
|
if (__pyx_t_6) {
|
|
4021
4082
|
|
|
4022
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4083
|
+
/* "a_sync/asyncio/create_task.pyx":100
|
|
4023
4084
|
*
|
|
4024
4085
|
* if not iscoroutine(coro):
|
|
4025
4086
|
* coro = __await(coro) # <<<<<<<<<<<<<<
|
|
4026
4087
|
*
|
|
4027
4088
|
* if task_factory is None:
|
|
4028
4089
|
*/
|
|
4029
|
-
__Pyx_TraceLine(
|
|
4090
|
+
__Pyx_TraceLine(100,0,__PYX_ERR(0, 100, __pyx_L1_error))
|
|
4030
4091
|
__Pyx_INCREF(__pyx_v_6a_sync_7asyncio_11create_task___await);
|
|
4031
4092
|
__pyx_t_2 = __pyx_v_6a_sync_7asyncio_11create_task___await; __pyx_t_3 = NULL;
|
|
4032
4093
|
__pyx_t_4 = 0;
|
|
@@ -4046,14 +4107,14 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task(PyObject *_
|
|
|
4046
4107
|
PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_coro};
|
|
4047
4108
|
__pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 1+__pyx_t_4);
|
|
4048
4109
|
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
4049
|
-
if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
4110
|
+
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 100, __pyx_L1_error)
|
|
4050
4111
|
__Pyx_GOTREF(__pyx_t_1);
|
|
4051
4112
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
4052
4113
|
}
|
|
4053
4114
|
__Pyx_DECREF_SET(__pyx_v_coro, __pyx_t_1);
|
|
4054
4115
|
__pyx_t_1 = 0;
|
|
4055
4116
|
|
|
4056
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4117
|
+
/* "a_sync/asyncio/create_task.pyx":99
|
|
4057
4118
|
* cdef object task, persisted
|
|
4058
4119
|
*
|
|
4059
4120
|
* if not iscoroutine(coro): # <<<<<<<<<<<<<<
|
|
@@ -4062,69 +4123,69 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task(PyObject *_
|
|
|
4062
4123
|
*/
|
|
4063
4124
|
}
|
|
4064
4125
|
|
|
4065
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4126
|
+
/* "a_sync/asyncio/create_task.pyx":102
|
|
4066
4127
|
* coro = __await(coro)
|
|
4067
4128
|
*
|
|
4068
4129
|
* if task_factory is None: # <<<<<<<<<<<<<<
|
|
4069
4130
|
* task = Task(coro, loop=loop, name=name)
|
|
4070
4131
|
* if task._source_traceback:
|
|
4071
4132
|
*/
|
|
4072
|
-
__Pyx_TraceLine(
|
|
4133
|
+
__Pyx_TraceLine(102,0,__PYX_ERR(0, 102, __pyx_L1_error))
|
|
4073
4134
|
__pyx_t_6 = (__pyx_v_task_factory == Py_None);
|
|
4074
4135
|
if (__pyx_t_6) {
|
|
4075
4136
|
|
|
4076
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4137
|
+
/* "a_sync/asyncio/create_task.pyx":103
|
|
4077
4138
|
*
|
|
4078
4139
|
* if task_factory is None:
|
|
4079
4140
|
* task = Task(coro, loop=loop, name=name) # <<<<<<<<<<<<<<
|
|
4080
4141
|
* if task._source_traceback:
|
|
4081
4142
|
* del task._source_traceback[-1]
|
|
4082
4143
|
*/
|
|
4083
|
-
__Pyx_TraceLine(
|
|
4084
|
-
__pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
4144
|
+
__Pyx_TraceLine(103,0,__PYX_ERR(0, 103, __pyx_L1_error))
|
|
4145
|
+
__pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 103, __pyx_L1_error)
|
|
4085
4146
|
__Pyx_GOTREF(__pyx_t_1);
|
|
4086
4147
|
__Pyx_INCREF(__pyx_v_coro);
|
|
4087
4148
|
__Pyx_GIVEREF(__pyx_v_coro);
|
|
4088
|
-
if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_coro)) __PYX_ERR(0,
|
|
4089
|
-
__pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
4149
|
+
if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_coro)) __PYX_ERR(0, 103, __pyx_L1_error);
|
|
4150
|
+
__pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 103, __pyx_L1_error)
|
|
4090
4151
|
__Pyx_GOTREF(__pyx_t_2);
|
|
4091
|
-
if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_loop, __pyx_v_loop) < 0) __PYX_ERR(0,
|
|
4092
|
-
if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_name, __pyx_v_name) < 0) __PYX_ERR(0,
|
|
4093
|
-
__pyx_t_3 = __Pyx_PyObject_Call(__pyx_v_6a_sync_7asyncio_11create_task_Task, __pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
4152
|
+
if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_loop, __pyx_v_loop) < 0) __PYX_ERR(0, 103, __pyx_L1_error)
|
|
4153
|
+
if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_name, __pyx_v_name) < 0) __PYX_ERR(0, 103, __pyx_L1_error)
|
|
4154
|
+
__pyx_t_3 = __Pyx_PyObject_Call(__pyx_v_6a_sync_7asyncio_11create_task_Task, __pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 103, __pyx_L1_error)
|
|
4094
4155
|
__Pyx_GOTREF(__pyx_t_3);
|
|
4095
4156
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
4096
4157
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
4097
4158
|
__pyx_v_task = __pyx_t_3;
|
|
4098
4159
|
__pyx_t_3 = 0;
|
|
4099
4160
|
|
|
4100
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4161
|
+
/* "a_sync/asyncio/create_task.pyx":104
|
|
4101
4162
|
* if task_factory is None:
|
|
4102
4163
|
* task = Task(coro, loop=loop, name=name)
|
|
4103
4164
|
* if task._source_traceback: # <<<<<<<<<<<<<<
|
|
4104
4165
|
* del task._source_traceback[-1]
|
|
4105
4166
|
* elif task_factory is smart_task_factory:
|
|
4106
4167
|
*/
|
|
4107
|
-
__Pyx_TraceLine(
|
|
4108
|
-
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_task, __pyx_n_s_source_traceback); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
4168
|
+
__Pyx_TraceLine(104,0,__PYX_ERR(0, 104, __pyx_L1_error))
|
|
4169
|
+
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_task, __pyx_n_s_source_traceback); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 104, __pyx_L1_error)
|
|
4109
4170
|
__Pyx_GOTREF(__pyx_t_3);
|
|
4110
|
-
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0,
|
|
4171
|
+
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 104, __pyx_L1_error)
|
|
4111
4172
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
4112
4173
|
if (__pyx_t_6) {
|
|
4113
4174
|
|
|
4114
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4175
|
+
/* "a_sync/asyncio/create_task.pyx":105
|
|
4115
4176
|
* task = Task(coro, loop=loop, name=name)
|
|
4116
4177
|
* if task._source_traceback:
|
|
4117
4178
|
* del task._source_traceback[-1] # <<<<<<<<<<<<<<
|
|
4118
4179
|
* elif task_factory is smart_task_factory:
|
|
4119
4180
|
* task = SmartTask(coro, loop=loop, name=name)
|
|
4120
4181
|
*/
|
|
4121
|
-
__Pyx_TraceLine(
|
|
4122
|
-
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_task, __pyx_n_s_source_traceback); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
4182
|
+
__Pyx_TraceLine(105,0,__PYX_ERR(0, 105, __pyx_L1_error))
|
|
4183
|
+
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_task, __pyx_n_s_source_traceback); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 105, __pyx_L1_error)
|
|
4123
4184
|
__Pyx_GOTREF(__pyx_t_3);
|
|
4124
|
-
if (unlikely((__Pyx_DelItemInt(__pyx_t_3, -1L, long, 1, __Pyx_PyInt_From_long, 0, 1, 1) < 0))) __PYX_ERR(0,
|
|
4185
|
+
if (unlikely((__Pyx_DelItemInt(__pyx_t_3, -1L, long, 1, __Pyx_PyInt_From_long, 0, 1, 1) < 0))) __PYX_ERR(0, 105, __pyx_L1_error)
|
|
4125
4186
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
4126
4187
|
|
|
4127
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4188
|
+
/* "a_sync/asyncio/create_task.pyx":104
|
|
4128
4189
|
* if task_factory is None:
|
|
4129
4190
|
* task = Task(coro, loop=loop, name=name)
|
|
4130
4191
|
* if task._source_traceback: # <<<<<<<<<<<<<<
|
|
@@ -4133,7 +4194,7 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task(PyObject *_
|
|
|
4133
4194
|
*/
|
|
4134
4195
|
}
|
|
4135
4196
|
|
|
4136
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4197
|
+
/* "a_sync/asyncio/create_task.pyx":102
|
|
4137
4198
|
* coro = __await(coro)
|
|
4138
4199
|
*
|
|
4139
4200
|
* if task_factory is None: # <<<<<<<<<<<<<<
|
|
@@ -4143,69 +4204,69 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task(PyObject *_
|
|
|
4143
4204
|
goto __pyx_L4;
|
|
4144
4205
|
}
|
|
4145
4206
|
|
|
4146
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4207
|
+
/* "a_sync/asyncio/create_task.pyx":106
|
|
4147
4208
|
* if task._source_traceback:
|
|
4148
4209
|
* del task._source_traceback[-1]
|
|
4149
4210
|
* elif task_factory is smart_task_factory: # <<<<<<<<<<<<<<
|
|
4150
4211
|
* task = SmartTask(coro, loop=loop, name=name)
|
|
4151
4212
|
* if task._source_traceback:
|
|
4152
4213
|
*/
|
|
4153
|
-
__Pyx_TraceLine(
|
|
4214
|
+
__Pyx_TraceLine(106,0,__PYX_ERR(0, 106, __pyx_L1_error))
|
|
4154
4215
|
__pyx_t_6 = (__pyx_v_task_factory == __pyx_v_6a_sync_7asyncio_11create_task_smart_task_factory);
|
|
4155
4216
|
if (__pyx_t_6) {
|
|
4156
4217
|
|
|
4157
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4218
|
+
/* "a_sync/asyncio/create_task.pyx":107
|
|
4158
4219
|
* del task._source_traceback[-1]
|
|
4159
4220
|
* elif task_factory is smart_task_factory:
|
|
4160
4221
|
* task = SmartTask(coro, loop=loop, name=name) # <<<<<<<<<<<<<<
|
|
4161
4222
|
* if task._source_traceback:
|
|
4162
4223
|
* del task._source_traceback[-1]
|
|
4163
4224
|
*/
|
|
4164
|
-
__Pyx_TraceLine(
|
|
4165
|
-
__pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
4225
|
+
__Pyx_TraceLine(107,0,__PYX_ERR(0, 107, __pyx_L1_error))
|
|
4226
|
+
__pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 107, __pyx_L1_error)
|
|
4166
4227
|
__Pyx_GOTREF(__pyx_t_3);
|
|
4167
4228
|
__Pyx_INCREF(__pyx_v_coro);
|
|
4168
4229
|
__Pyx_GIVEREF(__pyx_v_coro);
|
|
4169
|
-
if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_coro)) __PYX_ERR(0,
|
|
4170
|
-
__pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
4230
|
+
if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_coro)) __PYX_ERR(0, 107, __pyx_L1_error);
|
|
4231
|
+
__pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 107, __pyx_L1_error)
|
|
4171
4232
|
__Pyx_GOTREF(__pyx_t_2);
|
|
4172
|
-
if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_loop, __pyx_v_loop) < 0) __PYX_ERR(0,
|
|
4173
|
-
if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_name, __pyx_v_name) < 0) __PYX_ERR(0,
|
|
4174
|
-
__pyx_t_1 = __Pyx_PyObject_Call(__pyx_v_6a_sync_7asyncio_11create_task_SmartTask, __pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
4233
|
+
if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_loop, __pyx_v_loop) < 0) __PYX_ERR(0, 107, __pyx_L1_error)
|
|
4234
|
+
if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_name, __pyx_v_name) < 0) __PYX_ERR(0, 107, __pyx_L1_error)
|
|
4235
|
+
__pyx_t_1 = __Pyx_PyObject_Call(__pyx_v_6a_sync_7asyncio_11create_task_SmartTask, __pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 107, __pyx_L1_error)
|
|
4175
4236
|
__Pyx_GOTREF(__pyx_t_1);
|
|
4176
4237
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
4177
4238
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
4178
4239
|
__pyx_v_task = __pyx_t_1;
|
|
4179
4240
|
__pyx_t_1 = 0;
|
|
4180
4241
|
|
|
4181
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4242
|
+
/* "a_sync/asyncio/create_task.pyx":108
|
|
4182
4243
|
* elif task_factory is smart_task_factory:
|
|
4183
4244
|
* task = SmartTask(coro, loop=loop, name=name)
|
|
4184
4245
|
* if task._source_traceback: # <<<<<<<<<<<<<<
|
|
4185
4246
|
* del task._source_traceback[-1]
|
|
4186
4247
|
* else:
|
|
4187
4248
|
*/
|
|
4188
|
-
__Pyx_TraceLine(
|
|
4189
|
-
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_task, __pyx_n_s_source_traceback); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
4249
|
+
__Pyx_TraceLine(108,0,__PYX_ERR(0, 108, __pyx_L1_error))
|
|
4250
|
+
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_task, __pyx_n_s_source_traceback); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 108, __pyx_L1_error)
|
|
4190
4251
|
__Pyx_GOTREF(__pyx_t_1);
|
|
4191
|
-
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0,
|
|
4252
|
+
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 108, __pyx_L1_error)
|
|
4192
4253
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
4193
4254
|
if (__pyx_t_6) {
|
|
4194
4255
|
|
|
4195
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4256
|
+
/* "a_sync/asyncio/create_task.pyx":109
|
|
4196
4257
|
* task = SmartTask(coro, loop=loop, name=name)
|
|
4197
4258
|
* if task._source_traceback:
|
|
4198
4259
|
* del task._source_traceback[-1] # <<<<<<<<<<<<<<
|
|
4199
4260
|
* else:
|
|
4200
4261
|
* task = task_factory(loop, coro)
|
|
4201
4262
|
*/
|
|
4202
|
-
__Pyx_TraceLine(
|
|
4203
|
-
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_task, __pyx_n_s_source_traceback); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
4263
|
+
__Pyx_TraceLine(109,0,__PYX_ERR(0, 109, __pyx_L1_error))
|
|
4264
|
+
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_task, __pyx_n_s_source_traceback); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 109, __pyx_L1_error)
|
|
4204
4265
|
__Pyx_GOTREF(__pyx_t_1);
|
|
4205
|
-
if (unlikely((__Pyx_DelItemInt(__pyx_t_1, -1L, long, 1, __Pyx_PyInt_From_long, 0, 1, 1) < 0))) __PYX_ERR(0,
|
|
4266
|
+
if (unlikely((__Pyx_DelItemInt(__pyx_t_1, -1L, long, 1, __Pyx_PyInt_From_long, 0, 1, 1) < 0))) __PYX_ERR(0, 109, __pyx_L1_error)
|
|
4206
4267
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
4207
4268
|
|
|
4208
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4269
|
+
/* "a_sync/asyncio/create_task.pyx":108
|
|
4209
4270
|
* elif task_factory is smart_task_factory:
|
|
4210
4271
|
* task = SmartTask(coro, loop=loop, name=name)
|
|
4211
4272
|
* if task._source_traceback: # <<<<<<<<<<<<<<
|
|
@@ -4214,7 +4275,7 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task(PyObject *_
|
|
|
4214
4275
|
*/
|
|
4215
4276
|
}
|
|
4216
4277
|
|
|
4217
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4278
|
+
/* "a_sync/asyncio/create_task.pyx":106
|
|
4218
4279
|
* if task._source_traceback:
|
|
4219
4280
|
* del task._source_traceback[-1]
|
|
4220
4281
|
* elif task_factory is smart_task_factory: # <<<<<<<<<<<<<<
|
|
@@ -4224,14 +4285,14 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task(PyObject *_
|
|
|
4224
4285
|
goto __pyx_L4;
|
|
4225
4286
|
}
|
|
4226
4287
|
|
|
4227
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4288
|
+
/* "a_sync/asyncio/create_task.pyx":111
|
|
4228
4289
|
* del task._source_traceback[-1]
|
|
4229
4290
|
* else:
|
|
4230
4291
|
* task = task_factory(loop, coro) # <<<<<<<<<<<<<<
|
|
4231
4292
|
* if name:
|
|
4232
4293
|
* __set_task_name(task, name)
|
|
4233
4294
|
*/
|
|
4234
|
-
__Pyx_TraceLine(
|
|
4295
|
+
__Pyx_TraceLine(111,0,__PYX_ERR(0, 111, __pyx_L1_error))
|
|
4235
4296
|
/*else*/ {
|
|
4236
4297
|
__Pyx_INCREF(__pyx_v_task_factory);
|
|
4237
4298
|
__pyx_t_2 = __pyx_v_task_factory; __pyx_t_3 = NULL;
|
|
@@ -4252,35 +4313,35 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task(PyObject *_
|
|
|
4252
4313
|
PyObject *__pyx_callargs[3] = {__pyx_t_3, __pyx_v_loop, __pyx_v_coro};
|
|
4253
4314
|
__pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 2+__pyx_t_4);
|
|
4254
4315
|
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
4255
|
-
if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
4316
|
+
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 111, __pyx_L1_error)
|
|
4256
4317
|
__Pyx_GOTREF(__pyx_t_1);
|
|
4257
4318
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
4258
4319
|
}
|
|
4259
4320
|
__pyx_v_task = __pyx_t_1;
|
|
4260
4321
|
__pyx_t_1 = 0;
|
|
4261
4322
|
|
|
4262
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4323
|
+
/* "a_sync/asyncio/create_task.pyx":112
|
|
4263
4324
|
* else:
|
|
4264
4325
|
* task = task_factory(loop, coro)
|
|
4265
4326
|
* if name: # <<<<<<<<<<<<<<
|
|
4266
4327
|
* __set_task_name(task, name)
|
|
4267
4328
|
*
|
|
4268
4329
|
*/
|
|
4269
|
-
__Pyx_TraceLine(
|
|
4330
|
+
__Pyx_TraceLine(112,0,__PYX_ERR(0, 112, __pyx_L1_error))
|
|
4270
4331
|
__pyx_t_6 = (__pyx_v_name != Py_None)&&(__Pyx_PyUnicode_IS_TRUE(__pyx_v_name) != 0);
|
|
4271
4332
|
if (__pyx_t_6) {
|
|
4272
4333
|
|
|
4273
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4334
|
+
/* "a_sync/asyncio/create_task.pyx":113
|
|
4274
4335
|
* task = task_factory(loop, coro)
|
|
4275
4336
|
* if name:
|
|
4276
4337
|
* __set_task_name(task, name) # <<<<<<<<<<<<<<
|
|
4277
4338
|
*
|
|
4278
4339
|
* if skip_gc_until_done:
|
|
4279
4340
|
*/
|
|
4280
|
-
__Pyx_TraceLine(
|
|
4281
|
-
__pyx_f_6a_sync_7asyncio_11create_task___set_task_name(__pyx_v_task, __pyx_v_name); if (unlikely(PyErr_Occurred())) __PYX_ERR(0,
|
|
4341
|
+
__Pyx_TraceLine(113,0,__PYX_ERR(0, 113, __pyx_L1_error))
|
|
4342
|
+
__pyx_f_6a_sync_7asyncio_11create_task___set_task_name(__pyx_v_task, __pyx_v_name); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 113, __pyx_L1_error)
|
|
4282
4343
|
|
|
4283
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4344
|
+
/* "a_sync/asyncio/create_task.pyx":112
|
|
4284
4345
|
* else:
|
|
4285
4346
|
* task = task_factory(loop, coro)
|
|
4286
4347
|
* if name: # <<<<<<<<<<<<<<
|
|
@@ -4291,24 +4352,24 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task(PyObject *_
|
|
|
4291
4352
|
}
|
|
4292
4353
|
__pyx_L4:;
|
|
4293
4354
|
|
|
4294
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4355
|
+
/* "a_sync/asyncio/create_task.pyx":115
|
|
4295
4356
|
* __set_task_name(task, name)
|
|
4296
4357
|
*
|
|
4297
4358
|
* if skip_gc_until_done: # <<<<<<<<<<<<<<
|
|
4298
4359
|
* persisted = __persisted_task_exc_wrap(task)
|
|
4299
4360
|
*
|
|
4300
4361
|
*/
|
|
4301
|
-
__Pyx_TraceLine(
|
|
4362
|
+
__Pyx_TraceLine(115,0,__PYX_ERR(0, 115, __pyx_L1_error))
|
|
4302
4363
|
if (__pyx_v_skip_gc_until_done) {
|
|
4303
4364
|
|
|
4304
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4365
|
+
/* "a_sync/asyncio/create_task.pyx":116
|
|
4305
4366
|
*
|
|
4306
4367
|
* if skip_gc_until_done:
|
|
4307
4368
|
* persisted = __persisted_task_exc_wrap(task) # <<<<<<<<<<<<<<
|
|
4308
4369
|
*
|
|
4309
4370
|
* if task_factory is None:
|
|
4310
4371
|
*/
|
|
4311
|
-
__Pyx_TraceLine(
|
|
4372
|
+
__Pyx_TraceLine(116,0,__PYX_ERR(0, 116, __pyx_L1_error))
|
|
4312
4373
|
__Pyx_INCREF(__pyx_v_6a_sync_7asyncio_11create_task___persisted_task_exc_wrap);
|
|
4313
4374
|
__pyx_t_2 = __pyx_v_6a_sync_7asyncio_11create_task___persisted_task_exc_wrap; __pyx_t_3 = NULL;
|
|
4314
4375
|
__pyx_t_4 = 0;
|
|
@@ -4328,76 +4389,76 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task(PyObject *_
|
|
|
4328
4389
|
PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_task};
|
|
4329
4390
|
__pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 1+__pyx_t_4);
|
|
4330
4391
|
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
4331
|
-
if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
4392
|
+
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 116, __pyx_L1_error)
|
|
4332
4393
|
__Pyx_GOTREF(__pyx_t_1);
|
|
4333
4394
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
4334
4395
|
}
|
|
4335
4396
|
__pyx_v_persisted = __pyx_t_1;
|
|
4336
4397
|
__pyx_t_1 = 0;
|
|
4337
4398
|
|
|
4338
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4399
|
+
/* "a_sync/asyncio/create_task.pyx":118
|
|
4339
4400
|
* persisted = __persisted_task_exc_wrap(task)
|
|
4340
4401
|
*
|
|
4341
4402
|
* if task_factory is None: # <<<<<<<<<<<<<<
|
|
4342
4403
|
* persisted = Task(persisted, loop=loop, name=name)
|
|
4343
4404
|
* if persisted._source_traceback:
|
|
4344
4405
|
*/
|
|
4345
|
-
__Pyx_TraceLine(
|
|
4406
|
+
__Pyx_TraceLine(118,0,__PYX_ERR(0, 118, __pyx_L1_error))
|
|
4346
4407
|
__pyx_t_6 = (__pyx_v_task_factory == Py_None);
|
|
4347
4408
|
if (__pyx_t_6) {
|
|
4348
4409
|
|
|
4349
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4410
|
+
/* "a_sync/asyncio/create_task.pyx":119
|
|
4350
4411
|
*
|
|
4351
4412
|
* if task_factory is None:
|
|
4352
4413
|
* persisted = Task(persisted, loop=loop, name=name) # <<<<<<<<<<<<<<
|
|
4353
4414
|
* if persisted._source_traceback:
|
|
4354
4415
|
* del persisted._source_traceback[-1]
|
|
4355
4416
|
*/
|
|
4356
|
-
__Pyx_TraceLine(
|
|
4357
|
-
__pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
4417
|
+
__Pyx_TraceLine(119,0,__PYX_ERR(0, 119, __pyx_L1_error))
|
|
4418
|
+
__pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 119, __pyx_L1_error)
|
|
4358
4419
|
__Pyx_GOTREF(__pyx_t_1);
|
|
4359
4420
|
__Pyx_INCREF(__pyx_v_persisted);
|
|
4360
4421
|
__Pyx_GIVEREF(__pyx_v_persisted);
|
|
4361
|
-
if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_persisted)) __PYX_ERR(0,
|
|
4362
|
-
__pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
4422
|
+
if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_persisted)) __PYX_ERR(0, 119, __pyx_L1_error);
|
|
4423
|
+
__pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 119, __pyx_L1_error)
|
|
4363
4424
|
__Pyx_GOTREF(__pyx_t_2);
|
|
4364
|
-
if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_loop, __pyx_v_loop) < 0) __PYX_ERR(0,
|
|
4365
|
-
if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_name, __pyx_v_name) < 0) __PYX_ERR(0,
|
|
4366
|
-
__pyx_t_3 = __Pyx_PyObject_Call(__pyx_v_6a_sync_7asyncio_11create_task_Task, __pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
4425
|
+
if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_loop, __pyx_v_loop) < 0) __PYX_ERR(0, 119, __pyx_L1_error)
|
|
4426
|
+
if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_name, __pyx_v_name) < 0) __PYX_ERR(0, 119, __pyx_L1_error)
|
|
4427
|
+
__pyx_t_3 = __Pyx_PyObject_Call(__pyx_v_6a_sync_7asyncio_11create_task_Task, __pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 119, __pyx_L1_error)
|
|
4367
4428
|
__Pyx_GOTREF(__pyx_t_3);
|
|
4368
4429
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
4369
4430
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
4370
4431
|
__Pyx_DECREF_SET(__pyx_v_persisted, __pyx_t_3);
|
|
4371
4432
|
__pyx_t_3 = 0;
|
|
4372
4433
|
|
|
4373
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4434
|
+
/* "a_sync/asyncio/create_task.pyx":120
|
|
4374
4435
|
* if task_factory is None:
|
|
4375
4436
|
* persisted = Task(persisted, loop=loop, name=name)
|
|
4376
4437
|
* if persisted._source_traceback: # <<<<<<<<<<<<<<
|
|
4377
4438
|
* del persisted._source_traceback[-1]
|
|
4378
4439
|
* elif task_factory is smart_task_factory:
|
|
4379
4440
|
*/
|
|
4380
|
-
__Pyx_TraceLine(
|
|
4381
|
-
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_persisted, __pyx_n_s_source_traceback); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
4441
|
+
__Pyx_TraceLine(120,0,__PYX_ERR(0, 120, __pyx_L1_error))
|
|
4442
|
+
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_persisted, __pyx_n_s_source_traceback); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 120, __pyx_L1_error)
|
|
4382
4443
|
__Pyx_GOTREF(__pyx_t_3);
|
|
4383
|
-
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0,
|
|
4444
|
+
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 120, __pyx_L1_error)
|
|
4384
4445
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
4385
4446
|
if (__pyx_t_6) {
|
|
4386
4447
|
|
|
4387
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4448
|
+
/* "a_sync/asyncio/create_task.pyx":121
|
|
4388
4449
|
* persisted = Task(persisted, loop=loop, name=name)
|
|
4389
4450
|
* if persisted._source_traceback:
|
|
4390
4451
|
* del persisted._source_traceback[-1] # <<<<<<<<<<<<<<
|
|
4391
4452
|
* elif task_factory is smart_task_factory:
|
|
4392
4453
|
* persisted = SmartTask(persisted, loop=loop, name=name)
|
|
4393
4454
|
*/
|
|
4394
|
-
__Pyx_TraceLine(
|
|
4395
|
-
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_persisted, __pyx_n_s_source_traceback); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
4455
|
+
__Pyx_TraceLine(121,0,__PYX_ERR(0, 121, __pyx_L1_error))
|
|
4456
|
+
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_persisted, __pyx_n_s_source_traceback); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 121, __pyx_L1_error)
|
|
4396
4457
|
__Pyx_GOTREF(__pyx_t_3);
|
|
4397
|
-
if (unlikely((__Pyx_DelItemInt(__pyx_t_3, -1L, long, 1, __Pyx_PyInt_From_long, 0, 1, 1) < 0))) __PYX_ERR(0,
|
|
4458
|
+
if (unlikely((__Pyx_DelItemInt(__pyx_t_3, -1L, long, 1, __Pyx_PyInt_From_long, 0, 1, 1) < 0))) __PYX_ERR(0, 121, __pyx_L1_error)
|
|
4398
4459
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
4399
4460
|
|
|
4400
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4461
|
+
/* "a_sync/asyncio/create_task.pyx":120
|
|
4401
4462
|
* if task_factory is None:
|
|
4402
4463
|
* persisted = Task(persisted, loop=loop, name=name)
|
|
4403
4464
|
* if persisted._source_traceback: # <<<<<<<<<<<<<<
|
|
@@ -4406,7 +4467,7 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task(PyObject *_
|
|
|
4406
4467
|
*/
|
|
4407
4468
|
}
|
|
4408
4469
|
|
|
4409
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4470
|
+
/* "a_sync/asyncio/create_task.pyx":118
|
|
4410
4471
|
* persisted = __persisted_task_exc_wrap(task)
|
|
4411
4472
|
*
|
|
4412
4473
|
* if task_factory is None: # <<<<<<<<<<<<<<
|
|
@@ -4416,69 +4477,69 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task(PyObject *_
|
|
|
4416
4477
|
goto __pyx_L9;
|
|
4417
4478
|
}
|
|
4418
4479
|
|
|
4419
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4480
|
+
/* "a_sync/asyncio/create_task.pyx":122
|
|
4420
4481
|
* if persisted._source_traceback:
|
|
4421
4482
|
* del persisted._source_traceback[-1]
|
|
4422
4483
|
* elif task_factory is smart_task_factory: # <<<<<<<<<<<<<<
|
|
4423
4484
|
* persisted = SmartTask(persisted, loop=loop, name=name)
|
|
4424
4485
|
* if persisted._source_traceback:
|
|
4425
4486
|
*/
|
|
4426
|
-
__Pyx_TraceLine(
|
|
4487
|
+
__Pyx_TraceLine(122,0,__PYX_ERR(0, 122, __pyx_L1_error))
|
|
4427
4488
|
__pyx_t_6 = (__pyx_v_task_factory == __pyx_v_6a_sync_7asyncio_11create_task_smart_task_factory);
|
|
4428
4489
|
if (__pyx_t_6) {
|
|
4429
4490
|
|
|
4430
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4491
|
+
/* "a_sync/asyncio/create_task.pyx":123
|
|
4431
4492
|
* del persisted._source_traceback[-1]
|
|
4432
4493
|
* elif task_factory is smart_task_factory:
|
|
4433
4494
|
* persisted = SmartTask(persisted, loop=loop, name=name) # <<<<<<<<<<<<<<
|
|
4434
4495
|
* if persisted._source_traceback:
|
|
4435
4496
|
* del persisted._source_traceback[-1]
|
|
4436
4497
|
*/
|
|
4437
|
-
__Pyx_TraceLine(
|
|
4438
|
-
__pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
4498
|
+
__Pyx_TraceLine(123,0,__PYX_ERR(0, 123, __pyx_L1_error))
|
|
4499
|
+
__pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 123, __pyx_L1_error)
|
|
4439
4500
|
__Pyx_GOTREF(__pyx_t_3);
|
|
4440
4501
|
__Pyx_INCREF(__pyx_v_persisted);
|
|
4441
4502
|
__Pyx_GIVEREF(__pyx_v_persisted);
|
|
4442
|
-
if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_persisted)) __PYX_ERR(0,
|
|
4443
|
-
__pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
4503
|
+
if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_persisted)) __PYX_ERR(0, 123, __pyx_L1_error);
|
|
4504
|
+
__pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 123, __pyx_L1_error)
|
|
4444
4505
|
__Pyx_GOTREF(__pyx_t_2);
|
|
4445
|
-
if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_loop, __pyx_v_loop) < 0) __PYX_ERR(0,
|
|
4446
|
-
if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_name, __pyx_v_name) < 0) __PYX_ERR(0,
|
|
4447
|
-
__pyx_t_1 = __Pyx_PyObject_Call(__pyx_v_6a_sync_7asyncio_11create_task_SmartTask, __pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
4506
|
+
if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_loop, __pyx_v_loop) < 0) __PYX_ERR(0, 123, __pyx_L1_error)
|
|
4507
|
+
if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_name, __pyx_v_name) < 0) __PYX_ERR(0, 123, __pyx_L1_error)
|
|
4508
|
+
__pyx_t_1 = __Pyx_PyObject_Call(__pyx_v_6a_sync_7asyncio_11create_task_SmartTask, __pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 123, __pyx_L1_error)
|
|
4448
4509
|
__Pyx_GOTREF(__pyx_t_1);
|
|
4449
4510
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
4450
4511
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
4451
4512
|
__Pyx_DECREF_SET(__pyx_v_persisted, __pyx_t_1);
|
|
4452
4513
|
__pyx_t_1 = 0;
|
|
4453
4514
|
|
|
4454
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4515
|
+
/* "a_sync/asyncio/create_task.pyx":124
|
|
4455
4516
|
* elif task_factory is smart_task_factory:
|
|
4456
4517
|
* persisted = SmartTask(persisted, loop=loop, name=name)
|
|
4457
4518
|
* if persisted._source_traceback: # <<<<<<<<<<<<<<
|
|
4458
4519
|
* del persisted._source_traceback[-1]
|
|
4459
4520
|
* else:
|
|
4460
4521
|
*/
|
|
4461
|
-
__Pyx_TraceLine(
|
|
4462
|
-
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_persisted, __pyx_n_s_source_traceback); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
4522
|
+
__Pyx_TraceLine(124,0,__PYX_ERR(0, 124, __pyx_L1_error))
|
|
4523
|
+
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_persisted, __pyx_n_s_source_traceback); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 124, __pyx_L1_error)
|
|
4463
4524
|
__Pyx_GOTREF(__pyx_t_1);
|
|
4464
|
-
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0,
|
|
4525
|
+
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 124, __pyx_L1_error)
|
|
4465
4526
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
4466
4527
|
if (__pyx_t_6) {
|
|
4467
4528
|
|
|
4468
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4529
|
+
/* "a_sync/asyncio/create_task.pyx":125
|
|
4469
4530
|
* persisted = SmartTask(persisted, loop=loop, name=name)
|
|
4470
4531
|
* if persisted._source_traceback:
|
|
4471
4532
|
* del persisted._source_traceback[-1] # <<<<<<<<<<<<<<
|
|
4472
4533
|
* else:
|
|
4473
4534
|
* persisted = task_factory(loop, persisted)
|
|
4474
4535
|
*/
|
|
4475
|
-
__Pyx_TraceLine(
|
|
4476
|
-
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_persisted, __pyx_n_s_source_traceback); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
4536
|
+
__Pyx_TraceLine(125,0,__PYX_ERR(0, 125, __pyx_L1_error))
|
|
4537
|
+
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_persisted, __pyx_n_s_source_traceback); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 125, __pyx_L1_error)
|
|
4477
4538
|
__Pyx_GOTREF(__pyx_t_1);
|
|
4478
|
-
if (unlikely((__Pyx_DelItemInt(__pyx_t_1, -1L, long, 1, __Pyx_PyInt_From_long, 0, 1, 1) < 0))) __PYX_ERR(0,
|
|
4539
|
+
if (unlikely((__Pyx_DelItemInt(__pyx_t_1, -1L, long, 1, __Pyx_PyInt_From_long, 0, 1, 1) < 0))) __PYX_ERR(0, 125, __pyx_L1_error)
|
|
4479
4540
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
4480
4541
|
|
|
4481
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4542
|
+
/* "a_sync/asyncio/create_task.pyx":124
|
|
4482
4543
|
* elif task_factory is smart_task_factory:
|
|
4483
4544
|
* persisted = SmartTask(persisted, loop=loop, name=name)
|
|
4484
4545
|
* if persisted._source_traceback: # <<<<<<<<<<<<<<
|
|
@@ -4487,7 +4548,7 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task(PyObject *_
|
|
|
4487
4548
|
*/
|
|
4488
4549
|
}
|
|
4489
4550
|
|
|
4490
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4551
|
+
/* "a_sync/asyncio/create_task.pyx":122
|
|
4491
4552
|
* if persisted._source_traceback:
|
|
4492
4553
|
* del persisted._source_traceback[-1]
|
|
4493
4554
|
* elif task_factory is smart_task_factory: # <<<<<<<<<<<<<<
|
|
@@ -4497,14 +4558,14 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task(PyObject *_
|
|
|
4497
4558
|
goto __pyx_L9;
|
|
4498
4559
|
}
|
|
4499
4560
|
|
|
4500
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4561
|
+
/* "a_sync/asyncio/create_task.pyx":127
|
|
4501
4562
|
* del persisted._source_traceback[-1]
|
|
4502
4563
|
* else:
|
|
4503
4564
|
* persisted = task_factory(loop, persisted) # <<<<<<<<<<<<<<
|
|
4504
4565
|
* if name:
|
|
4505
4566
|
* __set_task_name(persisted, name)
|
|
4506
4567
|
*/
|
|
4507
|
-
__Pyx_TraceLine(
|
|
4568
|
+
__Pyx_TraceLine(127,0,__PYX_ERR(0, 127, __pyx_L1_error))
|
|
4508
4569
|
/*else*/ {
|
|
4509
4570
|
__Pyx_INCREF(__pyx_v_task_factory);
|
|
4510
4571
|
__pyx_t_2 = __pyx_v_task_factory; __pyx_t_3 = NULL;
|
|
@@ -4525,35 +4586,35 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task(PyObject *_
|
|
|
4525
4586
|
PyObject *__pyx_callargs[3] = {__pyx_t_3, __pyx_v_loop, __pyx_v_persisted};
|
|
4526
4587
|
__pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 2+__pyx_t_4);
|
|
4527
4588
|
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
4528
|
-
if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
4589
|
+
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 127, __pyx_L1_error)
|
|
4529
4590
|
__Pyx_GOTREF(__pyx_t_1);
|
|
4530
4591
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
4531
4592
|
}
|
|
4532
4593
|
__Pyx_DECREF_SET(__pyx_v_persisted, __pyx_t_1);
|
|
4533
4594
|
__pyx_t_1 = 0;
|
|
4534
4595
|
|
|
4535
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4596
|
+
/* "a_sync/asyncio/create_task.pyx":128
|
|
4536
4597
|
* else:
|
|
4537
4598
|
* persisted = task_factory(loop, persisted)
|
|
4538
4599
|
* if name: # <<<<<<<<<<<<<<
|
|
4539
4600
|
* __set_task_name(persisted, name)
|
|
4540
4601
|
*
|
|
4541
4602
|
*/
|
|
4542
|
-
__Pyx_TraceLine(
|
|
4603
|
+
__Pyx_TraceLine(128,0,__PYX_ERR(0, 128, __pyx_L1_error))
|
|
4543
4604
|
__pyx_t_6 = (__pyx_v_name != Py_None)&&(__Pyx_PyUnicode_IS_TRUE(__pyx_v_name) != 0);
|
|
4544
4605
|
if (__pyx_t_6) {
|
|
4545
4606
|
|
|
4546
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4607
|
+
/* "a_sync/asyncio/create_task.pyx":129
|
|
4547
4608
|
* persisted = task_factory(loop, persisted)
|
|
4548
4609
|
* if name:
|
|
4549
4610
|
* __set_task_name(persisted, name) # <<<<<<<<<<<<<<
|
|
4550
4611
|
*
|
|
4551
4612
|
* _persisted_tasks.add(persisted)
|
|
4552
4613
|
*/
|
|
4553
|
-
__Pyx_TraceLine(
|
|
4554
|
-
__pyx_f_6a_sync_7asyncio_11create_task___set_task_name(__pyx_v_persisted, __pyx_v_name); if (unlikely(PyErr_Occurred())) __PYX_ERR(0,
|
|
4614
|
+
__Pyx_TraceLine(129,0,__PYX_ERR(0, 129, __pyx_L1_error))
|
|
4615
|
+
__pyx_f_6a_sync_7asyncio_11create_task___set_task_name(__pyx_v_persisted, __pyx_v_name); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 129, __pyx_L1_error)
|
|
4555
4616
|
|
|
4556
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4617
|
+
/* "a_sync/asyncio/create_task.pyx":128
|
|
4557
4618
|
* else:
|
|
4558
4619
|
* persisted = task_factory(loop, persisted)
|
|
4559
4620
|
* if name: # <<<<<<<<<<<<<<
|
|
@@ -4564,21 +4625,21 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task(PyObject *_
|
|
|
4564
4625
|
}
|
|
4565
4626
|
__pyx_L9:;
|
|
4566
4627
|
|
|
4567
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4628
|
+
/* "a_sync/asyncio/create_task.pyx":131
|
|
4568
4629
|
* __set_task_name(persisted, name)
|
|
4569
4630
|
*
|
|
4570
4631
|
* _persisted_tasks.add(persisted) # <<<<<<<<<<<<<<
|
|
4571
4632
|
*
|
|
4572
4633
|
* if log_destroy_pending is False:
|
|
4573
4634
|
*/
|
|
4574
|
-
__Pyx_TraceLine(
|
|
4635
|
+
__Pyx_TraceLine(131,0,__PYX_ERR(0, 131, __pyx_L1_error))
|
|
4575
4636
|
if (unlikely(_persisted_tasks == Py_None)) {
|
|
4576
4637
|
PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "add");
|
|
4577
|
-
__PYX_ERR(0,
|
|
4638
|
+
__PYX_ERR(0, 131, __pyx_L1_error)
|
|
4578
4639
|
}
|
|
4579
|
-
__pyx_t_7 = PySet_Add(_persisted_tasks, __pyx_v_persisted); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(0,
|
|
4640
|
+
__pyx_t_7 = PySet_Add(_persisted_tasks, __pyx_v_persisted); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(0, 131, __pyx_L1_error)
|
|
4580
4641
|
|
|
4581
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4642
|
+
/* "a_sync/asyncio/create_task.pyx":115
|
|
4582
4643
|
* __set_task_name(task, name)
|
|
4583
4644
|
*
|
|
4584
4645
|
* if skip_gc_until_done: # <<<<<<<<<<<<<<
|
|
@@ -4587,28 +4648,28 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task(PyObject *_
|
|
|
4587
4648
|
*/
|
|
4588
4649
|
}
|
|
4589
4650
|
|
|
4590
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4651
|
+
/* "a_sync/asyncio/create_task.pyx":133
|
|
4591
4652
|
* _persisted_tasks.add(persisted)
|
|
4592
4653
|
*
|
|
4593
4654
|
* if log_destroy_pending is False: # <<<<<<<<<<<<<<
|
|
4594
4655
|
* task._log_destroy_pending = False
|
|
4595
4656
|
*
|
|
4596
4657
|
*/
|
|
4597
|
-
__Pyx_TraceLine(
|
|
4658
|
+
__Pyx_TraceLine(133,0,__PYX_ERR(0, 133, __pyx_L1_error))
|
|
4598
4659
|
__pyx_t_6 = (__pyx_v_log_destroy_pending == 0);
|
|
4599
4660
|
if (__pyx_t_6) {
|
|
4600
4661
|
|
|
4601
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4662
|
+
/* "a_sync/asyncio/create_task.pyx":134
|
|
4602
4663
|
*
|
|
4603
4664
|
* if log_destroy_pending is False:
|
|
4604
4665
|
* task._log_destroy_pending = False # <<<<<<<<<<<<<<
|
|
4605
4666
|
*
|
|
4606
4667
|
* if _persisted_tasks:
|
|
4607
4668
|
*/
|
|
4608
|
-
__Pyx_TraceLine(
|
|
4609
|
-
if (__Pyx_PyObject_SetAttrStr(__pyx_v_task, __pyx_n_s_log_destroy_pending_2, Py_False) < 0) __PYX_ERR(0,
|
|
4669
|
+
__Pyx_TraceLine(134,0,__PYX_ERR(0, 134, __pyx_L1_error))
|
|
4670
|
+
if (__Pyx_PyObject_SetAttrStr(__pyx_v_task, __pyx_n_s_log_destroy_pending_2, Py_False) < 0) __PYX_ERR(0, 134, __pyx_L1_error)
|
|
4610
4671
|
|
|
4611
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4672
|
+
/* "a_sync/asyncio/create_task.pyx":133
|
|
4612
4673
|
* _persisted_tasks.add(persisted)
|
|
4613
4674
|
*
|
|
4614
4675
|
* if log_destroy_pending is False: # <<<<<<<<<<<<<<
|
|
@@ -4617,28 +4678,28 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task(PyObject *_
|
|
|
4617
4678
|
*/
|
|
4618
4679
|
}
|
|
4619
4680
|
|
|
4620
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4681
|
+
/* "a_sync/asyncio/create_task.pyx":136
|
|
4621
4682
|
* task._log_destroy_pending = False
|
|
4622
4683
|
*
|
|
4623
4684
|
* if _persisted_tasks: # <<<<<<<<<<<<<<
|
|
4624
4685
|
* __prune_persisted_tasks()
|
|
4625
4686
|
*
|
|
4626
4687
|
*/
|
|
4627
|
-
__Pyx_TraceLine(
|
|
4688
|
+
__Pyx_TraceLine(136,0,__PYX_ERR(0, 136, __pyx_L1_error))
|
|
4628
4689
|
__pyx_t_6 = (_persisted_tasks != Py_None)&&(PySet_GET_SIZE(_persisted_tasks) != 0);
|
|
4629
4690
|
if (__pyx_t_6) {
|
|
4630
4691
|
|
|
4631
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4692
|
+
/* "a_sync/asyncio/create_task.pyx":137
|
|
4632
4693
|
*
|
|
4633
4694
|
* if _persisted_tasks:
|
|
4634
4695
|
* __prune_persisted_tasks() # <<<<<<<<<<<<<<
|
|
4635
4696
|
*
|
|
4636
4697
|
* return task
|
|
4637
4698
|
*/
|
|
4638
|
-
__Pyx_TraceLine(
|
|
4639
|
-
__pyx_f_6a_sync_7asyncio_11create_task___prune_persisted_tasks(); if (unlikely(PyErr_Occurred())) __PYX_ERR(0,
|
|
4699
|
+
__Pyx_TraceLine(137,0,__PYX_ERR(0, 137, __pyx_L1_error))
|
|
4700
|
+
__pyx_f_6a_sync_7asyncio_11create_task___prune_persisted_tasks(); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 137, __pyx_L1_error)
|
|
4640
4701
|
|
|
4641
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4702
|
+
/* "a_sync/asyncio/create_task.pyx":136
|
|
4642
4703
|
* task._log_destroy_pending = False
|
|
4643
4704
|
*
|
|
4644
4705
|
* if _persisted_tasks: # <<<<<<<<<<<<<<
|
|
@@ -4647,20 +4708,20 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task(PyObject *_
|
|
|
4647
4708
|
*/
|
|
4648
4709
|
}
|
|
4649
4710
|
|
|
4650
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4711
|
+
/* "a_sync/asyncio/create_task.pyx":139
|
|
4651
4712
|
* __prune_persisted_tasks()
|
|
4652
4713
|
*
|
|
4653
4714
|
* return task # <<<<<<<<<<<<<<
|
|
4654
4715
|
*
|
|
4655
4716
|
*
|
|
4656
4717
|
*/
|
|
4657
|
-
__Pyx_TraceLine(
|
|
4718
|
+
__Pyx_TraceLine(139,0,__PYX_ERR(0, 139, __pyx_L1_error))
|
|
4658
4719
|
__Pyx_XDECREF(__pyx_r);
|
|
4659
4720
|
__Pyx_INCREF(__pyx_v_task);
|
|
4660
4721
|
__pyx_r = __pyx_v_task;
|
|
4661
4722
|
goto __pyx_L0;
|
|
4662
4723
|
|
|
4663
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4724
|
+
/* "a_sync/asyncio/create_task.pyx":94
|
|
4664
4725
|
* return ccreate_task(coro, "", False, True)
|
|
4665
4726
|
*
|
|
4666
4727
|
* cdef object ccreate_task(object coro, str name, bint skip_gc_until_done, bint log_destroy_pending): # <<<<<<<<<<<<<<
|
|
@@ -4687,7 +4748,7 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task(PyObject *_
|
|
|
4687
4748
|
return __pyx_r;
|
|
4688
4749
|
}
|
|
4689
4750
|
|
|
4690
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4751
|
+
/* "a_sync/asyncio/create_task.pyx":142
|
|
4691
4752
|
*
|
|
4692
4753
|
*
|
|
4693
4754
|
* cdef inline void __set_task_name(object task, str name): # <<<<<<<<<<<<<<
|
|
@@ -4708,32 +4769,32 @@ static CYTHON_INLINE void __pyx_f_6a_sync_7asyncio_11create_task___set_task_name
|
|
|
4708
4769
|
const char *__pyx_filename = NULL;
|
|
4709
4770
|
int __pyx_clineno = 0;
|
|
4710
4771
|
__Pyx_RefNannySetupContext("__set_task_name", 1);
|
|
4711
|
-
__Pyx_TraceCall("__set_task_name", __pyx_f[0],
|
|
4772
|
+
__Pyx_TraceCall("__set_task_name", __pyx_f[0], 142, 0, __PYX_ERR(0, 142, __pyx_L1_error));
|
|
4712
4773
|
|
|
4713
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4774
|
+
/* "a_sync/asyncio/create_task.pyx":143
|
|
4714
4775
|
*
|
|
4715
4776
|
* cdef inline void __set_task_name(object task, str name):
|
|
4716
4777
|
* if set_name := getattr(task, "set_name", None): # <<<<<<<<<<<<<<
|
|
4717
4778
|
* set_name(name)
|
|
4718
4779
|
*
|
|
4719
4780
|
*/
|
|
4720
|
-
__Pyx_TraceLine(
|
|
4721
|
-
__pyx_t_1 = __Pyx_GetAttr3(__pyx_v_task, __pyx_n_u_set_name, Py_None); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
4781
|
+
__Pyx_TraceLine(143,0,__PYX_ERR(0, 143, __pyx_L1_error))
|
|
4782
|
+
__pyx_t_1 = __Pyx_GetAttr3(__pyx_v_task, __pyx_n_u_set_name, Py_None); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 143, __pyx_L1_error)
|
|
4722
4783
|
__Pyx_GOTREF(__pyx_t_1);
|
|
4723
4784
|
__pyx_v_set_name = __pyx_t_1;
|
|
4724
4785
|
__Pyx_INCREF(__pyx_t_1);
|
|
4725
|
-
__pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0,
|
|
4786
|
+
__pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 143, __pyx_L1_error)
|
|
4726
4787
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
4727
4788
|
if (__pyx_t_2) {
|
|
4728
4789
|
|
|
4729
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4790
|
+
/* "a_sync/asyncio/create_task.pyx":144
|
|
4730
4791
|
* cdef inline void __set_task_name(object task, str name):
|
|
4731
4792
|
* if set_name := getattr(task, "set_name", None):
|
|
4732
4793
|
* set_name(name) # <<<<<<<<<<<<<<
|
|
4733
4794
|
*
|
|
4734
4795
|
*
|
|
4735
4796
|
*/
|
|
4736
|
-
__Pyx_TraceLine(
|
|
4797
|
+
__Pyx_TraceLine(144,0,__PYX_ERR(0, 144, __pyx_L1_error))
|
|
4737
4798
|
__Pyx_INCREF(__pyx_v_set_name);
|
|
4738
4799
|
__pyx_t_3 = __pyx_v_set_name; __pyx_t_4 = NULL;
|
|
4739
4800
|
__pyx_t_5 = 0;
|
|
@@ -4753,13 +4814,13 @@ static CYTHON_INLINE void __pyx_f_6a_sync_7asyncio_11create_task___set_task_name
|
|
|
4753
4814
|
PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_name};
|
|
4754
4815
|
__pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5);
|
|
4755
4816
|
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
4756
|
-
if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
4817
|
+
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 144, __pyx_L1_error)
|
|
4757
4818
|
__Pyx_GOTREF(__pyx_t_1);
|
|
4758
4819
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
4759
4820
|
}
|
|
4760
4821
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
4761
4822
|
|
|
4762
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4823
|
+
/* "a_sync/asyncio/create_task.pyx":143
|
|
4763
4824
|
*
|
|
4764
4825
|
* cdef inline void __set_task_name(object task, str name):
|
|
4765
4826
|
* if set_name := getattr(task, "set_name", None): # <<<<<<<<<<<<<<
|
|
@@ -4768,7 +4829,7 @@ static CYTHON_INLINE void __pyx_f_6a_sync_7asyncio_11create_task___set_task_name
|
|
|
4768
4829
|
*/
|
|
4769
4830
|
}
|
|
4770
4831
|
|
|
4771
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4832
|
+
/* "a_sync/asyncio/create_task.pyx":142
|
|
4772
4833
|
*
|
|
4773
4834
|
*
|
|
4774
4835
|
* cdef inline void __set_task_name(object task, str name): # <<<<<<<<<<<<<<
|
|
@@ -4790,7 +4851,7 @@ static CYTHON_INLINE void __pyx_f_6a_sync_7asyncio_11create_task___set_task_name
|
|
|
4790
4851
|
}
|
|
4791
4852
|
static PyObject *__pyx_gb_6a_sync_7asyncio_11create_task_4generator(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */
|
|
4792
4853
|
|
|
4793
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4854
|
+
/* "a_sync/asyncio/create_task.pyx":151
|
|
4794
4855
|
* cdef object __await
|
|
4795
4856
|
*
|
|
4796
4857
|
* async def __await(awaitable: Awaitable[T]) -> T: # <<<<<<<<<<<<<<
|
|
@@ -4852,12 +4913,12 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
|
|
|
4852
4913
|
(void)__Pyx_Arg_NewRef_FASTCALL(values[0]);
|
|
4853
4914
|
kw_args--;
|
|
4854
4915
|
}
|
|
4855
|
-
else if (unlikely(PyErr_Occurred())) __PYX_ERR(0,
|
|
4916
|
+
else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 151, __pyx_L3_error)
|
|
4856
4917
|
else goto __pyx_L5_argtuple_error;
|
|
4857
4918
|
}
|
|
4858
4919
|
if (unlikely(kw_args > 0)) {
|
|
4859
4920
|
const Py_ssize_t kwd_pos_args = __pyx_nargs;
|
|
4860
|
-
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__await") < 0)) __PYX_ERR(0,
|
|
4921
|
+
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__await") < 0)) __PYX_ERR(0, 151, __pyx_L3_error)
|
|
4861
4922
|
}
|
|
4862
4923
|
} else if (unlikely(__pyx_nargs != 1)) {
|
|
4863
4924
|
goto __pyx_L5_argtuple_error;
|
|
@@ -4868,7 +4929,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
|
|
|
4868
4929
|
}
|
|
4869
4930
|
goto __pyx_L6_skip;
|
|
4870
4931
|
__pyx_L5_argtuple_error:;
|
|
4871
|
-
__Pyx_RaiseArgtupleInvalid("__await", 1, 1, 1, __pyx_nargs); __PYX_ERR(0,
|
|
4932
|
+
__Pyx_RaiseArgtupleInvalid("__await", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 151, __pyx_L3_error)
|
|
4872
4933
|
__pyx_L6_skip:;
|
|
4873
4934
|
goto __pyx_L4_argument_unpacking_done;
|
|
4874
4935
|
__pyx_L3_error:;
|
|
@@ -4907,7 +4968,7 @@ static PyObject *__pyx_pf_6a_sync_7asyncio_11create_task_2__await(CYTHON_UNUSED
|
|
|
4907
4968
|
if (unlikely(!__pyx_cur_scope)) {
|
|
4908
4969
|
__pyx_cur_scope = ((struct __pyx_obj_6a_sync_7asyncio_11create_task___pyx_scope_struct____await *)Py_None);
|
|
4909
4970
|
__Pyx_INCREF(Py_None);
|
|
4910
|
-
__PYX_ERR(0,
|
|
4971
|
+
__PYX_ERR(0, 151, __pyx_L1_error)
|
|
4911
4972
|
} else {
|
|
4912
4973
|
__Pyx_GOTREF((PyObject *)__pyx_cur_scope);
|
|
4913
4974
|
}
|
|
@@ -4915,7 +4976,7 @@ static PyObject *__pyx_pf_6a_sync_7asyncio_11create_task_2__await(CYTHON_UNUSED
|
|
|
4915
4976
|
__Pyx_INCREF(__pyx_cur_scope->__pyx_v_awaitable);
|
|
4916
4977
|
__Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_awaitable);
|
|
4917
4978
|
{
|
|
4918
|
-
__pyx_CoroutineObject *gen = __Pyx_Coroutine_New((__pyx_coroutine_body_t) __pyx_gb_6a_sync_7asyncio_11create_task_4generator, __pyx_codeobj__5, (PyObject *) __pyx_cur_scope, __pyx_n_s_await, __pyx_n_s_await, __pyx_n_s_a_sync_asyncio_create_task); if (unlikely(!gen)) __PYX_ERR(0,
|
|
4979
|
+
__pyx_CoroutineObject *gen = __Pyx_Coroutine_New((__pyx_coroutine_body_t) __pyx_gb_6a_sync_7asyncio_11create_task_4generator, __pyx_codeobj__5, (PyObject *) __pyx_cur_scope, __pyx_n_s_await, __pyx_n_s_await, __pyx_n_s_a_sync_asyncio_create_task); if (unlikely(!gen)) __PYX_ERR(0, 151, __pyx_L1_error)
|
|
4919
4980
|
__Pyx_DECREF(__pyx_cur_scope);
|
|
4920
4981
|
__Pyx_RefNannyFinishContext();
|
|
4921
4982
|
return (PyObject *) gen;
|
|
@@ -4961,7 +5022,7 @@ static PyObject *__pyx_gb_6a_sync_7asyncio_11create_task_4generator(__pyx_Corout
|
|
|
4961
5022
|
__Pyx_RefNannyDeclarations
|
|
4962
5023
|
__Pyx_RefNannySetupContext("__await", 0);
|
|
4963
5024
|
__Pyx_TraceFrameInit(__pyx_codeobj__5)
|
|
4964
|
-
__Pyx_TraceCall("__await", __pyx_f[0],
|
|
5025
|
+
__Pyx_TraceCall("__await", __pyx_f[0], 151, 0, __PYX_ERR(0, 151, __pyx_L1_error));
|
|
4965
5026
|
switch (__pyx_generator->resume_label) {
|
|
4966
5027
|
case 0: goto __pyx_L3_first_run;
|
|
4967
5028
|
case 1: goto __pyx_L10_resume_from_await;
|
|
@@ -4971,16 +5032,16 @@ static PyObject *__pyx_gb_6a_sync_7asyncio_11create_task_4generator(__pyx_Corout
|
|
|
4971
5032
|
return NULL;
|
|
4972
5033
|
}
|
|
4973
5034
|
__pyx_L3_first_run:;
|
|
4974
|
-
if (unlikely(!__pyx_sent_value)) __PYX_ERR(0,
|
|
5035
|
+
if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 151, __pyx_L1_error)
|
|
4975
5036
|
|
|
4976
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5037
|
+
/* "a_sync/asyncio/create_task.pyx":170
|
|
4977
5038
|
* - :class:`Awaitable`
|
|
4978
5039
|
* """
|
|
4979
5040
|
* try: # <<<<<<<<<<<<<<
|
|
4980
5041
|
* return await awaitable
|
|
4981
5042
|
* except RuntimeError as e:
|
|
4982
5043
|
*/
|
|
4983
|
-
__Pyx_TraceLine(
|
|
5044
|
+
__Pyx_TraceLine(170,0,__PYX_ERR(0, 170, __pyx_L1_error))
|
|
4984
5045
|
{
|
|
4985
5046
|
__Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
|
|
4986
5047
|
__Pyx_XGOTREF(__pyx_t_1);
|
|
@@ -4988,14 +5049,14 @@ static PyObject *__pyx_gb_6a_sync_7asyncio_11create_task_4generator(__pyx_Corout
|
|
|
4988
5049
|
__Pyx_XGOTREF(__pyx_t_3);
|
|
4989
5050
|
/*try:*/ {
|
|
4990
5051
|
|
|
4991
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5052
|
+
/* "a_sync/asyncio/create_task.pyx":171
|
|
4992
5053
|
* """
|
|
4993
5054
|
* try:
|
|
4994
5055
|
* return await awaitable # <<<<<<<<<<<<<<
|
|
4995
5056
|
* except RuntimeError as e:
|
|
4996
5057
|
* args = [e, awaitable]
|
|
4997
5058
|
*/
|
|
4998
|
-
__Pyx_TraceLine(
|
|
5059
|
+
__Pyx_TraceLine(171,0,__PYX_ERR(0, 171, __pyx_L4_error))
|
|
4999
5060
|
__Pyx_XDECREF(__pyx_r);
|
|
5000
5061
|
__pyx_r = __Pyx_Coroutine_Yield_From(__pyx_generator, __pyx_cur_scope->__pyx_v_awaitable);
|
|
5001
5062
|
__Pyx_XGOTREF(__pyx_r);
|
|
@@ -5023,18 +5084,18 @@ static PyObject *__pyx_gb_6a_sync_7asyncio_11create_task_4generator(__pyx_Corout
|
|
|
5023
5084
|
__pyx_t_3 = __pyx_cur_scope->__pyx_t_2;
|
|
5024
5085
|
__pyx_cur_scope->__pyx_t_2 = 0;
|
|
5025
5086
|
__Pyx_XGOTREF(__pyx_t_3);
|
|
5026
|
-
if (unlikely(!__pyx_sent_value)) __PYX_ERR(0,
|
|
5087
|
+
if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 171, __pyx_L4_error)
|
|
5027
5088
|
__pyx_t_4 = __pyx_sent_value; __Pyx_INCREF(__pyx_t_4);
|
|
5028
5089
|
} else {
|
|
5029
5090
|
__pyx_t_4 = NULL;
|
|
5030
|
-
if (__Pyx_PyGen_FetchStopIterationValue(&__pyx_t_4) < 0) __PYX_ERR(0,
|
|
5091
|
+
if (__Pyx_PyGen_FetchStopIterationValue(&__pyx_t_4) < 0) __PYX_ERR(0, 171, __pyx_L4_error)
|
|
5031
5092
|
__Pyx_GOTREF(__pyx_t_4);
|
|
5032
5093
|
}
|
|
5033
5094
|
__pyx_r = NULL; __Pyx_ReturnWithStopIteration(__pyx_t_4);
|
|
5034
5095
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
5035
5096
|
goto __pyx_L8_try_return;
|
|
5036
5097
|
|
|
5037
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5098
|
+
/* "a_sync/asyncio/create_task.pyx":170
|
|
5038
5099
|
* - :class:`Awaitable`
|
|
5039
5100
|
* """
|
|
5040
5101
|
* try: # <<<<<<<<<<<<<<
|
|
@@ -5045,18 +5106,18 @@ static PyObject *__pyx_gb_6a_sync_7asyncio_11create_task_4generator(__pyx_Corout
|
|
|
5045
5106
|
__pyx_L4_error:;
|
|
5046
5107
|
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
5047
5108
|
|
|
5048
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5109
|
+
/* "a_sync/asyncio/create_task.pyx":172
|
|
5049
5110
|
* try:
|
|
5050
5111
|
* return await awaitable
|
|
5051
5112
|
* except RuntimeError as e: # <<<<<<<<<<<<<<
|
|
5052
5113
|
* args = [e, awaitable]
|
|
5053
5114
|
* if isinstance(awaitable, _GatheringFuture):
|
|
5054
5115
|
*/
|
|
5055
|
-
__Pyx_TraceLine(
|
|
5116
|
+
__Pyx_TraceLine(172,0,__PYX_ERR(0, 172, __pyx_L6_except_error))
|
|
5056
5117
|
__pyx_t_5 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_RuntimeError);
|
|
5057
5118
|
if (__pyx_t_5) {
|
|
5058
5119
|
__Pyx_AddTraceback("a_sync.asyncio.create_task.__await", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
5059
|
-
if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(0,
|
|
5120
|
+
if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(0, 172, __pyx_L6_except_error)
|
|
5060
5121
|
__Pyx_XGOTREF(__pyx_t_4);
|
|
5061
5122
|
__Pyx_XGOTREF(__pyx_t_6);
|
|
5062
5123
|
__Pyx_XGOTREF(__pyx_t_7);
|
|
@@ -5065,54 +5126,54 @@ static PyObject *__pyx_gb_6a_sync_7asyncio_11create_task_4generator(__pyx_Corout
|
|
|
5065
5126
|
__pyx_cur_scope->__pyx_v_e = __pyx_t_6;
|
|
5066
5127
|
/*try:*/ {
|
|
5067
5128
|
|
|
5068
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5129
|
+
/* "a_sync/asyncio/create_task.pyx":173
|
|
5069
5130
|
* return await awaitable
|
|
5070
5131
|
* except RuntimeError as e:
|
|
5071
5132
|
* args = [e, awaitable] # <<<<<<<<<<<<<<
|
|
5072
5133
|
* if isinstance(awaitable, _GatheringFuture):
|
|
5073
5134
|
* args.append(awaitable._children)
|
|
5074
5135
|
*/
|
|
5075
|
-
__Pyx_TraceLine(
|
|
5076
|
-
__pyx_t_8 = PyList_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0,
|
|
5136
|
+
__Pyx_TraceLine(173,0,__PYX_ERR(0, 173, __pyx_L16_error))
|
|
5137
|
+
__pyx_t_8 = PyList_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 173, __pyx_L16_error)
|
|
5077
5138
|
__Pyx_GOTREF(__pyx_t_8);
|
|
5078
5139
|
__Pyx_INCREF(__pyx_cur_scope->__pyx_v_e);
|
|
5079
5140
|
__Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_e);
|
|
5080
|
-
if (__Pyx_PyList_SET_ITEM(__pyx_t_8, 0, __pyx_cur_scope->__pyx_v_e)) __PYX_ERR(0,
|
|
5141
|
+
if (__Pyx_PyList_SET_ITEM(__pyx_t_8, 0, __pyx_cur_scope->__pyx_v_e)) __PYX_ERR(0, 173, __pyx_L16_error);
|
|
5081
5142
|
__Pyx_INCREF(__pyx_cur_scope->__pyx_v_awaitable);
|
|
5082
5143
|
__Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_awaitable);
|
|
5083
|
-
if (__Pyx_PyList_SET_ITEM(__pyx_t_8, 1, __pyx_cur_scope->__pyx_v_awaitable)) __PYX_ERR(0,
|
|
5144
|
+
if (__Pyx_PyList_SET_ITEM(__pyx_t_8, 1, __pyx_cur_scope->__pyx_v_awaitable)) __PYX_ERR(0, 173, __pyx_L16_error);
|
|
5084
5145
|
__Pyx_GIVEREF(__pyx_t_8);
|
|
5085
5146
|
__pyx_cur_scope->__pyx_v_args = ((PyObject*)__pyx_t_8);
|
|
5086
5147
|
__pyx_t_8 = 0;
|
|
5087
5148
|
|
|
5088
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5149
|
+
/* "a_sync/asyncio/create_task.pyx":174
|
|
5089
5150
|
* except RuntimeError as e:
|
|
5090
5151
|
* args = [e, awaitable]
|
|
5091
5152
|
* if isinstance(awaitable, _GatheringFuture): # <<<<<<<<<<<<<<
|
|
5092
5153
|
* args.append(awaitable._children)
|
|
5093
5154
|
* raise RuntimeError(*args) from None
|
|
5094
5155
|
*/
|
|
5095
|
-
__Pyx_TraceLine(
|
|
5156
|
+
__Pyx_TraceLine(174,0,__PYX_ERR(0, 174, __pyx_L16_error))
|
|
5096
5157
|
__pyx_t_8 = __pyx_v_6a_sync_7asyncio_11create_task__GatheringFuture;
|
|
5097
5158
|
__Pyx_INCREF(__pyx_t_8);
|
|
5098
|
-
__pyx_t_9 = PyObject_IsInstance(__pyx_cur_scope->__pyx_v_awaitable, __pyx_t_8); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(0,
|
|
5159
|
+
__pyx_t_9 = PyObject_IsInstance(__pyx_cur_scope->__pyx_v_awaitable, __pyx_t_8); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(0, 174, __pyx_L16_error)
|
|
5099
5160
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
5100
5161
|
if (__pyx_t_9) {
|
|
5101
5162
|
|
|
5102
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5163
|
+
/* "a_sync/asyncio/create_task.pyx":175
|
|
5103
5164
|
* args = [e, awaitable]
|
|
5104
5165
|
* if isinstance(awaitable, _GatheringFuture):
|
|
5105
5166
|
* args.append(awaitable._children) # <<<<<<<<<<<<<<
|
|
5106
5167
|
* raise RuntimeError(*args) from None
|
|
5107
5168
|
*
|
|
5108
5169
|
*/
|
|
5109
|
-
__Pyx_TraceLine(
|
|
5110
|
-
__pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_cur_scope->__pyx_v_awaitable, __pyx_n_s_children); if (unlikely(!__pyx_t_8)) __PYX_ERR(0,
|
|
5170
|
+
__Pyx_TraceLine(175,0,__PYX_ERR(0, 175, __pyx_L16_error))
|
|
5171
|
+
__pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_cur_scope->__pyx_v_awaitable, __pyx_n_s_children); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 175, __pyx_L16_error)
|
|
5111
5172
|
__Pyx_GOTREF(__pyx_t_8);
|
|
5112
|
-
__pyx_t_10 = __Pyx_PyList_Append(__pyx_cur_scope->__pyx_v_args, __pyx_t_8); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(0,
|
|
5173
|
+
__pyx_t_10 = __Pyx_PyList_Append(__pyx_cur_scope->__pyx_v_args, __pyx_t_8); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(0, 175, __pyx_L16_error)
|
|
5113
5174
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
5114
5175
|
|
|
5115
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5176
|
+
/* "a_sync/asyncio/create_task.pyx":174
|
|
5116
5177
|
* except RuntimeError as e:
|
|
5117
5178
|
* args = [e, awaitable]
|
|
5118
5179
|
* if isinstance(awaitable, _GatheringFuture): # <<<<<<<<<<<<<<
|
|
@@ -5121,32 +5182,32 @@ static PyObject *__pyx_gb_6a_sync_7asyncio_11create_task_4generator(__pyx_Corout
|
|
|
5121
5182
|
*/
|
|
5122
5183
|
}
|
|
5123
5184
|
|
|
5124
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5185
|
+
/* "a_sync/asyncio/create_task.pyx":176
|
|
5125
5186
|
* if isinstance(awaitable, _GatheringFuture):
|
|
5126
5187
|
* args.append(awaitable._children)
|
|
5127
5188
|
* raise RuntimeError(*args) from None # <<<<<<<<<<<<<<
|
|
5128
5189
|
*
|
|
5129
5190
|
*
|
|
5130
5191
|
*/
|
|
5131
|
-
__Pyx_TraceLine(
|
|
5132
|
-
__pyx_t_8 = PySequence_Tuple(__pyx_cur_scope->__pyx_v_args); if (unlikely(!__pyx_t_8)) __PYX_ERR(0,
|
|
5192
|
+
__Pyx_TraceLine(176,0,__PYX_ERR(0, 176, __pyx_L16_error))
|
|
5193
|
+
__pyx_t_8 = PySequence_Tuple(__pyx_cur_scope->__pyx_v_args); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 176, __pyx_L16_error)
|
|
5133
5194
|
__Pyx_GOTREF(__pyx_t_8);
|
|
5134
|
-
__pyx_t_11 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_t_8, NULL); if (unlikely(!__pyx_t_11)) __PYX_ERR(0,
|
|
5195
|
+
__pyx_t_11 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_t_8, NULL); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 176, __pyx_L16_error)
|
|
5135
5196
|
__Pyx_GOTREF(__pyx_t_11);
|
|
5136
5197
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
5137
5198
|
__Pyx_Raise(__pyx_t_11, 0, 0, Py_None);
|
|
5138
5199
|
__Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
|
|
5139
|
-
__PYX_ERR(0,
|
|
5200
|
+
__PYX_ERR(0, 176, __pyx_L16_error)
|
|
5140
5201
|
}
|
|
5141
5202
|
|
|
5142
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5203
|
+
/* "a_sync/asyncio/create_task.pyx":172
|
|
5143
5204
|
* try:
|
|
5144
5205
|
* return await awaitable
|
|
5145
5206
|
* except RuntimeError as e: # <<<<<<<<<<<<<<
|
|
5146
5207
|
* args = [e, awaitable]
|
|
5147
5208
|
* if isinstance(awaitable, _GatheringFuture):
|
|
5148
5209
|
*/
|
|
5149
|
-
__Pyx_TraceLine(
|
|
5210
|
+
__Pyx_TraceLine(172,0,__PYX_ERR(0, 172, __pyx_L16_error))
|
|
5150
5211
|
/*finally:*/ {
|
|
5151
5212
|
__pyx_L16_error:;
|
|
5152
5213
|
/*exception exit:*/{
|
|
@@ -5185,7 +5246,7 @@ static PyObject *__pyx_gb_6a_sync_7asyncio_11create_task_4generator(__pyx_Corout
|
|
|
5185
5246
|
}
|
|
5186
5247
|
goto __pyx_L6_except_error;
|
|
5187
5248
|
|
|
5188
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5249
|
+
/* "a_sync/asyncio/create_task.pyx":170
|
|
5189
5250
|
* - :class:`Awaitable`
|
|
5190
5251
|
* """
|
|
5191
5252
|
* try: # <<<<<<<<<<<<<<
|
|
@@ -5207,7 +5268,7 @@ static PyObject *__pyx_gb_6a_sync_7asyncio_11create_task_4generator(__pyx_Corout
|
|
|
5207
5268
|
}
|
|
5208
5269
|
CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);
|
|
5209
5270
|
|
|
5210
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5271
|
+
/* "a_sync/asyncio/create_task.pyx":151
|
|
5211
5272
|
* cdef object __await
|
|
5212
5273
|
*
|
|
5213
5274
|
* async def __await(awaitable: Awaitable[T]) -> T: # <<<<<<<<<<<<<<
|
|
@@ -5236,7 +5297,7 @@ static PyObject *__pyx_gb_6a_sync_7asyncio_11create_task_4generator(__pyx_Corout
|
|
|
5236
5297
|
return __pyx_r;
|
|
5237
5298
|
}
|
|
5238
5299
|
|
|
5239
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5300
|
+
/* "a_sync/asyncio/create_task.pyx":182
|
|
5240
5301
|
*
|
|
5241
5302
|
*
|
|
5242
5303
|
* cdef void __prune_persisted_tasks(): # <<<<<<<<<<<<<<
|
|
@@ -5263,58 +5324,58 @@ static void __pyx_f_6a_sync_7asyncio_11create_task___prune_persisted_tasks(void)
|
|
|
5263
5324
|
const char *__pyx_filename = NULL;
|
|
5264
5325
|
int __pyx_clineno = 0;
|
|
5265
5326
|
__Pyx_RefNannySetupContext("__prune_persisted_tasks", 1);
|
|
5266
|
-
__Pyx_TraceCall("__prune_persisted_tasks", __pyx_f[0],
|
|
5327
|
+
__Pyx_TraceCall("__prune_persisted_tasks", __pyx_f[0], 182, 0, __PYX_ERR(0, 182, __pyx_L1_error));
|
|
5267
5328
|
|
|
5268
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5329
|
+
/* "a_sync/asyncio/create_task.pyx":194
|
|
5269
5330
|
* cdef object task
|
|
5270
5331
|
* cdef dict context
|
|
5271
5332
|
* cdef list done = list(filter(_is_done, _persisted_tasks)) # <<<<<<<<<<<<<<
|
|
5272
5333
|
* if not done:
|
|
5273
5334
|
* return
|
|
5274
5335
|
*/
|
|
5275
|
-
__Pyx_TraceLine(
|
|
5276
|
-
__pyx_t_1 = __Pyx_CFunc_79ed5e__6a_sync_7asyncio_11create_task_bint__lParenobj__etc_to_py_3fut(__pyx_f_6a_sync_7asyncio_11create_task__is_done); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
5336
|
+
__Pyx_TraceLine(194,0,__PYX_ERR(0, 194, __pyx_L1_error))
|
|
5337
|
+
__pyx_t_1 = __Pyx_CFunc_79ed5e__6a_sync_7asyncio_11create_task_bint__lParenobj__etc_to_py_3fut(__pyx_f_6a_sync_7asyncio_11create_task__is_done); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 194, __pyx_L1_error)
|
|
5277
5338
|
__Pyx_GOTREF(__pyx_t_1);
|
|
5278
|
-
__pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
5339
|
+
__pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 194, __pyx_L1_error)
|
|
5279
5340
|
__Pyx_GOTREF(__pyx_t_2);
|
|
5280
5341
|
__Pyx_GIVEREF(__pyx_t_1);
|
|
5281
|
-
if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(0,
|
|
5342
|
+
if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(0, 194, __pyx_L1_error);
|
|
5282
5343
|
__Pyx_INCREF(_persisted_tasks);
|
|
5283
5344
|
__Pyx_GIVEREF(_persisted_tasks);
|
|
5284
|
-
if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, _persisted_tasks)) __PYX_ERR(0,
|
|
5345
|
+
if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, _persisted_tasks)) __PYX_ERR(0, 194, __pyx_L1_error);
|
|
5285
5346
|
__pyx_t_1 = 0;
|
|
5286
|
-
__pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_filter, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
5347
|
+
__pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_filter, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 194, __pyx_L1_error)
|
|
5287
5348
|
__Pyx_GOTREF(__pyx_t_1);
|
|
5288
5349
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
5289
|
-
__pyx_t_2 = __Pyx_PySequence_ListKeepNew(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
5350
|
+
__pyx_t_2 = __Pyx_PySequence_ListKeepNew(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 194, __pyx_L1_error)
|
|
5290
5351
|
__Pyx_GOTREF(__pyx_t_2);
|
|
5291
5352
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
5292
5353
|
__pyx_v_done = ((PyObject*)__pyx_t_2);
|
|
5293
5354
|
__pyx_t_2 = 0;
|
|
5294
5355
|
|
|
5295
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5356
|
+
/* "a_sync/asyncio/create_task.pyx":195
|
|
5296
5357
|
* cdef dict context
|
|
5297
5358
|
* cdef list done = list(filter(_is_done, _persisted_tasks))
|
|
5298
5359
|
* if not done: # <<<<<<<<<<<<<<
|
|
5299
5360
|
* return
|
|
5300
5361
|
* _persisted_tasks.difference_update(done)
|
|
5301
5362
|
*/
|
|
5302
|
-
__Pyx_TraceLine(
|
|
5363
|
+
__Pyx_TraceLine(195,0,__PYX_ERR(0, 195, __pyx_L1_error))
|
|
5303
5364
|
__pyx_t_3 = (PyList_GET_SIZE(__pyx_v_done) != 0);
|
|
5304
5365
|
__pyx_t_4 = (!__pyx_t_3);
|
|
5305
5366
|
if (__pyx_t_4) {
|
|
5306
5367
|
|
|
5307
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5368
|
+
/* "a_sync/asyncio/create_task.pyx":196
|
|
5308
5369
|
* cdef list done = list(filter(_is_done, _persisted_tasks))
|
|
5309
5370
|
* if not done:
|
|
5310
5371
|
* return # <<<<<<<<<<<<<<
|
|
5311
5372
|
* _persisted_tasks.difference_update(done)
|
|
5312
5373
|
* for task in done:
|
|
5313
5374
|
*/
|
|
5314
|
-
__Pyx_TraceLine(
|
|
5375
|
+
__Pyx_TraceLine(196,0,__PYX_ERR(0, 196, __pyx_L1_error))
|
|
5315
5376
|
goto __pyx_L0;
|
|
5316
5377
|
|
|
5317
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5378
|
+
/* "a_sync/asyncio/create_task.pyx":195
|
|
5318
5379
|
* cdef dict context
|
|
5319
5380
|
* cdef list done = list(filter(_is_done, _persisted_tasks))
|
|
5320
5381
|
* if not done: # <<<<<<<<<<<<<<
|
|
@@ -5323,80 +5384,80 @@ static void __pyx_f_6a_sync_7asyncio_11create_task___prune_persisted_tasks(void)
|
|
|
5323
5384
|
*/
|
|
5324
5385
|
}
|
|
5325
5386
|
|
|
5326
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5387
|
+
/* "a_sync/asyncio/create_task.pyx":197
|
|
5327
5388
|
* if not done:
|
|
5328
5389
|
* return
|
|
5329
5390
|
* _persisted_tasks.difference_update(done) # <<<<<<<<<<<<<<
|
|
5330
5391
|
* for task in done:
|
|
5331
5392
|
* exc = _get_exception(task)
|
|
5332
5393
|
*/
|
|
5333
|
-
__Pyx_TraceLine(
|
|
5334
|
-
__pyx_t_2 = __Pyx_CallUnboundCMethod1(&__pyx_umethod_PySet_Type_difference_update, _persisted_tasks, __pyx_v_done); if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
5394
|
+
__Pyx_TraceLine(197,0,__PYX_ERR(0, 197, __pyx_L1_error))
|
|
5395
|
+
__pyx_t_2 = __Pyx_CallUnboundCMethod1(&__pyx_umethod_PySet_Type_difference_update, _persisted_tasks, __pyx_v_done); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 197, __pyx_L1_error)
|
|
5335
5396
|
__Pyx_GOTREF(__pyx_t_2);
|
|
5336
5397
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
5337
5398
|
|
|
5338
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5399
|
+
/* "a_sync/asyncio/create_task.pyx":198
|
|
5339
5400
|
* return
|
|
5340
5401
|
* _persisted_tasks.difference_update(done)
|
|
5341
5402
|
* for task in done: # <<<<<<<<<<<<<<
|
|
5342
5403
|
* exc = _get_exception(task)
|
|
5343
5404
|
* if exc is None:
|
|
5344
5405
|
*/
|
|
5345
|
-
__Pyx_TraceLine(
|
|
5406
|
+
__Pyx_TraceLine(198,0,__PYX_ERR(0, 198, __pyx_L1_error))
|
|
5346
5407
|
__pyx_t_2 = __pyx_v_done; __Pyx_INCREF(__pyx_t_2);
|
|
5347
5408
|
__pyx_t_5 = 0;
|
|
5348
5409
|
for (;;) {
|
|
5349
5410
|
{
|
|
5350
5411
|
Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
|
|
5351
5412
|
#if !CYTHON_ASSUME_SAFE_MACROS
|
|
5352
|
-
if (unlikely((__pyx_temp < 0))) __PYX_ERR(0,
|
|
5413
|
+
if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 198, __pyx_L1_error)
|
|
5353
5414
|
#endif
|
|
5354
5415
|
if (__pyx_t_5 >= __pyx_temp) break;
|
|
5355
5416
|
}
|
|
5356
5417
|
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
|
|
5357
|
-
__pyx_t_1 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_5); __Pyx_INCREF(__pyx_t_1); __pyx_t_5++; if (unlikely((0 < 0))) __PYX_ERR(0,
|
|
5418
|
+
__pyx_t_1 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_5); __Pyx_INCREF(__pyx_t_1); __pyx_t_5++; if (unlikely((0 < 0))) __PYX_ERR(0, 198, __pyx_L1_error)
|
|
5358
5419
|
#else
|
|
5359
|
-
__pyx_t_1 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
5420
|
+
__pyx_t_1 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 198, __pyx_L1_error)
|
|
5360
5421
|
__Pyx_GOTREF(__pyx_t_1);
|
|
5361
5422
|
#endif
|
|
5362
5423
|
__Pyx_XDECREF_SET(__pyx_v_task, __pyx_t_1);
|
|
5363
5424
|
__pyx_t_1 = 0;
|
|
5364
5425
|
|
|
5365
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5426
|
+
/* "a_sync/asyncio/create_task.pyx":199
|
|
5366
5427
|
* _persisted_tasks.difference_update(done)
|
|
5367
5428
|
* for task in done:
|
|
5368
5429
|
* exc = _get_exception(task) # <<<<<<<<<<<<<<
|
|
5369
5430
|
* if exc is None:
|
|
5370
5431
|
* continue
|
|
5371
5432
|
*/
|
|
5372
|
-
__Pyx_TraceLine(
|
|
5373
|
-
__pyx_t_1 = __pyx_f_6a_sync_7asyncio_11create_task__get_exception(__pyx_v_task); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
5433
|
+
__Pyx_TraceLine(199,0,__PYX_ERR(0, 199, __pyx_L1_error))
|
|
5434
|
+
__pyx_t_1 = __pyx_f_6a_sync_7asyncio_11create_task__get_exception(__pyx_v_task); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 199, __pyx_L1_error)
|
|
5374
5435
|
__Pyx_GOTREF(__pyx_t_1);
|
|
5375
5436
|
__Pyx_XDECREF_SET(__pyx_v_exc, __pyx_t_1);
|
|
5376
5437
|
__pyx_t_1 = 0;
|
|
5377
5438
|
|
|
5378
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5439
|
+
/* "a_sync/asyncio/create_task.pyx":200
|
|
5379
5440
|
* for task in done:
|
|
5380
5441
|
* exc = _get_exception(task)
|
|
5381
5442
|
* if exc is None: # <<<<<<<<<<<<<<
|
|
5382
5443
|
* continue
|
|
5383
5444
|
* # force exceptions related to this lib to bubble up
|
|
5384
5445
|
*/
|
|
5385
|
-
__Pyx_TraceLine(
|
|
5446
|
+
__Pyx_TraceLine(200,0,__PYX_ERR(0, 200, __pyx_L1_error))
|
|
5386
5447
|
__pyx_t_4 = (__pyx_v_exc == Py_None);
|
|
5387
5448
|
if (__pyx_t_4) {
|
|
5388
5449
|
|
|
5389
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5450
|
+
/* "a_sync/asyncio/create_task.pyx":201
|
|
5390
5451
|
* exc = _get_exception(task)
|
|
5391
5452
|
* if exc is None:
|
|
5392
5453
|
* continue # <<<<<<<<<<<<<<
|
|
5393
5454
|
* # force exceptions related to this lib to bubble up
|
|
5394
5455
|
* if not isinstance(exc, PersistedTaskException):
|
|
5395
5456
|
*/
|
|
5396
|
-
__Pyx_TraceLine(
|
|
5457
|
+
__Pyx_TraceLine(201,0,__PYX_ERR(0, 201, __pyx_L1_error))
|
|
5397
5458
|
goto __pyx_L4_continue;
|
|
5398
5459
|
|
|
5399
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5460
|
+
/* "a_sync/asyncio/create_task.pyx":200
|
|
5400
5461
|
* for task in done:
|
|
5401
5462
|
* exc = _get_exception(task)
|
|
5402
5463
|
* if exc is None: # <<<<<<<<<<<<<<
|
|
@@ -5405,29 +5466,29 @@ static void __pyx_f_6a_sync_7asyncio_11create_task___prune_persisted_tasks(void)
|
|
|
5405
5466
|
*/
|
|
5406
5467
|
}
|
|
5407
5468
|
|
|
5408
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5469
|
+
/* "a_sync/asyncio/create_task.pyx":203
|
|
5409
5470
|
* continue
|
|
5410
5471
|
* # force exceptions related to this lib to bubble up
|
|
5411
5472
|
* if not isinstance(exc, PersistedTaskException): # <<<<<<<<<<<<<<
|
|
5412
5473
|
* __log_exception(exc)
|
|
5413
5474
|
* raise exc
|
|
5414
5475
|
*/
|
|
5415
|
-
__Pyx_TraceLine(
|
|
5476
|
+
__Pyx_TraceLine(203,0,__PYX_ERR(0, 203, __pyx_L1_error))
|
|
5416
5477
|
__pyx_t_1 = __pyx_v_6a_sync_7asyncio_11create_task_PersistedTaskException;
|
|
5417
5478
|
__Pyx_INCREF(__pyx_t_1);
|
|
5418
|
-
__pyx_t_4 = PyObject_IsInstance(__pyx_v_exc, __pyx_t_1); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0,
|
|
5479
|
+
__pyx_t_4 = PyObject_IsInstance(__pyx_v_exc, __pyx_t_1); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 203, __pyx_L1_error)
|
|
5419
5480
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
5420
5481
|
__pyx_t_3 = (!__pyx_t_4);
|
|
5421
5482
|
if (unlikely(__pyx_t_3)) {
|
|
5422
5483
|
|
|
5423
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5484
|
+
/* "a_sync/asyncio/create_task.pyx":204
|
|
5424
5485
|
* # force exceptions related to this lib to bubble up
|
|
5425
5486
|
* if not isinstance(exc, PersistedTaskException):
|
|
5426
5487
|
* __log_exception(exc) # <<<<<<<<<<<<<<
|
|
5427
5488
|
* raise exc
|
|
5428
5489
|
* # we have to manually log the traceback that asyncio would usually log
|
|
5429
5490
|
*/
|
|
5430
|
-
__Pyx_TraceLine(
|
|
5491
|
+
__Pyx_TraceLine(204,0,__PYX_ERR(0, 204, __pyx_L1_error))
|
|
5431
5492
|
__Pyx_INCREF(__pyx_v_6a_sync_7asyncio_11create_task___log_exception);
|
|
5432
5493
|
__pyx_t_6 = __pyx_v_6a_sync_7asyncio_11create_task___log_exception; __pyx_t_7 = NULL;
|
|
5433
5494
|
__pyx_t_8 = 0;
|
|
@@ -5447,24 +5508,24 @@ static void __pyx_f_6a_sync_7asyncio_11create_task___prune_persisted_tasks(void)
|
|
|
5447
5508
|
PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_v_exc};
|
|
5448
5509
|
__pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_6, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8);
|
|
5449
5510
|
__Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
5450
|
-
if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
5511
|
+
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 204, __pyx_L1_error)
|
|
5451
5512
|
__Pyx_GOTREF(__pyx_t_1);
|
|
5452
5513
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
5453
5514
|
}
|
|
5454
5515
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
5455
5516
|
|
|
5456
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5517
|
+
/* "a_sync/asyncio/create_task.pyx":205
|
|
5457
5518
|
* if not isinstance(exc, PersistedTaskException):
|
|
5458
5519
|
* __log_exception(exc)
|
|
5459
5520
|
* raise exc # <<<<<<<<<<<<<<
|
|
5460
5521
|
* # we have to manually log the traceback that asyncio would usually log
|
|
5461
5522
|
* # since we already got the exception from the task and the usual handler will now not run
|
|
5462
5523
|
*/
|
|
5463
|
-
__Pyx_TraceLine(
|
|
5524
|
+
__Pyx_TraceLine(205,0,__PYX_ERR(0, 205, __pyx_L1_error))
|
|
5464
5525
|
__Pyx_Raise(__pyx_v_exc, 0, 0, 0);
|
|
5465
|
-
__PYX_ERR(0,
|
|
5526
|
+
__PYX_ERR(0, 205, __pyx_L1_error)
|
|
5466
5527
|
|
|
5467
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5528
|
+
/* "a_sync/asyncio/create_task.pyx":203
|
|
5468
5529
|
* continue
|
|
5469
5530
|
* # force exceptions related to this lib to bubble up
|
|
5470
5531
|
* if not isinstance(exc, PersistedTaskException): # <<<<<<<<<<<<<<
|
|
@@ -5473,80 +5534,80 @@ static void __pyx_f_6a_sync_7asyncio_11create_task___prune_persisted_tasks(void)
|
|
|
5473
5534
|
*/
|
|
5474
5535
|
}
|
|
5475
5536
|
|
|
5476
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5537
|
+
/* "a_sync/asyncio/create_task.pyx":209
|
|
5477
5538
|
* # since we already got the exception from the task and the usual handler will now not run
|
|
5478
5539
|
* context = {
|
|
5479
5540
|
* "message": f"{task.__class__.__name__} exception was never retrieved", # <<<<<<<<<<<<<<
|
|
5480
5541
|
* "exception": exc,
|
|
5481
5542
|
* "future": task,
|
|
5482
5543
|
*/
|
|
5483
|
-
__Pyx_TraceLine(
|
|
5484
|
-
__pyx_t_1 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
5544
|
+
__Pyx_TraceLine(209,0,__PYX_ERR(0, 209, __pyx_L1_error))
|
|
5545
|
+
__pyx_t_1 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 209, __pyx_L1_error)
|
|
5485
5546
|
__Pyx_GOTREF(__pyx_t_1);
|
|
5486
|
-
__pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_task, __pyx_n_s_class); if (unlikely(!__pyx_t_6)) __PYX_ERR(0,
|
|
5547
|
+
__pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_task, __pyx_n_s_class); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 209, __pyx_L1_error)
|
|
5487
5548
|
__Pyx_GOTREF(__pyx_t_6);
|
|
5488
|
-
__pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_name_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0,
|
|
5549
|
+
__pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_name_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 209, __pyx_L1_error)
|
|
5489
5550
|
__Pyx_GOTREF(__pyx_t_7);
|
|
5490
5551
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
5491
|
-
__pyx_t_6 = __Pyx_PyObject_FormatSimple(__pyx_t_7, __pyx_empty_unicode); if (unlikely(!__pyx_t_6)) __PYX_ERR(0,
|
|
5552
|
+
__pyx_t_6 = __Pyx_PyObject_FormatSimple(__pyx_t_7, __pyx_empty_unicode); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 209, __pyx_L1_error)
|
|
5492
5553
|
__Pyx_GOTREF(__pyx_t_6);
|
|
5493
5554
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
5494
|
-
__pyx_t_7 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_6, __pyx_kp_u_exception_was_never_retrieved); if (unlikely(!__pyx_t_7)) __PYX_ERR(0,
|
|
5555
|
+
__pyx_t_7 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_6, __pyx_kp_u_exception_was_never_retrieved); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 209, __pyx_L1_error)
|
|
5495
5556
|
__Pyx_GOTREF(__pyx_t_7);
|
|
5496
5557
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
5497
|
-
if (PyDict_SetItem(__pyx_t_1, __pyx_n_u_message, __pyx_t_7) < 0) __PYX_ERR(0,
|
|
5558
|
+
if (PyDict_SetItem(__pyx_t_1, __pyx_n_u_message, __pyx_t_7) < 0) __PYX_ERR(0, 209, __pyx_L1_error)
|
|
5498
5559
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
5499
5560
|
|
|
5500
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5561
|
+
/* "a_sync/asyncio/create_task.pyx":210
|
|
5501
5562
|
* context = {
|
|
5502
5563
|
* "message": f"{task.__class__.__name__} exception was never retrieved",
|
|
5503
5564
|
* "exception": exc, # <<<<<<<<<<<<<<
|
|
5504
5565
|
* "future": task,
|
|
5505
5566
|
* }
|
|
5506
5567
|
*/
|
|
5507
|
-
__Pyx_TraceLine(
|
|
5508
|
-
if (PyDict_SetItem(__pyx_t_1, __pyx_n_u_exception, __pyx_v_exc) < 0) __PYX_ERR(0,
|
|
5568
|
+
__Pyx_TraceLine(210,0,__PYX_ERR(0, 210, __pyx_L1_error))
|
|
5569
|
+
if (PyDict_SetItem(__pyx_t_1, __pyx_n_u_exception, __pyx_v_exc) < 0) __PYX_ERR(0, 209, __pyx_L1_error)
|
|
5509
5570
|
|
|
5510
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5571
|
+
/* "a_sync/asyncio/create_task.pyx":211
|
|
5511
5572
|
* "message": f"{task.__class__.__name__} exception was never retrieved",
|
|
5512
5573
|
* "exception": exc,
|
|
5513
5574
|
* "future": task, # <<<<<<<<<<<<<<
|
|
5514
5575
|
* }
|
|
5515
5576
|
* if task._source_traceback:
|
|
5516
5577
|
*/
|
|
5517
|
-
__Pyx_TraceLine(
|
|
5518
|
-
if (PyDict_SetItem(__pyx_t_1, __pyx_n_u_future, __pyx_v_task) < 0) __PYX_ERR(0,
|
|
5578
|
+
__Pyx_TraceLine(211,0,__PYX_ERR(0, 211, __pyx_L1_error))
|
|
5579
|
+
if (PyDict_SetItem(__pyx_t_1, __pyx_n_u_future, __pyx_v_task) < 0) __PYX_ERR(0, 209, __pyx_L1_error)
|
|
5519
5580
|
__Pyx_XDECREF_SET(__pyx_v_context, ((PyObject*)__pyx_t_1));
|
|
5520
5581
|
__pyx_t_1 = 0;
|
|
5521
5582
|
|
|
5522
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5583
|
+
/* "a_sync/asyncio/create_task.pyx":213
|
|
5523
5584
|
* "future": task,
|
|
5524
5585
|
* }
|
|
5525
5586
|
* if task._source_traceback: # <<<<<<<<<<<<<<
|
|
5526
5587
|
* context["source_traceback"] = task._source_traceback
|
|
5527
5588
|
* task._loop.call_exception_handler(context)
|
|
5528
5589
|
*/
|
|
5529
|
-
__Pyx_TraceLine(
|
|
5530
|
-
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_task, __pyx_n_s_source_traceback); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
5590
|
+
__Pyx_TraceLine(213,0,__PYX_ERR(0, 213, __pyx_L1_error))
|
|
5591
|
+
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_task, __pyx_n_s_source_traceback); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 213, __pyx_L1_error)
|
|
5531
5592
|
__Pyx_GOTREF(__pyx_t_1);
|
|
5532
|
-
__pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0,
|
|
5593
|
+
__pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 213, __pyx_L1_error)
|
|
5533
5594
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
5534
5595
|
if (__pyx_t_3) {
|
|
5535
5596
|
|
|
5536
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5597
|
+
/* "a_sync/asyncio/create_task.pyx":214
|
|
5537
5598
|
* }
|
|
5538
5599
|
* if task._source_traceback:
|
|
5539
5600
|
* context["source_traceback"] = task._source_traceback # <<<<<<<<<<<<<<
|
|
5540
5601
|
* task._loop.call_exception_handler(context)
|
|
5541
5602
|
*
|
|
5542
5603
|
*/
|
|
5543
|
-
__Pyx_TraceLine(
|
|
5544
|
-
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_task, __pyx_n_s_source_traceback); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
5604
|
+
__Pyx_TraceLine(214,0,__PYX_ERR(0, 214, __pyx_L1_error))
|
|
5605
|
+
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_task, __pyx_n_s_source_traceback); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 214, __pyx_L1_error)
|
|
5545
5606
|
__Pyx_GOTREF(__pyx_t_1);
|
|
5546
|
-
if (unlikely((PyDict_SetItem(__pyx_v_context, __pyx_n_u_source_traceback_2, __pyx_t_1) < 0))) __PYX_ERR(0,
|
|
5607
|
+
if (unlikely((PyDict_SetItem(__pyx_v_context, __pyx_n_u_source_traceback_2, __pyx_t_1) < 0))) __PYX_ERR(0, 214, __pyx_L1_error)
|
|
5547
5608
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
5548
5609
|
|
|
5549
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5610
|
+
/* "a_sync/asyncio/create_task.pyx":213
|
|
5550
5611
|
* "future": task,
|
|
5551
5612
|
* }
|
|
5552
5613
|
* if task._source_traceback: # <<<<<<<<<<<<<<
|
|
@@ -5555,17 +5616,17 @@ static void __pyx_f_6a_sync_7asyncio_11create_task___prune_persisted_tasks(void)
|
|
|
5555
5616
|
*/
|
|
5556
5617
|
}
|
|
5557
5618
|
|
|
5558
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5619
|
+
/* "a_sync/asyncio/create_task.pyx":215
|
|
5559
5620
|
* if task._source_traceback:
|
|
5560
5621
|
* context["source_traceback"] = task._source_traceback
|
|
5561
5622
|
* task._loop.call_exception_handler(context) # <<<<<<<<<<<<<<
|
|
5562
5623
|
*
|
|
5563
5624
|
*
|
|
5564
5625
|
*/
|
|
5565
|
-
__Pyx_TraceLine(
|
|
5566
|
-
__pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_task, __pyx_n_s_loop_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0,
|
|
5626
|
+
__Pyx_TraceLine(215,0,__PYX_ERR(0, 215, __pyx_L1_error))
|
|
5627
|
+
__pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_task, __pyx_n_s_loop_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 215, __pyx_L1_error)
|
|
5567
5628
|
__Pyx_GOTREF(__pyx_t_7);
|
|
5568
|
-
__pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_call_exception_handler); if (unlikely(!__pyx_t_6)) __PYX_ERR(0,
|
|
5629
|
+
__pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_call_exception_handler); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 215, __pyx_L1_error)
|
|
5569
5630
|
__Pyx_GOTREF(__pyx_t_6);
|
|
5570
5631
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
5571
5632
|
__pyx_t_7 = NULL;
|
|
@@ -5586,25 +5647,25 @@ static void __pyx_f_6a_sync_7asyncio_11create_task___prune_persisted_tasks(void)
|
|
|
5586
5647
|
PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_v_context};
|
|
5587
5648
|
__pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_6, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8);
|
|
5588
5649
|
__Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
5589
|
-
if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
5650
|
+
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 215, __pyx_L1_error)
|
|
5590
5651
|
__Pyx_GOTREF(__pyx_t_1);
|
|
5591
5652
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
5592
5653
|
}
|
|
5593
5654
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
5594
5655
|
|
|
5595
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5656
|
+
/* "a_sync/asyncio/create_task.pyx":198
|
|
5596
5657
|
* return
|
|
5597
5658
|
* _persisted_tasks.difference_update(done)
|
|
5598
5659
|
* for task in done: # <<<<<<<<<<<<<<
|
|
5599
5660
|
* exc = _get_exception(task)
|
|
5600
5661
|
* if exc is None:
|
|
5601
5662
|
*/
|
|
5602
|
-
__Pyx_TraceLine(
|
|
5663
|
+
__Pyx_TraceLine(198,0,__PYX_ERR(0, 198, __pyx_L1_error))
|
|
5603
5664
|
__pyx_L4_continue:;
|
|
5604
5665
|
}
|
|
5605
5666
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
5606
5667
|
|
|
5607
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5668
|
+
/* "a_sync/asyncio/create_task.pyx":182
|
|
5608
5669
|
*
|
|
5609
5670
|
*
|
|
5610
5671
|
* cdef void __prune_persisted_tasks(): # <<<<<<<<<<<<<<
|
|
@@ -5629,11 +5690,11 @@ static void __pyx_f_6a_sync_7asyncio_11create_task___prune_persisted_tasks(void)
|
|
|
5629
5690
|
__Pyx_RefNannyFinishContext();
|
|
5630
5691
|
}
|
|
5631
5692
|
|
|
5632
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5693
|
+
/* "a_sync/asyncio/create_task.pyx":218
|
|
5633
5694
|
*
|
|
5634
5695
|
*
|
|
5635
5696
|
* cdef inline bint _is_done(fut: Future): # <<<<<<<<<<<<<<
|
|
5636
|
-
* return
|
|
5697
|
+
* return PyUnicode_CompareWithASCIIString(fut._state, b"PENDING") != 0
|
|
5637
5698
|
*
|
|
5638
5699
|
*/
|
|
5639
5700
|
|
|
@@ -5642,33 +5703,31 @@ static CYTHON_INLINE int __pyx_f_6a_sync_7asyncio_11create_task__is_done(PyObjec
|
|
|
5642
5703
|
__Pyx_TraceDeclarations
|
|
5643
5704
|
__Pyx_RefNannyDeclarations
|
|
5644
5705
|
PyObject *__pyx_t_1 = NULL;
|
|
5645
|
-
int __pyx_t_2;
|
|
5646
5706
|
int __pyx_lineno = 0;
|
|
5647
5707
|
const char *__pyx_filename = NULL;
|
|
5648
5708
|
int __pyx_clineno = 0;
|
|
5649
5709
|
__Pyx_RefNannySetupContext("_is_done", 1);
|
|
5650
|
-
__Pyx_TraceCall("_is_done", __pyx_f[0],
|
|
5710
|
+
__Pyx_TraceCall("_is_done", __pyx_f[0], 218, 0, __PYX_ERR(0, 218, __pyx_L1_error));
|
|
5651
5711
|
|
|
5652
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5712
|
+
/* "a_sync/asyncio/create_task.pyx":219
|
|
5653
5713
|
*
|
|
5654
5714
|
* cdef inline bint _is_done(fut: Future):
|
|
5655
|
-
* return
|
|
5715
|
+
* return PyUnicode_CompareWithASCIIString(fut._state, b"PENDING") != 0 # <<<<<<<<<<<<<<
|
|
5656
5716
|
*
|
|
5657
5717
|
*
|
|
5658
5718
|
*/
|
|
5659
|
-
__Pyx_TraceLine(
|
|
5660
|
-
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_fut, __pyx_n_s_state); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
5719
|
+
__Pyx_TraceLine(219,0,__PYX_ERR(0, 219, __pyx_L1_error))
|
|
5720
|
+
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_fut, __pyx_n_s_state); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 219, __pyx_L1_error)
|
|
5661
5721
|
__Pyx_GOTREF(__pyx_t_1);
|
|
5662
|
-
|
|
5722
|
+
__pyx_r = (PyUnicode_CompareWithASCIIString(__pyx_t_1, ((char const *)"PENDING")) != 0);
|
|
5663
5723
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
5664
|
-
__pyx_r = __pyx_t_2;
|
|
5665
5724
|
goto __pyx_L0;
|
|
5666
5725
|
|
|
5667
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5726
|
+
/* "a_sync/asyncio/create_task.pyx":218
|
|
5668
5727
|
*
|
|
5669
5728
|
*
|
|
5670
5729
|
* cdef inline bint _is_done(fut: Future): # <<<<<<<<<<<<<<
|
|
5671
|
-
* return
|
|
5730
|
+
* return PyUnicode_CompareWithASCIIString(fut._state, b"PENDING") != 0
|
|
5672
5731
|
*
|
|
5673
5732
|
*/
|
|
5674
5733
|
|
|
@@ -5683,7 +5742,7 @@ static CYTHON_INLINE int __pyx_f_6a_sync_7asyncio_11create_task__is_done(PyObjec
|
|
|
5683
5742
|
return __pyx_r;
|
|
5684
5743
|
}
|
|
5685
5744
|
|
|
5686
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5745
|
+
/* "a_sync/asyncio/create_task.pyx":222
|
|
5687
5746
|
*
|
|
5688
5747
|
*
|
|
5689
5748
|
* cdef object _get_exception(fut: Future): # <<<<<<<<<<<<<<
|
|
@@ -5705,87 +5764,87 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task__get_exception(PyObject
|
|
|
5705
5764
|
const char *__pyx_filename = NULL;
|
|
5706
5765
|
int __pyx_clineno = 0;
|
|
5707
5766
|
__Pyx_RefNannySetupContext("_get_exception", 1);
|
|
5708
|
-
__Pyx_TraceCall("_get_exception", __pyx_f[0],
|
|
5767
|
+
__Pyx_TraceCall("_get_exception", __pyx_f[0], 222, 0, __PYX_ERR(0, 222, __pyx_L1_error));
|
|
5709
5768
|
|
|
5710
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5769
|
+
/* "a_sync/asyncio/create_task.pyx":230
|
|
5711
5770
|
* InvalidStateError.
|
|
5712
5771
|
* """
|
|
5713
5772
|
* cdef str state = fut._state # <<<<<<<<<<<<<<
|
|
5714
|
-
* if state
|
|
5773
|
+
* if PyUnicode_CompareWithASCIIString(state, b"FINISHED") == 0:
|
|
5715
5774
|
* fut._Future__log_traceback = False
|
|
5716
5775
|
*/
|
|
5717
|
-
__Pyx_TraceLine(
|
|
5718
|
-
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_fut, __pyx_n_s_state); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
5776
|
+
__Pyx_TraceLine(230,0,__PYX_ERR(0, 230, __pyx_L1_error))
|
|
5777
|
+
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_fut, __pyx_n_s_state); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 230, __pyx_L1_error)
|
|
5719
5778
|
__Pyx_GOTREF(__pyx_t_1);
|
|
5720
|
-
if (!(likely(PyUnicode_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("unicode", __pyx_t_1))) __PYX_ERR(0,
|
|
5779
|
+
if (!(likely(PyUnicode_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("unicode", __pyx_t_1))) __PYX_ERR(0, 230, __pyx_L1_error)
|
|
5721
5780
|
__pyx_v_state = ((PyObject*)__pyx_t_1);
|
|
5722
5781
|
__pyx_t_1 = 0;
|
|
5723
5782
|
|
|
5724
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5783
|
+
/* "a_sync/asyncio/create_task.pyx":231
|
|
5725
5784
|
* """
|
|
5726
5785
|
* cdef str state = fut._state
|
|
5727
|
-
* if state
|
|
5786
|
+
* if PyUnicode_CompareWithASCIIString(state, b"FINISHED") == 0: # <<<<<<<<<<<<<<
|
|
5728
5787
|
* fut._Future__log_traceback = False
|
|
5729
5788
|
* return fut._exception
|
|
5730
5789
|
*/
|
|
5731
|
-
__Pyx_TraceLine(
|
|
5732
|
-
__pyx_t_2 = (
|
|
5790
|
+
__Pyx_TraceLine(231,0,__PYX_ERR(0, 231, __pyx_L1_error))
|
|
5791
|
+
__pyx_t_2 = (PyUnicode_CompareWithASCIIString(__pyx_v_state, ((char const *)"FINISHED")) == 0);
|
|
5733
5792
|
if (__pyx_t_2) {
|
|
5734
5793
|
|
|
5735
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5794
|
+
/* "a_sync/asyncio/create_task.pyx":232
|
|
5736
5795
|
* cdef str state = fut._state
|
|
5737
|
-
* if state
|
|
5796
|
+
* if PyUnicode_CompareWithASCIIString(state, b"FINISHED") == 0:
|
|
5738
5797
|
* fut._Future__log_traceback = False # <<<<<<<<<<<<<<
|
|
5739
5798
|
* return fut._exception
|
|
5740
|
-
* if state
|
|
5799
|
+
* if PyUnicode_CompareWithASCIIString(state, b"CANCELLED") == 0:
|
|
5741
5800
|
*/
|
|
5742
|
-
__Pyx_TraceLine(
|
|
5743
|
-
if (__Pyx_PyObject_SetAttrStr(__pyx_v_fut, __pyx_n_s_Future__log_traceback, Py_False) < 0) __PYX_ERR(0,
|
|
5801
|
+
__Pyx_TraceLine(232,0,__PYX_ERR(0, 232, __pyx_L1_error))
|
|
5802
|
+
if (__Pyx_PyObject_SetAttrStr(__pyx_v_fut, __pyx_n_s_Future__log_traceback, Py_False) < 0) __PYX_ERR(0, 232, __pyx_L1_error)
|
|
5744
5803
|
|
|
5745
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5746
|
-
* if state
|
|
5804
|
+
/* "a_sync/asyncio/create_task.pyx":233
|
|
5805
|
+
* if PyUnicode_CompareWithASCIIString(state, b"FINISHED") == 0:
|
|
5747
5806
|
* fut._Future__log_traceback = False
|
|
5748
5807
|
* return fut._exception # <<<<<<<<<<<<<<
|
|
5749
|
-
* if state
|
|
5808
|
+
* if PyUnicode_CompareWithASCIIString(state, b"CANCELLED") == 0:
|
|
5750
5809
|
* raise fut._make_cancelled_error()
|
|
5751
5810
|
*/
|
|
5752
|
-
__Pyx_TraceLine(
|
|
5811
|
+
__Pyx_TraceLine(233,0,__PYX_ERR(0, 233, __pyx_L1_error))
|
|
5753
5812
|
__Pyx_XDECREF(__pyx_r);
|
|
5754
|
-
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_fut, __pyx_n_s_exception_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
5813
|
+
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_fut, __pyx_n_s_exception_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 233, __pyx_L1_error)
|
|
5755
5814
|
__Pyx_GOTREF(__pyx_t_1);
|
|
5756
5815
|
__pyx_r = __pyx_t_1;
|
|
5757
5816
|
__pyx_t_1 = 0;
|
|
5758
5817
|
goto __pyx_L0;
|
|
5759
5818
|
|
|
5760
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5819
|
+
/* "a_sync/asyncio/create_task.pyx":231
|
|
5761
5820
|
* """
|
|
5762
5821
|
* cdef str state = fut._state
|
|
5763
|
-
* if state
|
|
5822
|
+
* if PyUnicode_CompareWithASCIIString(state, b"FINISHED") == 0: # <<<<<<<<<<<<<<
|
|
5764
5823
|
* fut._Future__log_traceback = False
|
|
5765
5824
|
* return fut._exception
|
|
5766
5825
|
*/
|
|
5767
5826
|
}
|
|
5768
5827
|
|
|
5769
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5828
|
+
/* "a_sync/asyncio/create_task.pyx":234
|
|
5770
5829
|
* fut._Future__log_traceback = False
|
|
5771
5830
|
* return fut._exception
|
|
5772
|
-
* if state
|
|
5831
|
+
* if PyUnicode_CompareWithASCIIString(state, b"CANCELLED") == 0: # <<<<<<<<<<<<<<
|
|
5773
5832
|
* raise fut._make_cancelled_error()
|
|
5774
5833
|
* raise InvalidStateError('Exception is not set.')
|
|
5775
5834
|
*/
|
|
5776
|
-
__Pyx_TraceLine(
|
|
5777
|
-
__pyx_t_2 = (
|
|
5835
|
+
__Pyx_TraceLine(234,0,__PYX_ERR(0, 234, __pyx_L1_error))
|
|
5836
|
+
__pyx_t_2 = (PyUnicode_CompareWithASCIIString(__pyx_v_state, ((char const *)"CANCELLED")) == 0);
|
|
5778
5837
|
if (unlikely(__pyx_t_2)) {
|
|
5779
5838
|
|
|
5780
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5839
|
+
/* "a_sync/asyncio/create_task.pyx":235
|
|
5781
5840
|
* return fut._exception
|
|
5782
|
-
* if state
|
|
5841
|
+
* if PyUnicode_CompareWithASCIIString(state, b"CANCELLED") == 0:
|
|
5783
5842
|
* raise fut._make_cancelled_error() # <<<<<<<<<<<<<<
|
|
5784
5843
|
* raise InvalidStateError('Exception is not set.')
|
|
5785
5844
|
*
|
|
5786
5845
|
*/
|
|
5787
|
-
__Pyx_TraceLine(
|
|
5788
|
-
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_fut, __pyx_n_s_make_cancelled_error); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
5846
|
+
__Pyx_TraceLine(235,0,__PYX_ERR(0, 235, __pyx_L1_error))
|
|
5847
|
+
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_fut, __pyx_n_s_make_cancelled_error); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 235, __pyx_L1_error)
|
|
5789
5848
|
__Pyx_GOTREF(__pyx_t_3);
|
|
5790
5849
|
__pyx_t_4 = NULL;
|
|
5791
5850
|
__pyx_t_5 = 0;
|
|
@@ -5805,31 +5864,31 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task__get_exception(PyObject
|
|
|
5805
5864
|
PyObject *__pyx_callargs[2] = {__pyx_t_4, NULL};
|
|
5806
5865
|
__pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 0+__pyx_t_5);
|
|
5807
5866
|
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
5808
|
-
if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
5867
|
+
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 235, __pyx_L1_error)
|
|
5809
5868
|
__Pyx_GOTREF(__pyx_t_1);
|
|
5810
5869
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
5811
5870
|
}
|
|
5812
5871
|
__Pyx_Raise(__pyx_t_1, 0, 0, 0);
|
|
5813
5872
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
5814
|
-
__PYX_ERR(0,
|
|
5873
|
+
__PYX_ERR(0, 235, __pyx_L1_error)
|
|
5815
5874
|
|
|
5816
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5875
|
+
/* "a_sync/asyncio/create_task.pyx":234
|
|
5817
5876
|
* fut._Future__log_traceback = False
|
|
5818
5877
|
* return fut._exception
|
|
5819
|
-
* if state
|
|
5878
|
+
* if PyUnicode_CompareWithASCIIString(state, b"CANCELLED") == 0: # <<<<<<<<<<<<<<
|
|
5820
5879
|
* raise fut._make_cancelled_error()
|
|
5821
5880
|
* raise InvalidStateError('Exception is not set.')
|
|
5822
5881
|
*/
|
|
5823
5882
|
}
|
|
5824
5883
|
|
|
5825
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5826
|
-
* if state
|
|
5884
|
+
/* "a_sync/asyncio/create_task.pyx":236
|
|
5885
|
+
* if PyUnicode_CompareWithASCIIString(state, b"CANCELLED") == 0:
|
|
5827
5886
|
* raise fut._make_cancelled_error()
|
|
5828
5887
|
* raise InvalidStateError('Exception is not set.') # <<<<<<<<<<<<<<
|
|
5829
5888
|
*
|
|
5830
5889
|
*
|
|
5831
5890
|
*/
|
|
5832
|
-
__Pyx_TraceLine(
|
|
5891
|
+
__Pyx_TraceLine(236,0,__PYX_ERR(0, 236, __pyx_L1_error))
|
|
5833
5892
|
__Pyx_INCREF(__pyx_v_6a_sync_7asyncio_11create_task_InvalidStateError);
|
|
5834
5893
|
__pyx_t_3 = __pyx_v_6a_sync_7asyncio_11create_task_InvalidStateError; __pyx_t_4 = NULL;
|
|
5835
5894
|
__pyx_t_5 = 0;
|
|
@@ -5849,15 +5908,15 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task__get_exception(PyObject
|
|
|
5849
5908
|
PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_kp_u_Exception_is_not_set};
|
|
5850
5909
|
__pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5);
|
|
5851
5910
|
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
5852
|
-
if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
5911
|
+
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 236, __pyx_L1_error)
|
|
5853
5912
|
__Pyx_GOTREF(__pyx_t_1);
|
|
5854
5913
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
5855
5914
|
}
|
|
5856
5915
|
__Pyx_Raise(__pyx_t_1, 0, 0, 0);
|
|
5857
5916
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
5858
|
-
__PYX_ERR(0,
|
|
5917
|
+
__PYX_ERR(0, 236, __pyx_L1_error)
|
|
5859
5918
|
|
|
5860
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5919
|
+
/* "a_sync/asyncio/create_task.pyx":222
|
|
5861
5920
|
*
|
|
5862
5921
|
*
|
|
5863
5922
|
* cdef object _get_exception(fut: Future): # <<<<<<<<<<<<<<
|
|
@@ -5880,7 +5939,7 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task__get_exception(PyObject
|
|
|
5880
5939
|
return __pyx_r;
|
|
5881
5940
|
}
|
|
5882
5941
|
|
|
5883
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5942
|
+
/* "a_sync/asyncio/create_task.pyx":239
|
|
5884
5943
|
*
|
|
5885
5944
|
*
|
|
5886
5945
|
* cdef inline bint _exc_exists(tup: Tuple[Future, Optional[Exception]]): # <<<<<<<<<<<<<<
|
|
@@ -5898,24 +5957,24 @@ static CYTHON_INLINE int __pyx_f_6a_sync_7asyncio_11create_task__exc_exists(PyOb
|
|
|
5898
5957
|
const char *__pyx_filename = NULL;
|
|
5899
5958
|
int __pyx_clineno = 0;
|
|
5900
5959
|
__Pyx_RefNannySetupContext("_exc_exists", 1);
|
|
5901
|
-
__Pyx_TraceCall("_exc_exists", __pyx_f[0],
|
|
5960
|
+
__Pyx_TraceCall("_exc_exists", __pyx_f[0], 239, 0, __PYX_ERR(0, 239, __pyx_L1_error));
|
|
5902
5961
|
|
|
5903
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5962
|
+
/* "a_sync/asyncio/create_task.pyx":240
|
|
5904
5963
|
*
|
|
5905
5964
|
* cdef inline bint _exc_exists(tup: Tuple[Future, Optional[Exception]]):
|
|
5906
5965
|
* return tup[1] is not None # <<<<<<<<<<<<<<
|
|
5907
5966
|
*
|
|
5908
5967
|
*
|
|
5909
5968
|
*/
|
|
5910
|
-
__Pyx_TraceLine(
|
|
5911
|
-
__pyx_t_1 = __Pyx_GetItemInt(__pyx_v_tup, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
5969
|
+
__Pyx_TraceLine(240,0,__PYX_ERR(0, 240, __pyx_L1_error))
|
|
5970
|
+
__pyx_t_1 = __Pyx_GetItemInt(__pyx_v_tup, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 240, __pyx_L1_error)
|
|
5912
5971
|
__Pyx_GOTREF(__pyx_t_1);
|
|
5913
5972
|
__pyx_t_2 = (__pyx_t_1 != Py_None);
|
|
5914
5973
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
5915
5974
|
__pyx_r = __pyx_t_2;
|
|
5916
5975
|
goto __pyx_L0;
|
|
5917
5976
|
|
|
5918
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5977
|
+
/* "a_sync/asyncio/create_task.pyx":239
|
|
5919
5978
|
*
|
|
5920
5979
|
*
|
|
5921
5980
|
* cdef inline bint _exc_exists(tup: Tuple[Future, Optional[Exception]]): # <<<<<<<<<<<<<<
|
|
@@ -5935,7 +5994,7 @@ static CYTHON_INLINE int __pyx_f_6a_sync_7asyncio_11create_task__exc_exists(PyOb
|
|
|
5935
5994
|
}
|
|
5936
5995
|
static PyObject *__pyx_gb_6a_sync_7asyncio_11create_task_7generator1(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */
|
|
5937
5996
|
|
|
5938
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5997
|
+
/* "a_sync/asyncio/create_task.pyx":245
|
|
5939
5998
|
* cdef object __persisted_task_exc_wrap
|
|
5940
5999
|
*
|
|
5941
6000
|
* async def __persisted_task_exc_wrap(task: "Task[T]") -> T: # <<<<<<<<<<<<<<
|
|
@@ -5997,12 +6056,12 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
|
|
|
5997
6056
|
(void)__Pyx_Arg_NewRef_FASTCALL(values[0]);
|
|
5998
6057
|
kw_args--;
|
|
5999
6058
|
}
|
|
6000
|
-
else if (unlikely(PyErr_Occurred())) __PYX_ERR(0,
|
|
6059
|
+
else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 245, __pyx_L3_error)
|
|
6001
6060
|
else goto __pyx_L5_argtuple_error;
|
|
6002
6061
|
}
|
|
6003
6062
|
if (unlikely(kw_args > 0)) {
|
|
6004
6063
|
const Py_ssize_t kwd_pos_args = __pyx_nargs;
|
|
6005
|
-
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__persisted_task_exc_wrap") < 0)) __PYX_ERR(0,
|
|
6064
|
+
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__persisted_task_exc_wrap") < 0)) __PYX_ERR(0, 245, __pyx_L3_error)
|
|
6006
6065
|
}
|
|
6007
6066
|
} else if (unlikely(__pyx_nargs != 1)) {
|
|
6008
6067
|
goto __pyx_L5_argtuple_error;
|
|
@@ -6013,7 +6072,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
|
|
|
6013
6072
|
}
|
|
6014
6073
|
goto __pyx_L6_skip;
|
|
6015
6074
|
__pyx_L5_argtuple_error:;
|
|
6016
|
-
__Pyx_RaiseArgtupleInvalid("__persisted_task_exc_wrap", 1, 1, 1, __pyx_nargs); __PYX_ERR(0,
|
|
6075
|
+
__Pyx_RaiseArgtupleInvalid("__persisted_task_exc_wrap", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 245, __pyx_L3_error)
|
|
6017
6076
|
__pyx_L6_skip:;
|
|
6018
6077
|
goto __pyx_L4_argument_unpacking_done;
|
|
6019
6078
|
__pyx_L3_error:;
|
|
@@ -6052,7 +6111,7 @@ static PyObject *__pyx_pf_6a_sync_7asyncio_11create_task_5__persisted_task_exc_w
|
|
|
6052
6111
|
if (unlikely(!__pyx_cur_scope)) {
|
|
6053
6112
|
__pyx_cur_scope = ((struct __pyx_obj_6a_sync_7asyncio_11create_task___pyx_scope_struct_1___persisted_task_exc_wrap *)Py_None);
|
|
6054
6113
|
__Pyx_INCREF(Py_None);
|
|
6055
|
-
__PYX_ERR(0,
|
|
6114
|
+
__PYX_ERR(0, 245, __pyx_L1_error)
|
|
6056
6115
|
} else {
|
|
6057
6116
|
__Pyx_GOTREF((PyObject *)__pyx_cur_scope);
|
|
6058
6117
|
}
|
|
@@ -6060,7 +6119,7 @@ static PyObject *__pyx_pf_6a_sync_7asyncio_11create_task_5__persisted_task_exc_w
|
|
|
6060
6119
|
__Pyx_INCREF(__pyx_cur_scope->__pyx_v_task);
|
|
6061
6120
|
__Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_task);
|
|
6062
6121
|
{
|
|
6063
|
-
__pyx_CoroutineObject *gen = __Pyx_Coroutine_New((__pyx_coroutine_body_t) __pyx_gb_6a_sync_7asyncio_11create_task_7generator1, __pyx_codeobj__6, (PyObject *) __pyx_cur_scope, __pyx_n_s_persisted_task_exc_wrap, __pyx_n_s_persisted_task_exc_wrap, __pyx_n_s_a_sync_asyncio_create_task); if (unlikely(!gen)) __PYX_ERR(0,
|
|
6122
|
+
__pyx_CoroutineObject *gen = __Pyx_Coroutine_New((__pyx_coroutine_body_t) __pyx_gb_6a_sync_7asyncio_11create_task_7generator1, __pyx_codeobj__6, (PyObject *) __pyx_cur_scope, __pyx_n_s_persisted_task_exc_wrap, __pyx_n_s_persisted_task_exc_wrap, __pyx_n_s_a_sync_asyncio_create_task); if (unlikely(!gen)) __PYX_ERR(0, 245, __pyx_L1_error)
|
|
6064
6123
|
__Pyx_DECREF(__pyx_cur_scope);
|
|
6065
6124
|
__Pyx_RefNannyFinishContext();
|
|
6066
6125
|
return (PyObject *) gen;
|
|
@@ -6106,7 +6165,7 @@ static PyObject *__pyx_gb_6a_sync_7asyncio_11create_task_7generator1(__pyx_Corou
|
|
|
6106
6165
|
__Pyx_RefNannyDeclarations
|
|
6107
6166
|
__Pyx_RefNannySetupContext("__persisted_task_exc_wrap", 0);
|
|
6108
6167
|
__Pyx_TraceFrameInit(__pyx_codeobj__6)
|
|
6109
|
-
__Pyx_TraceCall("__persisted_task_exc_wrap", __pyx_f[0],
|
|
6168
|
+
__Pyx_TraceCall("__persisted_task_exc_wrap", __pyx_f[0], 245, 0, __PYX_ERR(0, 245, __pyx_L1_error));
|
|
6110
6169
|
switch (__pyx_generator->resume_label) {
|
|
6111
6170
|
case 0: goto __pyx_L3_first_run;
|
|
6112
6171
|
case 1: goto __pyx_L10_resume_from_await;
|
|
@@ -6116,16 +6175,16 @@ static PyObject *__pyx_gb_6a_sync_7asyncio_11create_task_7generator1(__pyx_Corou
|
|
|
6116
6175
|
return NULL;
|
|
6117
6176
|
}
|
|
6118
6177
|
__pyx_L3_first_run:;
|
|
6119
|
-
if (unlikely(!__pyx_sent_value)) __PYX_ERR(0,
|
|
6178
|
+
if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 245, __pyx_L1_error)
|
|
6120
6179
|
|
|
6121
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
6180
|
+
/* "a_sync/asyncio/create_task.pyx":258
|
|
6122
6181
|
* - :class:`PersistedTaskException`
|
|
6123
6182
|
* """
|
|
6124
6183
|
* try: # <<<<<<<<<<<<<<
|
|
6125
6184
|
* return await task
|
|
6126
6185
|
* except Exception as e:
|
|
6127
6186
|
*/
|
|
6128
|
-
__Pyx_TraceLine(
|
|
6187
|
+
__Pyx_TraceLine(258,0,__PYX_ERR(0, 258, __pyx_L1_error))
|
|
6129
6188
|
{
|
|
6130
6189
|
__Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
|
|
6131
6190
|
__Pyx_XGOTREF(__pyx_t_1);
|
|
@@ -6133,14 +6192,14 @@ static PyObject *__pyx_gb_6a_sync_7asyncio_11create_task_7generator1(__pyx_Corou
|
|
|
6133
6192
|
__Pyx_XGOTREF(__pyx_t_3);
|
|
6134
6193
|
/*try:*/ {
|
|
6135
6194
|
|
|
6136
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
6195
|
+
/* "a_sync/asyncio/create_task.pyx":259
|
|
6137
6196
|
* """
|
|
6138
6197
|
* try:
|
|
6139
6198
|
* return await task # <<<<<<<<<<<<<<
|
|
6140
6199
|
* except Exception as e:
|
|
6141
6200
|
* raise PersistedTaskException(e, task) from e
|
|
6142
6201
|
*/
|
|
6143
|
-
__Pyx_TraceLine(
|
|
6202
|
+
__Pyx_TraceLine(259,0,__PYX_ERR(0, 259, __pyx_L4_error))
|
|
6144
6203
|
__Pyx_XDECREF(__pyx_r);
|
|
6145
6204
|
__pyx_r = __Pyx_Coroutine_Yield_From(__pyx_generator, __pyx_cur_scope->__pyx_v_task);
|
|
6146
6205
|
__Pyx_XGOTREF(__pyx_r);
|
|
@@ -6168,18 +6227,18 @@ static PyObject *__pyx_gb_6a_sync_7asyncio_11create_task_7generator1(__pyx_Corou
|
|
|
6168
6227
|
__pyx_t_3 = __pyx_cur_scope->__pyx_t_2;
|
|
6169
6228
|
__pyx_cur_scope->__pyx_t_2 = 0;
|
|
6170
6229
|
__Pyx_XGOTREF(__pyx_t_3);
|
|
6171
|
-
if (unlikely(!__pyx_sent_value)) __PYX_ERR(0,
|
|
6230
|
+
if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 259, __pyx_L4_error)
|
|
6172
6231
|
__pyx_t_4 = __pyx_sent_value; __Pyx_INCREF(__pyx_t_4);
|
|
6173
6232
|
} else {
|
|
6174
6233
|
__pyx_t_4 = NULL;
|
|
6175
|
-
if (__Pyx_PyGen_FetchStopIterationValue(&__pyx_t_4) < 0) __PYX_ERR(0,
|
|
6234
|
+
if (__Pyx_PyGen_FetchStopIterationValue(&__pyx_t_4) < 0) __PYX_ERR(0, 259, __pyx_L4_error)
|
|
6176
6235
|
__Pyx_GOTREF(__pyx_t_4);
|
|
6177
6236
|
}
|
|
6178
6237
|
__pyx_r = NULL; __Pyx_ReturnWithStopIteration(__pyx_t_4);
|
|
6179
6238
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
6180
6239
|
goto __pyx_L8_try_return;
|
|
6181
6240
|
|
|
6182
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
6241
|
+
/* "a_sync/asyncio/create_task.pyx":258
|
|
6183
6242
|
* - :class:`PersistedTaskException`
|
|
6184
6243
|
* """
|
|
6185
6244
|
* try: # <<<<<<<<<<<<<<
|
|
@@ -6190,18 +6249,18 @@ static PyObject *__pyx_gb_6a_sync_7asyncio_11create_task_7generator1(__pyx_Corou
|
|
|
6190
6249
|
__pyx_L4_error:;
|
|
6191
6250
|
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
6192
6251
|
|
|
6193
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
6252
|
+
/* "a_sync/asyncio/create_task.pyx":260
|
|
6194
6253
|
* try:
|
|
6195
6254
|
* return await task
|
|
6196
6255
|
* except Exception as e: # <<<<<<<<<<<<<<
|
|
6197
6256
|
* raise PersistedTaskException(e, task) from e
|
|
6198
6257
|
*
|
|
6199
6258
|
*/
|
|
6200
|
-
__Pyx_TraceLine(
|
|
6259
|
+
__Pyx_TraceLine(260,0,__PYX_ERR(0, 260, __pyx_L6_except_error))
|
|
6201
6260
|
__pyx_t_5 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
|
|
6202
6261
|
if (__pyx_t_5) {
|
|
6203
6262
|
__Pyx_AddTraceback("a_sync.asyncio.create_task.__persisted_task_exc_wrap", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
6204
|
-
if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(0,
|
|
6263
|
+
if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(0, 260, __pyx_L6_except_error)
|
|
6205
6264
|
__Pyx_XGOTREF(__pyx_t_4);
|
|
6206
6265
|
__Pyx_XGOTREF(__pyx_t_6);
|
|
6207
6266
|
__Pyx_XGOTREF(__pyx_t_7);
|
|
@@ -6210,14 +6269,14 @@ static PyObject *__pyx_gb_6a_sync_7asyncio_11create_task_7generator1(__pyx_Corou
|
|
|
6210
6269
|
__pyx_cur_scope->__pyx_v_e = __pyx_t_6;
|
|
6211
6270
|
/*try:*/ {
|
|
6212
6271
|
|
|
6213
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
6272
|
+
/* "a_sync/asyncio/create_task.pyx":261
|
|
6214
6273
|
* return await task
|
|
6215
6274
|
* except Exception as e:
|
|
6216
6275
|
* raise PersistedTaskException(e, task) from e # <<<<<<<<<<<<<<
|
|
6217
6276
|
*
|
|
6218
6277
|
*
|
|
6219
6278
|
*/
|
|
6220
|
-
__Pyx_TraceLine(
|
|
6279
|
+
__Pyx_TraceLine(261,0,__PYX_ERR(0, 261, __pyx_L16_error))
|
|
6221
6280
|
__Pyx_INCREF(__pyx_v_6a_sync_7asyncio_11create_task_PersistedTaskException);
|
|
6222
6281
|
__pyx_t_9 = __pyx_v_6a_sync_7asyncio_11create_task_PersistedTaskException; __pyx_t_10 = NULL;
|
|
6223
6282
|
__pyx_t_11 = 0;
|
|
@@ -6237,23 +6296,23 @@ static PyObject *__pyx_gb_6a_sync_7asyncio_11create_task_7generator1(__pyx_Corou
|
|
|
6237
6296
|
PyObject *__pyx_callargs[3] = {__pyx_t_10, __pyx_cur_scope->__pyx_v_e, __pyx_cur_scope->__pyx_v_task};
|
|
6238
6297
|
__pyx_t_8 = __Pyx_PyObject_FastCall(__pyx_t_9, __pyx_callargs+1-__pyx_t_11, 2+__pyx_t_11);
|
|
6239
6298
|
__Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
|
|
6240
|
-
if (unlikely(!__pyx_t_8)) __PYX_ERR(0,
|
|
6299
|
+
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 261, __pyx_L16_error)
|
|
6241
6300
|
__Pyx_GOTREF(__pyx_t_8);
|
|
6242
6301
|
__Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
|
|
6243
6302
|
}
|
|
6244
6303
|
__Pyx_Raise(__pyx_t_8, 0, 0, __pyx_cur_scope->__pyx_v_e);
|
|
6245
6304
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
6246
|
-
__PYX_ERR(0,
|
|
6305
|
+
__PYX_ERR(0, 261, __pyx_L16_error)
|
|
6247
6306
|
}
|
|
6248
6307
|
|
|
6249
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
6308
|
+
/* "a_sync/asyncio/create_task.pyx":260
|
|
6250
6309
|
* try:
|
|
6251
6310
|
* return await task
|
|
6252
6311
|
* except Exception as e: # <<<<<<<<<<<<<<
|
|
6253
6312
|
* raise PersistedTaskException(e, task) from e
|
|
6254
6313
|
*
|
|
6255
6314
|
*/
|
|
6256
|
-
__Pyx_TraceLine(
|
|
6315
|
+
__Pyx_TraceLine(260,0,__PYX_ERR(0, 260, __pyx_L16_error))
|
|
6257
6316
|
/*finally:*/ {
|
|
6258
6317
|
__pyx_L16_error:;
|
|
6259
6318
|
/*exception exit:*/{
|
|
@@ -6293,7 +6352,7 @@ static PyObject *__pyx_gb_6a_sync_7asyncio_11create_task_7generator1(__pyx_Corou
|
|
|
6293
6352
|
}
|
|
6294
6353
|
goto __pyx_L6_except_error;
|
|
6295
6354
|
|
|
6296
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
6355
|
+
/* "a_sync/asyncio/create_task.pyx":258
|
|
6297
6356
|
* - :class:`PersistedTaskException`
|
|
6298
6357
|
* """
|
|
6299
6358
|
* try: # <<<<<<<<<<<<<<
|
|
@@ -6315,7 +6374,7 @@ static PyObject *__pyx_gb_6a_sync_7asyncio_11create_task_7generator1(__pyx_Corou
|
|
|
6315
6374
|
}
|
|
6316
6375
|
CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);
|
|
6317
6376
|
|
|
6318
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
6377
|
+
/* "a_sync/asyncio/create_task.pyx":245
|
|
6319
6378
|
* cdef object __persisted_task_exc_wrap
|
|
6320
6379
|
*
|
|
6321
6380
|
* async def __persisted_task_exc_wrap(task: "Task[T]") -> T: # <<<<<<<<<<<<<<
|
|
@@ -6345,7 +6404,7 @@ static PyObject *__pyx_gb_6a_sync_7asyncio_11create_task_7generator1(__pyx_Corou
|
|
|
6345
6404
|
return __pyx_r;
|
|
6346
6405
|
}
|
|
6347
6406
|
|
|
6348
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
6407
|
+
/* "a_sync/asyncio/create_task.pyx":269
|
|
6349
6408
|
* # For testing purposes only
|
|
6350
6409
|
*
|
|
6351
6410
|
* def _get_persisted_tasks() -> Set[Task]: # <<<<<<<<<<<<<<
|
|
@@ -6379,20 +6438,20 @@ static PyObject *__pyx_pf_6a_sync_7asyncio_11create_task_8_get_persisted_tasks(C
|
|
|
6379
6438
|
int __pyx_clineno = 0;
|
|
6380
6439
|
__Pyx_TraceFrameInit(__pyx_codeobj__7)
|
|
6381
6440
|
__Pyx_RefNannySetupContext("_get_persisted_tasks", 1);
|
|
6382
|
-
__Pyx_TraceCall("_get_persisted_tasks", __pyx_f[0],
|
|
6441
|
+
__Pyx_TraceCall("_get_persisted_tasks", __pyx_f[0], 269, 0, __PYX_ERR(0, 269, __pyx_L1_error));
|
|
6383
6442
|
|
|
6384
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
6443
|
+
/* "a_sync/asyncio/create_task.pyx":271
|
|
6385
6444
|
* def _get_persisted_tasks() -> Set[Task]:
|
|
6386
6445
|
* # we can't import this directly to the .py test file
|
|
6387
6446
|
* return _persisted_tasks # <<<<<<<<<<<<<<
|
|
6388
6447
|
*/
|
|
6389
|
-
__Pyx_TraceLine(
|
|
6448
|
+
__Pyx_TraceLine(271,0,__PYX_ERR(0, 271, __pyx_L1_error))
|
|
6390
6449
|
__Pyx_XDECREF(__pyx_r);
|
|
6391
6450
|
__Pyx_INCREF(_persisted_tasks);
|
|
6392
6451
|
__pyx_r = _persisted_tasks;
|
|
6393
6452
|
goto __pyx_L0;
|
|
6394
6453
|
|
|
6395
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
6454
|
+
/* "a_sync/asyncio/create_task.pyx":269
|
|
6396
6455
|
* # For testing purposes only
|
|
6397
6456
|
*
|
|
6398
6457
|
* def _get_persisted_tasks() -> Set[Task]: # <<<<<<<<<<<<<<
|
|
@@ -6943,16 +7002,13 @@ static int __Pyx_CreateStringTabAndInitStrings(void) {
|
|
|
6943
7002
|
__Pyx_StringTabEntry __pyx_string_tab[] = {
|
|
6944
7003
|
{&__pyx_n_s_Awaitable, __pyx_k_Awaitable, sizeof(__pyx_k_Awaitable), 0, 0, 1, 1},
|
|
6945
7004
|
{&__pyx_kp_s_Awaitable_T, __pyx_k_Awaitable_T, sizeof(__pyx_k_Awaitable_T), 0, 0, 1, 0},
|
|
6946
|
-
{&__pyx_n_u_CANCELLED, __pyx_k_CANCELLED, sizeof(__pyx_k_CANCELLED), 0, 1, 0, 1},
|
|
6947
7005
|
{&__pyx_kp_u_Exception_is_not_set, __pyx_k_Exception_is_not_set, sizeof(__pyx_k_Exception_is_not_set), 0, 1, 0, 0},
|
|
6948
7006
|
{&__pyx_kp_u_Extends_func_asyncio_create_tas, __pyx_k_Extends_func_asyncio_create_tas, sizeof(__pyx_k_Extends_func_asyncio_create_tas), 0, 1, 0, 0},
|
|
6949
|
-
{&__pyx_n_u_FINISHED, __pyx_k_FINISHED, sizeof(__pyx_k_FINISHED), 0, 1, 0, 1},
|
|
6950
7007
|
{&__pyx_n_s_Future, __pyx_k_Future, sizeof(__pyx_k_Future), 0, 0, 1, 1},
|
|
6951
7008
|
{&__pyx_n_s_Future__log_traceback, __pyx_k_Future__log_traceback, sizeof(__pyx_k_Future__log_traceback), 0, 0, 1, 1},
|
|
6952
7009
|
{&__pyx_n_s_GatheringFuture, __pyx_k_GatheringFuture, sizeof(__pyx_k_GatheringFuture), 0, 0, 1, 1},
|
|
6953
7010
|
{&__pyx_n_s_InvalidStateError, __pyx_k_InvalidStateError, sizeof(__pyx_k_InvalidStateError), 0, 0, 1, 1},
|
|
6954
7011
|
{&__pyx_n_s_Optional, __pyx_k_Optional, sizeof(__pyx_k_Optional), 0, 0, 1, 1},
|
|
6955
|
-
{&__pyx_n_u_PENDING, __pyx_k_PENDING, sizeof(__pyx_k_PENDING), 0, 1, 0, 1},
|
|
6956
7012
|
{&__pyx_n_s_PersistedTaskException, __pyx_k_PersistedTaskException, sizeof(__pyx_k_PersistedTaskException), 0, 0, 1, 1},
|
|
6957
7013
|
{&__pyx_n_s_Pyx_CFunc_79ed5e__6a_sync_7asy, __pyx_k_Pyx_CFunc_79ed5e__6a_sync_7asy, sizeof(__pyx_k_Pyx_CFunc_79ed5e__6a_sync_7asy), 0, 0, 1, 1},
|
|
6958
7014
|
{&__pyx_n_s_RuntimeError, __pyx_k_RuntimeError, sizeof(__pyx_k_RuntimeError), 0, 0, 1, 1},
|
|
@@ -6980,7 +7036,7 @@ static int __Pyx_CreateStringTabAndInitStrings(void) {
|
|
|
6980
7036
|
{&__pyx_n_s_asyncio_tasks, __pyx_k_asyncio_tasks, sizeof(__pyx_k_asyncio_tasks), 0, 0, 1, 1},
|
|
6981
7037
|
{&__pyx_n_s_await, __pyx_k_await, sizeof(__pyx_k_await), 0, 0, 1, 1},
|
|
6982
7038
|
{&__pyx_n_s_await_2, __pyx_k_await_2, sizeof(__pyx_k_await_2), 0, 0, 1, 1},
|
|
6983
|
-
{&
|
|
7039
|
+
{&__pyx_kp_u_await_line_151, __pyx_k_await_line_151, sizeof(__pyx_k_await_line_151), 0, 1, 0, 0},
|
|
6984
7040
|
{&__pyx_n_s_awaitable, __pyx_k_awaitable, sizeof(__pyx_k_awaitable), 0, 0, 1, 1},
|
|
6985
7041
|
{&__pyx_n_s_bint, __pyx_k_bint, sizeof(__pyx_k_bint), 0, 0, 1, 1},
|
|
6986
7042
|
{&__pyx_n_s_call_exception_handler, __pyx_k_call_exception_handler, sizeof(__pyx_k_call_exception_handler), 0, 0, 1, 1},
|
|
@@ -6992,7 +7048,7 @@ static int __Pyx_CreateStringTabAndInitStrings(void) {
|
|
|
6992
7048
|
{&__pyx_n_s_coro, __pyx_k_coro, sizeof(__pyx_k_coro), 0, 0, 1, 1},
|
|
6993
7049
|
{&__pyx_n_s_create_task, __pyx_k_create_task, sizeof(__pyx_k_create_task), 0, 0, 1, 1},
|
|
6994
7050
|
{&__pyx_n_u_create_task, __pyx_k_create_task, sizeof(__pyx_k_create_task), 0, 1, 0, 1},
|
|
6995
|
-
{&
|
|
7051
|
+
{&__pyx_kp_u_create_task_line_48, __pyx_k_create_task_line_48, sizeof(__pyx_k_create_task_line_48), 0, 1, 0, 0},
|
|
6996
7052
|
{&__pyx_n_s_difference_update, __pyx_k_difference_update, sizeof(__pyx_k_difference_update), 0, 0, 1, 1},
|
|
6997
7053
|
{&__pyx_kp_u_disable, __pyx_k_disable, sizeof(__pyx_k_disable), 0, 1, 0, 0},
|
|
6998
7054
|
{&__pyx_n_s_e, __pyx_k_e, sizeof(__pyx_k_e), 0, 0, 1, 1},
|
|
@@ -7051,8 +7107,8 @@ static int __Pyx_CreateStringTabAndInitStrings(void) {
|
|
|
7051
7107
|
}
|
|
7052
7108
|
/* #### Code section: cached_builtins ### */
|
|
7053
7109
|
static CYTHON_SMALL_CODE int __Pyx_InitCachedBuiltins(void) {
|
|
7054
|
-
__pyx_builtin_RuntimeError = __Pyx_GetBuiltinName(__pyx_n_s_RuntimeError); if (!__pyx_builtin_RuntimeError) __PYX_ERR(0,
|
|
7055
|
-
__pyx_builtin_filter = __Pyx_GetBuiltinName(__pyx_n_s_filter); if (!__pyx_builtin_filter) __PYX_ERR(0,
|
|
7110
|
+
__pyx_builtin_RuntimeError = __Pyx_GetBuiltinName(__pyx_n_s_RuntimeError); if (!__pyx_builtin_RuntimeError) __PYX_ERR(0, 172, __pyx_L1_error)
|
|
7111
|
+
__pyx_builtin_filter = __Pyx_GetBuiltinName(__pyx_n_s_filter); if (!__pyx_builtin_filter) __PYX_ERR(0, 194, __pyx_L1_error)
|
|
7056
7112
|
return 0;
|
|
7057
7113
|
__pyx_L1_error:;
|
|
7058
7114
|
return -1;
|
|
@@ -7086,50 +7142,50 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) {
|
|
|
7086
7142
|
__Pyx_GOTREF(__pyx_tuple__9);
|
|
7087
7143
|
__Pyx_GIVEREF(__pyx_tuple__9);
|
|
7088
7144
|
|
|
7089
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
7145
|
+
/* "a_sync/asyncio/create_task.pyx":48
|
|
7090
7146
|
*
|
|
7091
7147
|
*
|
|
7092
7148
|
* def create_task( # <<<<<<<<<<<<<<
|
|
7093
7149
|
* coro: Awaitable[T],
|
|
7094
7150
|
* *,
|
|
7095
7151
|
*/
|
|
7096
|
-
__pyx_tuple__11 = PyTuple_Pack(4, __pyx_n_s_coro, __pyx_n_s_name, __pyx_n_s_skip_gc_until_done, __pyx_n_s_log_destroy_pending); if (unlikely(!__pyx_tuple__11)) __PYX_ERR(0,
|
|
7152
|
+
__pyx_tuple__11 = PyTuple_Pack(4, __pyx_n_s_coro, __pyx_n_s_name, __pyx_n_s_skip_gc_until_done, __pyx_n_s_log_destroy_pending); if (unlikely(!__pyx_tuple__11)) __PYX_ERR(0, 48, __pyx_L1_error)
|
|
7097
7153
|
__Pyx_GOTREF(__pyx_tuple__11);
|
|
7098
7154
|
__Pyx_GIVEREF(__pyx_tuple__11);
|
|
7099
|
-
__pyx_codeobj__4 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__11, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_a_sync_asyncio_create_task_pyx, __pyx_n_s_create_task,
|
|
7155
|
+
__pyx_codeobj__4 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__11, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_a_sync_asyncio_create_task_pyx, __pyx_n_s_create_task, 48, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__4)) __PYX_ERR(0, 48, __pyx_L1_error)
|
|
7100
7156
|
|
|
7101
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
7157
|
+
/* "a_sync/asyncio/create_task.pyx":151
|
|
7102
7158
|
* cdef object __await
|
|
7103
7159
|
*
|
|
7104
7160
|
* async def __await(awaitable: Awaitable[T]) -> T: # <<<<<<<<<<<<<<
|
|
7105
7161
|
* """Wait for the completion of a non-coroutine Awaitable.
|
|
7106
7162
|
*
|
|
7107
7163
|
*/
|
|
7108
|
-
__pyx_tuple__12 = PyTuple_Pack(3, __pyx_n_s_awaitable, __pyx_n_s_e, __pyx_n_s_args); if (unlikely(!__pyx_tuple__12)) __PYX_ERR(0,
|
|
7164
|
+
__pyx_tuple__12 = PyTuple_Pack(3, __pyx_n_s_awaitable, __pyx_n_s_e, __pyx_n_s_args); if (unlikely(!__pyx_tuple__12)) __PYX_ERR(0, 151, __pyx_L1_error)
|
|
7109
7165
|
__Pyx_GOTREF(__pyx_tuple__12);
|
|
7110
7166
|
__Pyx_GIVEREF(__pyx_tuple__12);
|
|
7111
|
-
__pyx_codeobj__5 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_COROUTINE, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__12, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_a_sync_asyncio_create_task_pyx, __pyx_n_s_await,
|
|
7167
|
+
__pyx_codeobj__5 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_COROUTINE, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__12, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_a_sync_asyncio_create_task_pyx, __pyx_n_s_await, 151, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__5)) __PYX_ERR(0, 151, __pyx_L1_error)
|
|
7112
7168
|
|
|
7113
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
7169
|
+
/* "a_sync/asyncio/create_task.pyx":245
|
|
7114
7170
|
* cdef object __persisted_task_exc_wrap
|
|
7115
7171
|
*
|
|
7116
7172
|
* async def __persisted_task_exc_wrap(task: "Task[T]") -> T: # <<<<<<<<<<<<<<
|
|
7117
7173
|
* """
|
|
7118
7174
|
* Wrap a task to handle its exception in a specialized manner.
|
|
7119
7175
|
*/
|
|
7120
|
-
__pyx_tuple__13 = PyTuple_Pack(2, __pyx_n_s_task, __pyx_n_s_e); if (unlikely(!__pyx_tuple__13)) __PYX_ERR(0,
|
|
7176
|
+
__pyx_tuple__13 = PyTuple_Pack(2, __pyx_n_s_task, __pyx_n_s_e); if (unlikely(!__pyx_tuple__13)) __PYX_ERR(0, 245, __pyx_L1_error)
|
|
7121
7177
|
__Pyx_GOTREF(__pyx_tuple__13);
|
|
7122
7178
|
__Pyx_GIVEREF(__pyx_tuple__13);
|
|
7123
|
-
__pyx_codeobj__6 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_COROUTINE, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__13, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_a_sync_asyncio_create_task_pyx, __pyx_n_s_persisted_task_exc_wrap,
|
|
7179
|
+
__pyx_codeobj__6 = (PyObject*)__Pyx_PyCode_New(1, 0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_COROUTINE, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__13, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_a_sync_asyncio_create_task_pyx, __pyx_n_s_persisted_task_exc_wrap, 245, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__6)) __PYX_ERR(0, 245, __pyx_L1_error)
|
|
7124
7180
|
|
|
7125
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
7181
|
+
/* "a_sync/asyncio/create_task.pyx":269
|
|
7126
7182
|
* # For testing purposes only
|
|
7127
7183
|
*
|
|
7128
7184
|
* def _get_persisted_tasks() -> Set[Task]: # <<<<<<<<<<<<<<
|
|
7129
7185
|
* # we can't import this directly to the .py test file
|
|
7130
7186
|
* return _persisted_tasks
|
|
7131
7187
|
*/
|
|
7132
|
-
__pyx_codeobj__7 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_a_sync_asyncio_create_task_pyx, __pyx_n_s_get_persisted_tasks,
|
|
7188
|
+
__pyx_codeobj__7 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_a_sync_asyncio_create_task_pyx, __pyx_n_s_get_persisted_tasks, 269, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__7)) __PYX_ERR(0, 269, __pyx_L1_error)
|
|
7133
7189
|
__Pyx_RefNannyFinishContext();
|
|
7134
7190
|
return 0;
|
|
7135
7191
|
__pyx_L1_error:;
|
|
@@ -7219,15 +7275,15 @@ static int __Pyx_modinit_type_init_code(void) {
|
|
|
7219
7275
|
__Pyx_RefNannySetupContext("__Pyx_modinit_type_init_code", 0);
|
|
7220
7276
|
/*--- Type init code ---*/
|
|
7221
7277
|
#if CYTHON_USE_TYPE_SPECS
|
|
7222
|
-
__pyx_ptype_6a_sync_7asyncio_11create_task___pyx_scope_struct____await = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_6a_sync_7asyncio_11create_task___pyx_scope_struct____await_spec, NULL); if (unlikely(!__pyx_ptype_6a_sync_7asyncio_11create_task___pyx_scope_struct____await)) __PYX_ERR(0,
|
|
7223
|
-
if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_6a_sync_7asyncio_11create_task___pyx_scope_struct____await_spec, __pyx_ptype_6a_sync_7asyncio_11create_task___pyx_scope_struct____await) < 0) __PYX_ERR(0,
|
|
7278
|
+
__pyx_ptype_6a_sync_7asyncio_11create_task___pyx_scope_struct____await = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_6a_sync_7asyncio_11create_task___pyx_scope_struct____await_spec, NULL); if (unlikely(!__pyx_ptype_6a_sync_7asyncio_11create_task___pyx_scope_struct____await)) __PYX_ERR(0, 151, __pyx_L1_error)
|
|
7279
|
+
if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_6a_sync_7asyncio_11create_task___pyx_scope_struct____await_spec, __pyx_ptype_6a_sync_7asyncio_11create_task___pyx_scope_struct____await) < 0) __PYX_ERR(0, 151, __pyx_L1_error)
|
|
7224
7280
|
#else
|
|
7225
7281
|
__pyx_ptype_6a_sync_7asyncio_11create_task___pyx_scope_struct____await = &__pyx_type_6a_sync_7asyncio_11create_task___pyx_scope_struct____await;
|
|
7226
7282
|
#endif
|
|
7227
7283
|
#if !CYTHON_COMPILING_IN_LIMITED_API
|
|
7228
7284
|
#endif
|
|
7229
7285
|
#if !CYTHON_USE_TYPE_SPECS
|
|
7230
|
-
if (__Pyx_PyType_Ready(__pyx_ptype_6a_sync_7asyncio_11create_task___pyx_scope_struct____await) < 0) __PYX_ERR(0,
|
|
7286
|
+
if (__Pyx_PyType_Ready(__pyx_ptype_6a_sync_7asyncio_11create_task___pyx_scope_struct____await) < 0) __PYX_ERR(0, 151, __pyx_L1_error)
|
|
7231
7287
|
#endif
|
|
7232
7288
|
#if PY_MAJOR_VERSION < 3
|
|
7233
7289
|
__pyx_ptype_6a_sync_7asyncio_11create_task___pyx_scope_struct____await->tp_print = 0;
|
|
@@ -7238,15 +7294,15 @@ static int __Pyx_modinit_type_init_code(void) {
|
|
|
7238
7294
|
}
|
|
7239
7295
|
#endif
|
|
7240
7296
|
#if CYTHON_USE_TYPE_SPECS
|
|
7241
|
-
__pyx_ptype_6a_sync_7asyncio_11create_task___pyx_scope_struct_1___persisted_task_exc_wrap = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_6a_sync_7asyncio_11create_task___pyx_scope_struct_1___persisted_task_exc_wrap_spec, NULL); if (unlikely(!__pyx_ptype_6a_sync_7asyncio_11create_task___pyx_scope_struct_1___persisted_task_exc_wrap)) __PYX_ERR(0,
|
|
7242
|
-
if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_6a_sync_7asyncio_11create_task___pyx_scope_struct_1___persisted_task_exc_wrap_spec, __pyx_ptype_6a_sync_7asyncio_11create_task___pyx_scope_struct_1___persisted_task_exc_wrap) < 0) __PYX_ERR(0,
|
|
7297
|
+
__pyx_ptype_6a_sync_7asyncio_11create_task___pyx_scope_struct_1___persisted_task_exc_wrap = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_6a_sync_7asyncio_11create_task___pyx_scope_struct_1___persisted_task_exc_wrap_spec, NULL); if (unlikely(!__pyx_ptype_6a_sync_7asyncio_11create_task___pyx_scope_struct_1___persisted_task_exc_wrap)) __PYX_ERR(0, 245, __pyx_L1_error)
|
|
7298
|
+
if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_6a_sync_7asyncio_11create_task___pyx_scope_struct_1___persisted_task_exc_wrap_spec, __pyx_ptype_6a_sync_7asyncio_11create_task___pyx_scope_struct_1___persisted_task_exc_wrap) < 0) __PYX_ERR(0, 245, __pyx_L1_error)
|
|
7243
7299
|
#else
|
|
7244
7300
|
__pyx_ptype_6a_sync_7asyncio_11create_task___pyx_scope_struct_1___persisted_task_exc_wrap = &__pyx_type_6a_sync_7asyncio_11create_task___pyx_scope_struct_1___persisted_task_exc_wrap;
|
|
7245
7301
|
#endif
|
|
7246
7302
|
#if !CYTHON_COMPILING_IN_LIMITED_API
|
|
7247
7303
|
#endif
|
|
7248
7304
|
#if !CYTHON_USE_TYPE_SPECS
|
|
7249
|
-
if (__Pyx_PyType_Ready(__pyx_ptype_6a_sync_7asyncio_11create_task___pyx_scope_struct_1___persisted_task_exc_wrap) < 0) __PYX_ERR(0,
|
|
7305
|
+
if (__Pyx_PyType_Ready(__pyx_ptype_6a_sync_7asyncio_11create_task___pyx_scope_struct_1___persisted_task_exc_wrap) < 0) __PYX_ERR(0, 245, __pyx_L1_error)
|
|
7250
7306
|
#endif
|
|
7251
7307
|
#if PY_MAJOR_VERSION < 3
|
|
7252
7308
|
__pyx_ptype_6a_sync_7asyncio_11create_task___pyx_scope_struct_1___persisted_task_exc_wrap->tp_print = 0;
|
|
@@ -7284,10 +7340,30 @@ static int __Pyx_modinit_type_init_code(void) {
|
|
|
7284
7340
|
|
|
7285
7341
|
static int __Pyx_modinit_type_import_code(void) {
|
|
7286
7342
|
__Pyx_RefNannyDeclarations
|
|
7343
|
+
PyObject *__pyx_t_1 = NULL;
|
|
7344
|
+
int __pyx_lineno = 0;
|
|
7345
|
+
const char *__pyx_filename = NULL;
|
|
7346
|
+
int __pyx_clineno = 0;
|
|
7287
7347
|
__Pyx_RefNannySetupContext("__Pyx_modinit_type_import_code", 0);
|
|
7288
7348
|
/*--- Type import code ---*/
|
|
7349
|
+
__pyx_t_1 = PyImport_ImportModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error)
|
|
7350
|
+
__Pyx_GOTREF(__pyx_t_1);
|
|
7351
|
+
__pyx_ptype_7cpython_4type_type = __Pyx_ImportType_3_0_12(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME, "type",
|
|
7352
|
+
#if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
|
|
7353
|
+
sizeof(PyTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyTypeObject),
|
|
7354
|
+
#elif CYTHON_COMPILING_IN_LIMITED_API
|
|
7355
|
+
sizeof(PyTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyTypeObject),
|
|
7356
|
+
#else
|
|
7357
|
+
sizeof(PyHeapTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(PyHeapTypeObject),
|
|
7358
|
+
#endif
|
|
7359
|
+
__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_7cpython_4type_type) __PYX_ERR(2, 9, __pyx_L1_error)
|
|
7360
|
+
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
7289
7361
|
__Pyx_RefNannyFinishContext();
|
|
7290
7362
|
return 0;
|
|
7363
|
+
__pyx_L1_error:;
|
|
7364
|
+
__Pyx_XDECREF(__pyx_t_1);
|
|
7365
|
+
__Pyx_RefNannyFinishContext();
|
|
7366
|
+
return -1;
|
|
7291
7367
|
}
|
|
7292
7368
|
|
|
7293
7369
|
static int __Pyx_modinit_variable_import_code(void) {
|
|
@@ -7579,7 +7655,7 @@ if (!__Pyx_RefNanny) {
|
|
|
7579
7655
|
(void)__Pyx_modinit_variable_export_code();
|
|
7580
7656
|
if (unlikely((__Pyx_modinit_function_export_code() < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
7581
7657
|
if (unlikely((__Pyx_modinit_type_init_code() < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
7582
|
-
(
|
|
7658
|
+
if (unlikely((__Pyx_modinit_type_import_code() < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
7583
7659
|
(void)__Pyx_modinit_variable_import_code();
|
|
7584
7660
|
(void)__Pyx_modinit_function_import_code();
|
|
7585
7661
|
/*--- Execution code ---*/
|
|
@@ -7642,7 +7718,7 @@ if (!__Pyx_RefNanny) {
|
|
|
7642
7718
|
* import logging
|
|
7643
7719
|
* import typing # <<<<<<<<<<<<<<
|
|
7644
7720
|
*
|
|
7645
|
-
* from
|
|
7721
|
+
* from cpython.object cimport PyObject
|
|
7646
7722
|
*/
|
|
7647
7723
|
__Pyx_TraceLine(9,0,__PYX_ERR(0, 9, __pyx_L1_error))
|
|
7648
7724
|
__pyx_t_2 = __Pyx_ImportDottedModule(__pyx_n_s_typing, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9, __pyx_L1_error)
|
|
@@ -7650,68 +7726,68 @@ if (!__Pyx_RefNanny) {
|
|
|
7650
7726
|
if (PyDict_SetItem(__pyx_d, __pyx_n_s_typing, __pyx_t_2) < 0) __PYX_ERR(0, 9, __pyx_L1_error)
|
|
7651
7727
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
7652
7728
|
|
|
7653
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
7654
|
-
*
|
|
7729
|
+
/* "a_sync/asyncio/create_task.pyx":14
|
|
7730
|
+
* from cpython.unicode cimport PyUnicode_CompareWithASCIIString
|
|
7655
7731
|
*
|
|
7656
7732
|
* from a_sync import _smart, exceptions # <<<<<<<<<<<<<<
|
|
7657
7733
|
* from a_sync._typing import T
|
|
7658
7734
|
*
|
|
7659
7735
|
*/
|
|
7660
|
-
__Pyx_TraceLine(
|
|
7661
|
-
__pyx_t_2 = PyList_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
7736
|
+
__Pyx_TraceLine(14,0,__PYX_ERR(0, 14, __pyx_L1_error))
|
|
7737
|
+
__pyx_t_2 = PyList_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14, __pyx_L1_error)
|
|
7662
7738
|
__Pyx_GOTREF(__pyx_t_2);
|
|
7663
7739
|
__Pyx_INCREF(__pyx_n_s_smart);
|
|
7664
7740
|
__Pyx_GIVEREF(__pyx_n_s_smart);
|
|
7665
|
-
if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_smart)) __PYX_ERR(0,
|
|
7741
|
+
if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_smart)) __PYX_ERR(0, 14, __pyx_L1_error);
|
|
7666
7742
|
__Pyx_INCREF(__pyx_n_s_exceptions);
|
|
7667
7743
|
__Pyx_GIVEREF(__pyx_n_s_exceptions);
|
|
7668
|
-
if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 1, __pyx_n_s_exceptions)) __PYX_ERR(0,
|
|
7669
|
-
__pyx_t_3 = __Pyx_Import(__pyx_n_s_a_sync, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
7744
|
+
if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 1, __pyx_n_s_exceptions)) __PYX_ERR(0, 14, __pyx_L1_error);
|
|
7745
|
+
__pyx_t_3 = __Pyx_Import(__pyx_n_s_a_sync, __pyx_t_2, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 14, __pyx_L1_error)
|
|
7670
7746
|
__Pyx_GOTREF(__pyx_t_3);
|
|
7671
7747
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
7672
|
-
__pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_smart); if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
7748
|
+
__pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_smart); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14, __pyx_L1_error)
|
|
7673
7749
|
__Pyx_GOTREF(__pyx_t_2);
|
|
7674
|
-
if (PyDict_SetItem(__pyx_d, __pyx_n_s_smart, __pyx_t_2) < 0) __PYX_ERR(0,
|
|
7750
|
+
if (PyDict_SetItem(__pyx_d, __pyx_n_s_smart, __pyx_t_2) < 0) __PYX_ERR(0, 14, __pyx_L1_error)
|
|
7675
7751
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
7676
|
-
__pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_exceptions); if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
7752
|
+
__pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_exceptions); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14, __pyx_L1_error)
|
|
7677
7753
|
__Pyx_GOTREF(__pyx_t_2);
|
|
7678
|
-
if (PyDict_SetItem(__pyx_d, __pyx_n_s_exceptions, __pyx_t_2) < 0) __PYX_ERR(0,
|
|
7754
|
+
if (PyDict_SetItem(__pyx_d, __pyx_n_s_exceptions, __pyx_t_2) < 0) __PYX_ERR(0, 14, __pyx_L1_error)
|
|
7679
7755
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
7680
7756
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
7681
7757
|
|
|
7682
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
7758
|
+
/* "a_sync/asyncio/create_task.pyx":15
|
|
7683
7759
|
*
|
|
7684
7760
|
* from a_sync import _smart, exceptions
|
|
7685
7761
|
* from a_sync._typing import T # <<<<<<<<<<<<<<
|
|
7686
7762
|
*
|
|
7687
7763
|
*
|
|
7688
7764
|
*/
|
|
7689
|
-
__Pyx_TraceLine(
|
|
7690
|
-
__pyx_t_3 = PyList_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
7765
|
+
__Pyx_TraceLine(15,0,__PYX_ERR(0, 15, __pyx_L1_error))
|
|
7766
|
+
__pyx_t_3 = PyList_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15, __pyx_L1_error)
|
|
7691
7767
|
__Pyx_GOTREF(__pyx_t_3);
|
|
7692
7768
|
__Pyx_INCREF(__pyx_n_s_T);
|
|
7693
7769
|
__Pyx_GIVEREF(__pyx_n_s_T);
|
|
7694
|
-
if (__Pyx_PyList_SET_ITEM(__pyx_t_3, 0, __pyx_n_s_T)) __PYX_ERR(0,
|
|
7695
|
-
__pyx_t_2 = __Pyx_Import(__pyx_n_s_a_sync__typing, __pyx_t_3, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
7770
|
+
if (__Pyx_PyList_SET_ITEM(__pyx_t_3, 0, __pyx_n_s_T)) __PYX_ERR(0, 15, __pyx_L1_error);
|
|
7771
|
+
__pyx_t_2 = __Pyx_Import(__pyx_n_s_a_sync__typing, __pyx_t_3, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 15, __pyx_L1_error)
|
|
7696
7772
|
__Pyx_GOTREF(__pyx_t_2);
|
|
7697
7773
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
7698
|
-
__pyx_t_3 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_T); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
7774
|
+
__pyx_t_3 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_T); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15, __pyx_L1_error)
|
|
7699
7775
|
__Pyx_GOTREF(__pyx_t_3);
|
|
7700
|
-
if (PyDict_SetItem(__pyx_d, __pyx_n_s_T, __pyx_t_3) < 0) __PYX_ERR(0,
|
|
7776
|
+
if (PyDict_SetItem(__pyx_d, __pyx_n_s_T, __pyx_t_3) < 0) __PYX_ERR(0, 15, __pyx_L1_error)
|
|
7701
7777
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
7702
7778
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
7703
7779
|
|
|
7704
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
7780
|
+
/* "a_sync/asyncio/create_task.pyx":19
|
|
7705
7781
|
*
|
|
7706
7782
|
* # cdef asyncio
|
|
7707
7783
|
* cdef object get_running_loop = asyncio.get_running_loop # <<<<<<<<<<<<<<
|
|
7708
7784
|
* cdef object iscoroutine = asyncio.iscoroutine
|
|
7709
7785
|
* cdef object Future = asyncio.Future
|
|
7710
7786
|
*/
|
|
7711
|
-
__Pyx_TraceLine(
|
|
7712
|
-
__Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_asyncio); if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
7787
|
+
__Pyx_TraceLine(19,0,__PYX_ERR(0, 19, __pyx_L1_error))
|
|
7788
|
+
__Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_asyncio); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19, __pyx_L1_error)
|
|
7713
7789
|
__Pyx_GOTREF(__pyx_t_2);
|
|
7714
|
-
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_get_running_loop); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
7790
|
+
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_get_running_loop); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 19, __pyx_L1_error)
|
|
7715
7791
|
__Pyx_GOTREF(__pyx_t_3);
|
|
7716
7792
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
7717
7793
|
__Pyx_XGOTREF(__pyx_v_6a_sync_7asyncio_11create_task_get_running_loop);
|
|
@@ -7719,17 +7795,17 @@ if (!__Pyx_RefNanny) {
|
|
|
7719
7795
|
__Pyx_GIVEREF(__pyx_t_3);
|
|
7720
7796
|
__pyx_t_3 = 0;
|
|
7721
7797
|
|
|
7722
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
7798
|
+
/* "a_sync/asyncio/create_task.pyx":20
|
|
7723
7799
|
* # cdef asyncio
|
|
7724
7800
|
* cdef object get_running_loop = asyncio.get_running_loop
|
|
7725
7801
|
* cdef object iscoroutine = asyncio.iscoroutine # <<<<<<<<<<<<<<
|
|
7726
7802
|
* cdef object Future = asyncio.Future
|
|
7727
7803
|
* cdef object InvalidStateError = asyncio.InvalidStateError
|
|
7728
7804
|
*/
|
|
7729
|
-
__Pyx_TraceLine(
|
|
7730
|
-
__Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_asyncio); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
7805
|
+
__Pyx_TraceLine(20,0,__PYX_ERR(0, 20, __pyx_L1_error))
|
|
7806
|
+
__Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_asyncio); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20, __pyx_L1_error)
|
|
7731
7807
|
__Pyx_GOTREF(__pyx_t_3);
|
|
7732
|
-
__pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_iscoroutine); if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
7808
|
+
__pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_iscoroutine); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 20, __pyx_L1_error)
|
|
7733
7809
|
__Pyx_GOTREF(__pyx_t_2);
|
|
7734
7810
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
7735
7811
|
__Pyx_XGOTREF(__pyx_v_6a_sync_7asyncio_11create_task_iscoroutine);
|
|
@@ -7737,17 +7813,17 @@ if (!__Pyx_RefNanny) {
|
|
|
7737
7813
|
__Pyx_GIVEREF(__pyx_t_2);
|
|
7738
7814
|
__pyx_t_2 = 0;
|
|
7739
7815
|
|
|
7740
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
7816
|
+
/* "a_sync/asyncio/create_task.pyx":21
|
|
7741
7817
|
* cdef object get_running_loop = asyncio.get_running_loop
|
|
7742
7818
|
* cdef object iscoroutine = asyncio.iscoroutine
|
|
7743
7819
|
* cdef object Future = asyncio.Future # <<<<<<<<<<<<<<
|
|
7744
7820
|
* cdef object InvalidStateError = asyncio.InvalidStateError
|
|
7745
7821
|
* cdef object Task = asyncio.Task
|
|
7746
7822
|
*/
|
|
7747
|
-
__Pyx_TraceLine(
|
|
7748
|
-
__Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_asyncio); if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
7823
|
+
__Pyx_TraceLine(21,0,__PYX_ERR(0, 21, __pyx_L1_error))
|
|
7824
|
+
__Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_asyncio); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21, __pyx_L1_error)
|
|
7749
7825
|
__Pyx_GOTREF(__pyx_t_2);
|
|
7750
|
-
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_Future); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
7826
|
+
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_Future); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 21, __pyx_L1_error)
|
|
7751
7827
|
__Pyx_GOTREF(__pyx_t_3);
|
|
7752
7828
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
7753
7829
|
__Pyx_XGOTREF(__pyx_v_6a_sync_7asyncio_11create_task_Future);
|
|
@@ -7755,17 +7831,17 @@ if (!__Pyx_RefNanny) {
|
|
|
7755
7831
|
__Pyx_GIVEREF(__pyx_t_3);
|
|
7756
7832
|
__pyx_t_3 = 0;
|
|
7757
7833
|
|
|
7758
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
7834
|
+
/* "a_sync/asyncio/create_task.pyx":22
|
|
7759
7835
|
* cdef object iscoroutine = asyncio.iscoroutine
|
|
7760
7836
|
* cdef object Future = asyncio.Future
|
|
7761
7837
|
* cdef object InvalidStateError = asyncio.InvalidStateError # <<<<<<<<<<<<<<
|
|
7762
7838
|
* cdef object Task = asyncio.Task
|
|
7763
7839
|
* cdef object _GatheringFuture = aiotasks._GatheringFuture
|
|
7764
7840
|
*/
|
|
7765
|
-
__Pyx_TraceLine(
|
|
7766
|
-
__Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_asyncio); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
7841
|
+
__Pyx_TraceLine(22,0,__PYX_ERR(0, 22, __pyx_L1_error))
|
|
7842
|
+
__Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_asyncio); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22, __pyx_L1_error)
|
|
7767
7843
|
__Pyx_GOTREF(__pyx_t_3);
|
|
7768
|
-
__pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_InvalidStateError); if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
7844
|
+
__pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_InvalidStateError); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22, __pyx_L1_error)
|
|
7769
7845
|
__Pyx_GOTREF(__pyx_t_2);
|
|
7770
7846
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
7771
7847
|
__Pyx_XGOTREF(__pyx_v_6a_sync_7asyncio_11create_task_InvalidStateError);
|
|
@@ -7773,17 +7849,17 @@ if (!__Pyx_RefNanny) {
|
|
|
7773
7849
|
__Pyx_GIVEREF(__pyx_t_2);
|
|
7774
7850
|
__pyx_t_2 = 0;
|
|
7775
7851
|
|
|
7776
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
7852
|
+
/* "a_sync/asyncio/create_task.pyx":23
|
|
7777
7853
|
* cdef object Future = asyncio.Future
|
|
7778
7854
|
* cdef object InvalidStateError = asyncio.InvalidStateError
|
|
7779
7855
|
* cdef object Task = asyncio.Task # <<<<<<<<<<<<<<
|
|
7780
7856
|
* cdef object _GatheringFuture = aiotasks._GatheringFuture
|
|
7781
7857
|
* del asyncio, aiotasks
|
|
7782
7858
|
*/
|
|
7783
|
-
__Pyx_TraceLine(
|
|
7784
|
-
__Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_asyncio); if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
7859
|
+
__Pyx_TraceLine(23,0,__PYX_ERR(0, 23, __pyx_L1_error))
|
|
7860
|
+
__Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_asyncio); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23, __pyx_L1_error)
|
|
7785
7861
|
__Pyx_GOTREF(__pyx_t_2);
|
|
7786
|
-
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_Task); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
7862
|
+
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_Task); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23, __pyx_L1_error)
|
|
7787
7863
|
__Pyx_GOTREF(__pyx_t_3);
|
|
7788
7864
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
7789
7865
|
__Pyx_XGOTREF(__pyx_v_6a_sync_7asyncio_11create_task_Task);
|
|
@@ -7791,17 +7867,17 @@ if (!__Pyx_RefNanny) {
|
|
|
7791
7867
|
__Pyx_GIVEREF(__pyx_t_3);
|
|
7792
7868
|
__pyx_t_3 = 0;
|
|
7793
7869
|
|
|
7794
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
7870
|
+
/* "a_sync/asyncio/create_task.pyx":24
|
|
7795
7871
|
* cdef object InvalidStateError = asyncio.InvalidStateError
|
|
7796
7872
|
* cdef object Task = asyncio.Task
|
|
7797
7873
|
* cdef object _GatheringFuture = aiotasks._GatheringFuture # <<<<<<<<<<<<<<
|
|
7798
7874
|
* del asyncio, aiotasks
|
|
7799
7875
|
*
|
|
7800
7876
|
*/
|
|
7801
|
-
__Pyx_TraceLine(
|
|
7802
|
-
__Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_aiotasks); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
7877
|
+
__Pyx_TraceLine(24,0,__PYX_ERR(0, 24, __pyx_L1_error))
|
|
7878
|
+
__Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_aiotasks); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24, __pyx_L1_error)
|
|
7803
7879
|
__Pyx_GOTREF(__pyx_t_3);
|
|
7804
|
-
__pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_GatheringFuture); if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
7880
|
+
__pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_GatheringFuture); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24, __pyx_L1_error)
|
|
7805
7881
|
__Pyx_GOTREF(__pyx_t_2);
|
|
7806
7882
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
7807
7883
|
__Pyx_XGOTREF(__pyx_v_6a_sync_7asyncio_11create_task__GatheringFuture);
|
|
@@ -7809,33 +7885,33 @@ if (!__Pyx_RefNanny) {
|
|
|
7809
7885
|
__Pyx_GIVEREF(__pyx_t_2);
|
|
7810
7886
|
__pyx_t_2 = 0;
|
|
7811
7887
|
|
|
7812
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
7888
|
+
/* "a_sync/asyncio/create_task.pyx":25
|
|
7813
7889
|
* cdef object Task = asyncio.Task
|
|
7814
7890
|
* cdef object _GatheringFuture = aiotasks._GatheringFuture
|
|
7815
7891
|
* del asyncio, aiotasks # <<<<<<<<<<<<<<
|
|
7816
7892
|
*
|
|
7817
7893
|
* # cdef logging
|
|
7818
7894
|
*/
|
|
7819
|
-
__Pyx_TraceLine(
|
|
7820
|
-
if (__Pyx_PyObject_DelAttrStr(__pyx_m, __pyx_n_s_asyncio) < 0) __PYX_ERR(0,
|
|
7821
|
-
if (__Pyx_PyObject_DelAttrStr(__pyx_m, __pyx_n_s_aiotasks) < 0) __PYX_ERR(0,
|
|
7895
|
+
__Pyx_TraceLine(25,0,__PYX_ERR(0, 25, __pyx_L1_error))
|
|
7896
|
+
if (__Pyx_PyObject_DelAttrStr(__pyx_m, __pyx_n_s_asyncio) < 0) __PYX_ERR(0, 25, __pyx_L1_error)
|
|
7897
|
+
if (__Pyx_PyObject_DelAttrStr(__pyx_m, __pyx_n_s_aiotasks) < 0) __PYX_ERR(0, 25, __pyx_L1_error)
|
|
7822
7898
|
|
|
7823
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
7899
|
+
/* "a_sync/asyncio/create_task.pyx":28
|
|
7824
7900
|
*
|
|
7825
7901
|
* # cdef logging
|
|
7826
7902
|
* cdef public object logger = logging.getLogger(__name__) # <<<<<<<<<<<<<<
|
|
7827
7903
|
* del logging
|
|
7828
7904
|
*
|
|
7829
7905
|
*/
|
|
7830
|
-
__Pyx_TraceLine(
|
|
7831
|
-
__Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_logging); if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
7906
|
+
__Pyx_TraceLine(28,0,__PYX_ERR(0, 28, __pyx_L1_error))
|
|
7907
|
+
__Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_logging); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 28, __pyx_L1_error)
|
|
7832
7908
|
__Pyx_GOTREF(__pyx_t_2);
|
|
7833
|
-
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_getLogger); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
7909
|
+
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_getLogger); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 28, __pyx_L1_error)
|
|
7834
7910
|
__Pyx_GOTREF(__pyx_t_3);
|
|
7835
7911
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
7836
|
-
__Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_name_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
7912
|
+
__Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_name_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 28, __pyx_L1_error)
|
|
7837
7913
|
__Pyx_GOTREF(__pyx_t_2);
|
|
7838
|
-
__pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0,
|
|
7914
|
+
__pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 28, __pyx_L1_error)
|
|
7839
7915
|
__Pyx_GOTREF(__pyx_t_4);
|
|
7840
7916
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
7841
7917
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
@@ -7844,27 +7920,27 @@ if (!__Pyx_RefNanny) {
|
|
|
7844
7920
|
__Pyx_GIVEREF(__pyx_t_4);
|
|
7845
7921
|
__pyx_t_4 = 0;
|
|
7846
7922
|
|
|
7847
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
7923
|
+
/* "a_sync/asyncio/create_task.pyx":29
|
|
7848
7924
|
* # cdef logging
|
|
7849
7925
|
* cdef public object logger = logging.getLogger(__name__)
|
|
7850
7926
|
* del logging # <<<<<<<<<<<<<<
|
|
7851
7927
|
*
|
|
7852
7928
|
* # cdef typing
|
|
7853
7929
|
*/
|
|
7854
|
-
__Pyx_TraceLine(
|
|
7855
|
-
if (__Pyx_PyObject_DelAttrStr(__pyx_m, __pyx_n_s_logging) < 0) __PYX_ERR(0,
|
|
7930
|
+
__Pyx_TraceLine(29,0,__PYX_ERR(0, 29, __pyx_L1_error))
|
|
7931
|
+
if (__Pyx_PyObject_DelAttrStr(__pyx_m, __pyx_n_s_logging) < 0) __PYX_ERR(0, 29, __pyx_L1_error)
|
|
7856
7932
|
|
|
7857
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
7933
|
+
/* "a_sync/asyncio/create_task.pyx":32
|
|
7858
7934
|
*
|
|
7859
7935
|
* # cdef typing
|
|
7860
7936
|
* cdef object Awaitable = typing.Awaitable # <<<<<<<<<<<<<<
|
|
7861
7937
|
* cdef object Optional = typing.Optional
|
|
7862
7938
|
* cdef object Tuple = typing.Tuple
|
|
7863
7939
|
*/
|
|
7864
|
-
__Pyx_TraceLine(
|
|
7865
|
-
__Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_typing); if (unlikely(!__pyx_t_4)) __PYX_ERR(0,
|
|
7940
|
+
__Pyx_TraceLine(32,0,__PYX_ERR(0, 32, __pyx_L1_error))
|
|
7941
|
+
__Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_typing); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 32, __pyx_L1_error)
|
|
7866
7942
|
__Pyx_GOTREF(__pyx_t_4);
|
|
7867
|
-
__pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_Awaitable); if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
7943
|
+
__pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_Awaitable); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 32, __pyx_L1_error)
|
|
7868
7944
|
__Pyx_GOTREF(__pyx_t_2);
|
|
7869
7945
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
7870
7946
|
__Pyx_XGOTREF(__pyx_v_6a_sync_7asyncio_11create_task_Awaitable);
|
|
@@ -7872,17 +7948,17 @@ if (!__Pyx_RefNanny) {
|
|
|
7872
7948
|
__Pyx_GIVEREF(__pyx_t_2);
|
|
7873
7949
|
__pyx_t_2 = 0;
|
|
7874
7950
|
|
|
7875
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
7951
|
+
/* "a_sync/asyncio/create_task.pyx":33
|
|
7876
7952
|
* # cdef typing
|
|
7877
7953
|
* cdef object Awaitable = typing.Awaitable
|
|
7878
7954
|
* cdef object Optional = typing.Optional # <<<<<<<<<<<<<<
|
|
7879
7955
|
* cdef object Tuple = typing.Tuple
|
|
7880
7956
|
* cdef object Set = typing.Set
|
|
7881
7957
|
*/
|
|
7882
|
-
__Pyx_TraceLine(
|
|
7883
|
-
__Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_typing); if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
7958
|
+
__Pyx_TraceLine(33,0,__PYX_ERR(0, 33, __pyx_L1_error))
|
|
7959
|
+
__Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_typing); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 33, __pyx_L1_error)
|
|
7884
7960
|
__Pyx_GOTREF(__pyx_t_2);
|
|
7885
|
-
__pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_Optional); if (unlikely(!__pyx_t_4)) __PYX_ERR(0,
|
|
7961
|
+
__pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_Optional); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 33, __pyx_L1_error)
|
|
7886
7962
|
__Pyx_GOTREF(__pyx_t_4);
|
|
7887
7963
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
7888
7964
|
__Pyx_XGOTREF(__pyx_v_6a_sync_7asyncio_11create_task_Optional);
|
|
@@ -7890,17 +7966,17 @@ if (!__Pyx_RefNanny) {
|
|
|
7890
7966
|
__Pyx_GIVEREF(__pyx_t_4);
|
|
7891
7967
|
__pyx_t_4 = 0;
|
|
7892
7968
|
|
|
7893
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
7969
|
+
/* "a_sync/asyncio/create_task.pyx":34
|
|
7894
7970
|
* cdef object Awaitable = typing.Awaitable
|
|
7895
7971
|
* cdef object Optional = typing.Optional
|
|
7896
7972
|
* cdef object Tuple = typing.Tuple # <<<<<<<<<<<<<<
|
|
7897
7973
|
* cdef object Set = typing.Set
|
|
7898
7974
|
* del typing
|
|
7899
7975
|
*/
|
|
7900
|
-
__Pyx_TraceLine(
|
|
7901
|
-
__Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_typing); if (unlikely(!__pyx_t_4)) __PYX_ERR(0,
|
|
7976
|
+
__Pyx_TraceLine(34,0,__PYX_ERR(0, 34, __pyx_L1_error))
|
|
7977
|
+
__Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_typing); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 34, __pyx_L1_error)
|
|
7902
7978
|
__Pyx_GOTREF(__pyx_t_4);
|
|
7903
|
-
__pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_Tuple); if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
7979
|
+
__pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_Tuple); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 34, __pyx_L1_error)
|
|
7904
7980
|
__Pyx_GOTREF(__pyx_t_2);
|
|
7905
7981
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
7906
7982
|
__Pyx_XGOTREF(__pyx_v_6a_sync_7asyncio_11create_task_Tuple);
|
|
@@ -7908,17 +7984,17 @@ if (!__Pyx_RefNanny) {
|
|
|
7908
7984
|
__Pyx_GIVEREF(__pyx_t_2);
|
|
7909
7985
|
__pyx_t_2 = 0;
|
|
7910
7986
|
|
|
7911
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
7987
|
+
/* "a_sync/asyncio/create_task.pyx":35
|
|
7912
7988
|
* cdef object Optional = typing.Optional
|
|
7913
7989
|
* cdef object Tuple = typing.Tuple
|
|
7914
7990
|
* cdef object Set = typing.Set # <<<<<<<<<<<<<<
|
|
7915
7991
|
* del typing
|
|
7916
7992
|
*
|
|
7917
7993
|
*/
|
|
7918
|
-
__Pyx_TraceLine(
|
|
7919
|
-
__Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_typing); if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
7994
|
+
__Pyx_TraceLine(35,0,__PYX_ERR(0, 35, __pyx_L1_error))
|
|
7995
|
+
__Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_typing); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 35, __pyx_L1_error)
|
|
7920
7996
|
__Pyx_GOTREF(__pyx_t_2);
|
|
7921
|
-
__pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_Set); if (unlikely(!__pyx_t_4)) __PYX_ERR(0,
|
|
7997
|
+
__pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_Set); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 35, __pyx_L1_error)
|
|
7922
7998
|
__Pyx_GOTREF(__pyx_t_4);
|
|
7923
7999
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
7924
8000
|
__Pyx_XGOTREF(__pyx_v_6a_sync_7asyncio_11create_task_Set);
|
|
@@ -7926,27 +8002,27 @@ if (!__Pyx_RefNanny) {
|
|
|
7926
8002
|
__Pyx_GIVEREF(__pyx_t_4);
|
|
7927
8003
|
__pyx_t_4 = 0;
|
|
7928
8004
|
|
|
7929
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
8005
|
+
/* "a_sync/asyncio/create_task.pyx":36
|
|
7930
8006
|
* cdef object Tuple = typing.Tuple
|
|
7931
8007
|
* cdef object Set = typing.Set
|
|
7932
8008
|
* del typing # <<<<<<<<<<<<<<
|
|
7933
8009
|
*
|
|
7934
8010
|
* # cdef _smart
|
|
7935
8011
|
*/
|
|
7936
|
-
__Pyx_TraceLine(
|
|
7937
|
-
if (__Pyx_PyObject_DelAttrStr(__pyx_m, __pyx_n_s_typing) < 0) __PYX_ERR(0,
|
|
8012
|
+
__Pyx_TraceLine(36,0,__PYX_ERR(0, 36, __pyx_L1_error))
|
|
8013
|
+
if (__Pyx_PyObject_DelAttrStr(__pyx_m, __pyx_n_s_typing) < 0) __PYX_ERR(0, 36, __pyx_L1_error)
|
|
7938
8014
|
|
|
7939
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
8015
|
+
/* "a_sync/asyncio/create_task.pyx":39
|
|
7940
8016
|
*
|
|
7941
8017
|
* # cdef _smart
|
|
7942
8018
|
* cdef object SmartTask = _smart.SmartTask # <<<<<<<<<<<<<<
|
|
7943
8019
|
* cdef object smart_task_factory = _smart.smart_task_factory
|
|
7944
8020
|
* del _smart
|
|
7945
8021
|
*/
|
|
7946
|
-
__Pyx_TraceLine(
|
|
7947
|
-
__Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_smart); if (unlikely(!__pyx_t_4)) __PYX_ERR(0,
|
|
8022
|
+
__Pyx_TraceLine(39,0,__PYX_ERR(0, 39, __pyx_L1_error))
|
|
8023
|
+
__Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_smart); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 39, __pyx_L1_error)
|
|
7948
8024
|
__Pyx_GOTREF(__pyx_t_4);
|
|
7949
|
-
__pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_SmartTask); if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
8025
|
+
__pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_SmartTask); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 39, __pyx_L1_error)
|
|
7950
8026
|
__Pyx_GOTREF(__pyx_t_2);
|
|
7951
8027
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
7952
8028
|
__Pyx_XGOTREF(__pyx_v_6a_sync_7asyncio_11create_task_SmartTask);
|
|
@@ -7954,17 +8030,17 @@ if (!__Pyx_RefNanny) {
|
|
|
7954
8030
|
__Pyx_GIVEREF(__pyx_t_2);
|
|
7955
8031
|
__pyx_t_2 = 0;
|
|
7956
8032
|
|
|
7957
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
8033
|
+
/* "a_sync/asyncio/create_task.pyx":40
|
|
7958
8034
|
* # cdef _smart
|
|
7959
8035
|
* cdef object SmartTask = _smart.SmartTask
|
|
7960
8036
|
* cdef object smart_task_factory = _smart.smart_task_factory # <<<<<<<<<<<<<<
|
|
7961
8037
|
* del _smart
|
|
7962
8038
|
*
|
|
7963
8039
|
*/
|
|
7964
|
-
__Pyx_TraceLine(
|
|
7965
|
-
__Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_smart); if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
8040
|
+
__Pyx_TraceLine(40,0,__PYX_ERR(0, 40, __pyx_L1_error))
|
|
8041
|
+
__Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_smart); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 40, __pyx_L1_error)
|
|
7966
8042
|
__Pyx_GOTREF(__pyx_t_2);
|
|
7967
|
-
__pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_smart_task_factory); if (unlikely(!__pyx_t_4)) __PYX_ERR(0,
|
|
8043
|
+
__pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_smart_task_factory); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 40, __pyx_L1_error)
|
|
7968
8044
|
__Pyx_GOTREF(__pyx_t_4);
|
|
7969
8045
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
7970
8046
|
__Pyx_XGOTREF(__pyx_v_6a_sync_7asyncio_11create_task_smart_task_factory);
|
|
@@ -7972,27 +8048,27 @@ if (!__Pyx_RefNanny) {
|
|
|
7972
8048
|
__Pyx_GIVEREF(__pyx_t_4);
|
|
7973
8049
|
__pyx_t_4 = 0;
|
|
7974
8050
|
|
|
7975
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
8051
|
+
/* "a_sync/asyncio/create_task.pyx":41
|
|
7976
8052
|
* cdef object SmartTask = _smart.SmartTask
|
|
7977
8053
|
* cdef object smart_task_factory = _smart.smart_task_factory
|
|
7978
8054
|
* del _smart # <<<<<<<<<<<<<<
|
|
7979
8055
|
*
|
|
7980
8056
|
* # cdef exceptions
|
|
7981
8057
|
*/
|
|
7982
|
-
__Pyx_TraceLine(
|
|
7983
|
-
if (__Pyx_PyObject_DelAttrStr(__pyx_m, __pyx_n_s_smart) < 0) __PYX_ERR(0,
|
|
8058
|
+
__Pyx_TraceLine(41,0,__PYX_ERR(0, 41, __pyx_L1_error))
|
|
8059
|
+
if (__Pyx_PyObject_DelAttrStr(__pyx_m, __pyx_n_s_smart) < 0) __PYX_ERR(0, 41, __pyx_L1_error)
|
|
7984
8060
|
|
|
7985
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
8061
|
+
/* "a_sync/asyncio/create_task.pyx":44
|
|
7986
8062
|
*
|
|
7987
8063
|
* # cdef exceptions
|
|
7988
8064
|
* cdef object PersistedTaskException = exceptions.PersistedTaskException # <<<<<<<<<<<<<<
|
|
7989
8065
|
* del exceptions
|
|
7990
8066
|
*
|
|
7991
8067
|
*/
|
|
7992
|
-
__Pyx_TraceLine(
|
|
7993
|
-
__Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_exceptions); if (unlikely(!__pyx_t_4)) __PYX_ERR(0,
|
|
8068
|
+
__Pyx_TraceLine(44,0,__PYX_ERR(0, 44, __pyx_L1_error))
|
|
8069
|
+
__Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_exceptions); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 44, __pyx_L1_error)
|
|
7994
8070
|
__Pyx_GOTREF(__pyx_t_4);
|
|
7995
|
-
__pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_PersistedTaskException); if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
8071
|
+
__pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_PersistedTaskException); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 44, __pyx_L1_error)
|
|
7996
8072
|
__Pyx_GOTREF(__pyx_t_2);
|
|
7997
8073
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
7998
8074
|
__Pyx_XGOTREF(__pyx_v_6a_sync_7asyncio_11create_task_PersistedTaskException);
|
|
@@ -8000,103 +8076,103 @@ if (!__Pyx_RefNanny) {
|
|
|
8000
8076
|
__Pyx_GIVEREF(__pyx_t_2);
|
|
8001
8077
|
__pyx_t_2 = 0;
|
|
8002
8078
|
|
|
8003
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
8079
|
+
/* "a_sync/asyncio/create_task.pyx":45
|
|
8004
8080
|
* # cdef exceptions
|
|
8005
8081
|
* cdef object PersistedTaskException = exceptions.PersistedTaskException
|
|
8006
8082
|
* del exceptions # <<<<<<<<<<<<<<
|
|
8007
8083
|
*
|
|
8008
8084
|
*
|
|
8009
8085
|
*/
|
|
8010
|
-
__Pyx_TraceLine(
|
|
8011
|
-
if (__Pyx_PyObject_DelAttrStr(__pyx_m, __pyx_n_s_exceptions) < 0) __PYX_ERR(0,
|
|
8086
|
+
__Pyx_TraceLine(45,0,__PYX_ERR(0, 45, __pyx_L1_error))
|
|
8087
|
+
if (__Pyx_PyObject_DelAttrStr(__pyx_m, __pyx_n_s_exceptions) < 0) __PYX_ERR(0, 45, __pyx_L1_error)
|
|
8012
8088
|
|
|
8013
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
8089
|
+
/* "a_sync/asyncio/create_task.pyx":48
|
|
8014
8090
|
*
|
|
8015
8091
|
*
|
|
8016
8092
|
* def create_task( # <<<<<<<<<<<<<<
|
|
8017
8093
|
* coro: Awaitable[T],
|
|
8018
8094
|
* *,
|
|
8019
8095
|
*/
|
|
8020
|
-
__Pyx_TraceLine(
|
|
8021
|
-
__pyx_t_2 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
8096
|
+
__Pyx_TraceLine(48,0,__PYX_ERR(0, 48, __pyx_L1_error))
|
|
8097
|
+
__pyx_t_2 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 48, __pyx_L1_error)
|
|
8022
8098
|
__Pyx_GOTREF(__pyx_t_2);
|
|
8023
|
-
if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_name, ((PyObject*)__pyx_kp_u__3)) < 0) __PYX_ERR(0,
|
|
8024
|
-
if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_skip_gc_until_done, ((PyObject *)Py_False)) < 0) __PYX_ERR(0,
|
|
8025
|
-
if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_log_destroy_pending, ((PyObject *)Py_True)) < 0) __PYX_ERR(0,
|
|
8026
|
-
__pyx_t_4 = __Pyx_PyDict_NewPresized(5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0,
|
|
8099
|
+
if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_name, ((PyObject*)__pyx_kp_u__3)) < 0) __PYX_ERR(0, 48, __pyx_L1_error)
|
|
8100
|
+
if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_skip_gc_until_done, ((PyObject *)Py_False)) < 0) __PYX_ERR(0, 48, __pyx_L1_error)
|
|
8101
|
+
if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_log_destroy_pending, ((PyObject *)Py_True)) < 0) __PYX_ERR(0, 48, __pyx_L1_error)
|
|
8102
|
+
__pyx_t_4 = __Pyx_PyDict_NewPresized(5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 48, __pyx_L1_error)
|
|
8027
8103
|
__Pyx_GOTREF(__pyx_t_4);
|
|
8028
|
-
if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_coro, __pyx_kp_s_Awaitable_T) < 0) __PYX_ERR(0,
|
|
8029
|
-
if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_name, __pyx_n_s_str) < 0) __PYX_ERR(0,
|
|
8030
|
-
if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_skip_gc_until_done, __pyx_n_s_bint) < 0) __PYX_ERR(0,
|
|
8031
|
-
if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_log_destroy_pending, __pyx_n_s_bint) < 0) __PYX_ERR(0,
|
|
8032
|
-
if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_return, __pyx_kp_s_Task_T) < 0) __PYX_ERR(0,
|
|
8033
|
-
__pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_7asyncio_11create_task_1create_task, 0, __pyx_n_s_create_task, NULL, __pyx_n_s_a_sync_asyncio_create_task, __pyx_d, ((PyObject *)__pyx_codeobj__4)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
8104
|
+
if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_coro, __pyx_kp_s_Awaitable_T) < 0) __PYX_ERR(0, 48, __pyx_L1_error)
|
|
8105
|
+
if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_name, __pyx_n_s_str) < 0) __PYX_ERR(0, 48, __pyx_L1_error)
|
|
8106
|
+
if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_skip_gc_until_done, __pyx_n_s_bint) < 0) __PYX_ERR(0, 48, __pyx_L1_error)
|
|
8107
|
+
if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_log_destroy_pending, __pyx_n_s_bint) < 0) __PYX_ERR(0, 48, __pyx_L1_error)
|
|
8108
|
+
if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_return, __pyx_kp_s_Task_T) < 0) __PYX_ERR(0, 48, __pyx_L1_error)
|
|
8109
|
+
__pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_7asyncio_11create_task_1create_task, 0, __pyx_n_s_create_task, NULL, __pyx_n_s_a_sync_asyncio_create_task, __pyx_d, ((PyObject *)__pyx_codeobj__4)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 48, __pyx_L1_error)
|
|
8034
8110
|
__Pyx_GOTREF(__pyx_t_3);
|
|
8035
8111
|
__Pyx_CyFunction_SetDefaultsKwDict(__pyx_t_3, __pyx_t_2);
|
|
8036
8112
|
__Pyx_CyFunction_SetAnnotationsDict(__pyx_t_3, __pyx_t_4);
|
|
8037
8113
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
8038
8114
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
8039
|
-
if (PyDict_SetItem(__pyx_d, __pyx_n_s_create_task, __pyx_t_3) < 0) __PYX_ERR(0,
|
|
8115
|
+
if (PyDict_SetItem(__pyx_d, __pyx_n_s_create_task, __pyx_t_3) < 0) __PYX_ERR(0, 48, __pyx_L1_error)
|
|
8040
8116
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
8041
8117
|
|
|
8042
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
8118
|
+
/* "a_sync/asyncio/create_task.pyx":91
|
|
8043
8119
|
* return ccreate_task(coro, name, skip_gc_until_done, log_destroy_pending)
|
|
8044
8120
|
*
|
|
8045
8121
|
* cdef object ccreate_task_simple(object coro): # <<<<<<<<<<<<<<
|
|
8046
8122
|
* return ccreate_task(coro, "", False, True)
|
|
8047
8123
|
*
|
|
8048
8124
|
*/
|
|
8049
|
-
__Pyx_TraceLine(
|
|
8125
|
+
__Pyx_TraceLine(91,0,__PYX_ERR(0, 91, __pyx_L1_error))
|
|
8050
8126
|
|
|
8051
8127
|
|
|
8052
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
8128
|
+
/* "a_sync/asyncio/create_task.pyx":94
|
|
8053
8129
|
* return ccreate_task(coro, "", False, True)
|
|
8054
8130
|
*
|
|
8055
8131
|
* cdef object ccreate_task(object coro, str name, bint skip_gc_until_done, bint log_destroy_pending): # <<<<<<<<<<<<<<
|
|
8056
8132
|
* cdef object loop = get_running_loop()
|
|
8057
8133
|
* cdef object task_factory = loop._task_factory
|
|
8058
8134
|
*/
|
|
8059
|
-
__Pyx_TraceLine(
|
|
8135
|
+
__Pyx_TraceLine(94,0,__PYX_ERR(0, 94, __pyx_L1_error))
|
|
8060
8136
|
|
|
8061
8137
|
|
|
8062
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
8138
|
+
/* "a_sync/asyncio/create_task.pyx":142
|
|
8063
8139
|
*
|
|
8064
8140
|
*
|
|
8065
8141
|
* cdef inline void __set_task_name(object task, str name): # <<<<<<<<<<<<<<
|
|
8066
8142
|
* if set_name := getattr(task, "set_name", None):
|
|
8067
8143
|
* set_name(name)
|
|
8068
8144
|
*/
|
|
8069
|
-
__Pyx_TraceLine(
|
|
8145
|
+
__Pyx_TraceLine(142,0,__PYX_ERR(0, 142, __pyx_L1_error))
|
|
8070
8146
|
|
|
8071
8147
|
|
|
8072
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
8148
|
+
/* "a_sync/asyncio/create_task.pyx":147
|
|
8073
8149
|
*
|
|
8074
8150
|
*
|
|
8075
8151
|
* cdef public set[object] _persisted_tasks = set() # <<<<<<<<<<<<<<
|
|
8076
8152
|
*
|
|
8077
8153
|
* cdef object __await
|
|
8078
8154
|
*/
|
|
8079
|
-
__Pyx_TraceLine(
|
|
8080
|
-
__pyx_t_3 = PySet_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
8155
|
+
__Pyx_TraceLine(147,0,__PYX_ERR(0, 147, __pyx_L1_error))
|
|
8156
|
+
__pyx_t_3 = PySet_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 147, __pyx_L1_error)
|
|
8081
8157
|
__Pyx_GOTREF(__pyx_t_3);
|
|
8082
8158
|
__Pyx_XGOTREF(_persisted_tasks);
|
|
8083
8159
|
__Pyx_DECREF_SET(_persisted_tasks, ((PyObject*)__pyx_t_3));
|
|
8084
8160
|
__Pyx_GIVEREF(__pyx_t_3);
|
|
8085
8161
|
__pyx_t_3 = 0;
|
|
8086
8162
|
|
|
8087
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
8163
|
+
/* "a_sync/asyncio/create_task.pyx":151
|
|
8088
8164
|
* cdef object __await
|
|
8089
8165
|
*
|
|
8090
8166
|
* async def __await(awaitable: Awaitable[T]) -> T: # <<<<<<<<<<<<<<
|
|
8091
8167
|
* """Wait for the completion of a non-coroutine Awaitable.
|
|
8092
8168
|
*
|
|
8093
8169
|
*/
|
|
8094
|
-
__Pyx_TraceLine(
|
|
8095
|
-
__pyx_t_3 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
8170
|
+
__Pyx_TraceLine(151,0,__PYX_ERR(0, 151, __pyx_L1_error))
|
|
8171
|
+
__pyx_t_3 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 151, __pyx_L1_error)
|
|
8096
8172
|
__Pyx_GOTREF(__pyx_t_3);
|
|
8097
|
-
if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_awaitable, __pyx_kp_s_Awaitable_T) < 0) __PYX_ERR(0,
|
|
8098
|
-
if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_return, __pyx_n_s_T) < 0) __PYX_ERR(0,
|
|
8099
|
-
__pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_7asyncio_11create_task_3__await, __Pyx_CYFUNCTION_COROUTINE, __pyx_n_s_await, NULL, __pyx_n_s_a_sync_asyncio_create_task, __pyx_d, ((PyObject *)__pyx_codeobj__5)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0,
|
|
8173
|
+
if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_awaitable, __pyx_kp_s_Awaitable_T) < 0) __PYX_ERR(0, 151, __pyx_L1_error)
|
|
8174
|
+
if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_return, __pyx_n_s_T) < 0) __PYX_ERR(0, 151, __pyx_L1_error)
|
|
8175
|
+
__pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_7asyncio_11create_task_3__await, __Pyx_CYFUNCTION_COROUTINE, __pyx_n_s_await, NULL, __pyx_n_s_a_sync_asyncio_create_task, __pyx_d, ((PyObject *)__pyx_codeobj__5)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 151, __pyx_L1_error)
|
|
8100
8176
|
__Pyx_GOTREF(__pyx_t_4);
|
|
8101
8177
|
__Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_3);
|
|
8102
8178
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
@@ -8105,74 +8181,74 @@ if (!__Pyx_RefNanny) {
|
|
|
8105
8181
|
__Pyx_GIVEREF(__pyx_t_4);
|
|
8106
8182
|
__pyx_t_4 = 0;
|
|
8107
8183
|
|
|
8108
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
8184
|
+
/* "a_sync/asyncio/create_task.pyx":179
|
|
8109
8185
|
*
|
|
8110
8186
|
*
|
|
8111
8187
|
* cdef object __log_exception = logger.exception # <<<<<<<<<<<<<<
|
|
8112
8188
|
*
|
|
8113
8189
|
*
|
|
8114
8190
|
*/
|
|
8115
|
-
__Pyx_TraceLine(
|
|
8116
|
-
__pyx_t_4 = __Pyx_PyObject_GetAttrStr(logger, __pyx_n_s_exception); if (unlikely(!__pyx_t_4)) __PYX_ERR(0,
|
|
8191
|
+
__Pyx_TraceLine(179,0,__PYX_ERR(0, 179, __pyx_L1_error))
|
|
8192
|
+
__pyx_t_4 = __Pyx_PyObject_GetAttrStr(logger, __pyx_n_s_exception); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 179, __pyx_L1_error)
|
|
8117
8193
|
__Pyx_GOTREF(__pyx_t_4);
|
|
8118
8194
|
__Pyx_XGOTREF(__pyx_v_6a_sync_7asyncio_11create_task___log_exception);
|
|
8119
8195
|
__Pyx_DECREF_SET(__pyx_v_6a_sync_7asyncio_11create_task___log_exception, __pyx_t_4);
|
|
8120
8196
|
__Pyx_GIVEREF(__pyx_t_4);
|
|
8121
8197
|
__pyx_t_4 = 0;
|
|
8122
8198
|
|
|
8123
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
8199
|
+
/* "a_sync/asyncio/create_task.pyx":182
|
|
8124
8200
|
*
|
|
8125
8201
|
*
|
|
8126
8202
|
* cdef void __prune_persisted_tasks(): # <<<<<<<<<<<<<<
|
|
8127
8203
|
* """Remove completed tasks from the set of persisted tasks.
|
|
8128
8204
|
*
|
|
8129
8205
|
*/
|
|
8130
|
-
__Pyx_TraceLine(
|
|
8206
|
+
__Pyx_TraceLine(182,0,__PYX_ERR(0, 182, __pyx_L1_error))
|
|
8131
8207
|
|
|
8132
8208
|
|
|
8133
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
8209
|
+
/* "a_sync/asyncio/create_task.pyx":218
|
|
8134
8210
|
*
|
|
8135
8211
|
*
|
|
8136
8212
|
* cdef inline bint _is_done(fut: Future): # <<<<<<<<<<<<<<
|
|
8137
|
-
* return
|
|
8213
|
+
* return PyUnicode_CompareWithASCIIString(fut._state, b"PENDING") != 0
|
|
8138
8214
|
*
|
|
8139
8215
|
*/
|
|
8140
|
-
__Pyx_TraceLine(
|
|
8216
|
+
__Pyx_TraceLine(218,0,__PYX_ERR(0, 218, __pyx_L1_error))
|
|
8141
8217
|
|
|
8142
8218
|
|
|
8143
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
8219
|
+
/* "a_sync/asyncio/create_task.pyx":222
|
|
8144
8220
|
*
|
|
8145
8221
|
*
|
|
8146
8222
|
* cdef object _get_exception(fut: Future): # <<<<<<<<<<<<<<
|
|
8147
8223
|
* """Return the exception that was set on this future.
|
|
8148
8224
|
*
|
|
8149
8225
|
*/
|
|
8150
|
-
__Pyx_TraceLine(
|
|
8226
|
+
__Pyx_TraceLine(222,0,__PYX_ERR(0, 222, __pyx_L1_error))
|
|
8151
8227
|
|
|
8152
8228
|
|
|
8153
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
8229
|
+
/* "a_sync/asyncio/create_task.pyx":239
|
|
8154
8230
|
*
|
|
8155
8231
|
*
|
|
8156
8232
|
* cdef inline bint _exc_exists(tup: Tuple[Future, Optional[Exception]]): # <<<<<<<<<<<<<<
|
|
8157
8233
|
* return tup[1] is not None
|
|
8158
8234
|
*
|
|
8159
8235
|
*/
|
|
8160
|
-
__Pyx_TraceLine(
|
|
8236
|
+
__Pyx_TraceLine(239,0,__PYX_ERR(0, 239, __pyx_L1_error))
|
|
8161
8237
|
|
|
8162
8238
|
|
|
8163
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
8239
|
+
/* "a_sync/asyncio/create_task.pyx":245
|
|
8164
8240
|
* cdef object __persisted_task_exc_wrap
|
|
8165
8241
|
*
|
|
8166
8242
|
* async def __persisted_task_exc_wrap(task: "Task[T]") -> T: # <<<<<<<<<<<<<<
|
|
8167
8243
|
* """
|
|
8168
8244
|
* Wrap a task to handle its exception in a specialized manner.
|
|
8169
8245
|
*/
|
|
8170
|
-
__Pyx_TraceLine(
|
|
8171
|
-
__pyx_t_4 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0,
|
|
8246
|
+
__Pyx_TraceLine(245,0,__PYX_ERR(0, 245, __pyx_L1_error))
|
|
8247
|
+
__pyx_t_4 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 245, __pyx_L1_error)
|
|
8172
8248
|
__Pyx_GOTREF(__pyx_t_4);
|
|
8173
|
-
if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_task, __pyx_kp_s_Task_T) < 0) __PYX_ERR(0,
|
|
8174
|
-
if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_return, __pyx_n_s_T) < 0) __PYX_ERR(0,
|
|
8175
|
-
__pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_7asyncio_11create_task_6__persisted_task_exc_wrap, __Pyx_CYFUNCTION_COROUTINE, __pyx_n_s_persisted_task_exc_wrap, NULL, __pyx_n_s_a_sync_asyncio_create_task, __pyx_d, ((PyObject *)__pyx_codeobj__6)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
8249
|
+
if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_task, __pyx_kp_s_Task_T) < 0) __PYX_ERR(0, 245, __pyx_L1_error)
|
|
8250
|
+
if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_return, __pyx_n_s_T) < 0) __PYX_ERR(0, 245, __pyx_L1_error)
|
|
8251
|
+
__pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_7asyncio_11create_task_6__persisted_task_exc_wrap, __Pyx_CYFUNCTION_COROUTINE, __pyx_n_s_persisted_task_exc_wrap, NULL, __pyx_n_s_a_sync_asyncio_create_task, __pyx_d, ((PyObject *)__pyx_codeobj__6)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 245, __pyx_L1_error)
|
|
8176
8252
|
__Pyx_GOTREF(__pyx_t_3);
|
|
8177
8253
|
__Pyx_CyFunction_SetAnnotationsDict(__pyx_t_3, __pyx_t_4);
|
|
8178
8254
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
@@ -8181,38 +8257,38 @@ if (!__Pyx_RefNanny) {
|
|
|
8181
8257
|
__Pyx_GIVEREF(__pyx_t_3);
|
|
8182
8258
|
__pyx_t_3 = 0;
|
|
8183
8259
|
|
|
8184
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
8260
|
+
/* "a_sync/asyncio/create_task.pyx":264
|
|
8185
8261
|
*
|
|
8186
8262
|
*
|
|
8187
8263
|
* __all__ = ["create_task"] # <<<<<<<<<<<<<<
|
|
8188
8264
|
*
|
|
8189
8265
|
*
|
|
8190
8266
|
*/
|
|
8191
|
-
__Pyx_TraceLine(
|
|
8192
|
-
__pyx_t_3 = PyList_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
8267
|
+
__Pyx_TraceLine(264,0,__PYX_ERR(0, 264, __pyx_L1_error))
|
|
8268
|
+
__pyx_t_3 = PyList_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 264, __pyx_L1_error)
|
|
8193
8269
|
__Pyx_GOTREF(__pyx_t_3);
|
|
8194
8270
|
__Pyx_INCREF(__pyx_n_u_create_task);
|
|
8195
8271
|
__Pyx_GIVEREF(__pyx_n_u_create_task);
|
|
8196
|
-
if (__Pyx_PyList_SET_ITEM(__pyx_t_3, 0, __pyx_n_u_create_task)) __PYX_ERR(0,
|
|
8197
|
-
if (PyDict_SetItem(__pyx_d, __pyx_n_s_all, __pyx_t_3) < 0) __PYX_ERR(0,
|
|
8272
|
+
if (__Pyx_PyList_SET_ITEM(__pyx_t_3, 0, __pyx_n_u_create_task)) __PYX_ERR(0, 264, __pyx_L1_error);
|
|
8273
|
+
if (PyDict_SetItem(__pyx_d, __pyx_n_s_all, __pyx_t_3) < 0) __PYX_ERR(0, 264, __pyx_L1_error)
|
|
8198
8274
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
8199
8275
|
|
|
8200
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
8276
|
+
/* "a_sync/asyncio/create_task.pyx":269
|
|
8201
8277
|
* # For testing purposes only
|
|
8202
8278
|
*
|
|
8203
8279
|
* def _get_persisted_tasks() -> Set[Task]: # <<<<<<<<<<<<<<
|
|
8204
8280
|
* # we can't import this directly to the .py test file
|
|
8205
8281
|
* return _persisted_tasks
|
|
8206
8282
|
*/
|
|
8207
|
-
__Pyx_TraceLine(
|
|
8208
|
-
__pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
8283
|
+
__Pyx_TraceLine(269,0,__PYX_ERR(0, 269, __pyx_L1_error))
|
|
8284
|
+
__pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 269, __pyx_L1_error)
|
|
8209
8285
|
__Pyx_GOTREF(__pyx_t_3);
|
|
8210
|
-
if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_return, __pyx_kp_s_Set_Task) < 0) __PYX_ERR(0,
|
|
8211
|
-
__pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_7asyncio_11create_task_9_get_persisted_tasks, 0, __pyx_n_s_get_persisted_tasks, NULL, __pyx_n_s_a_sync_asyncio_create_task, __pyx_d, ((PyObject *)__pyx_codeobj__7)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0,
|
|
8286
|
+
if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_return, __pyx_kp_s_Set_Task) < 0) __PYX_ERR(0, 269, __pyx_L1_error)
|
|
8287
|
+
__pyx_t_4 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_7asyncio_11create_task_9_get_persisted_tasks, 0, __pyx_n_s_get_persisted_tasks, NULL, __pyx_n_s_a_sync_asyncio_create_task, __pyx_d, ((PyObject *)__pyx_codeobj__7)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 269, __pyx_L1_error)
|
|
8212
8288
|
__Pyx_GOTREF(__pyx_t_4);
|
|
8213
8289
|
__Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_3);
|
|
8214
8290
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
8215
|
-
if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_persisted_tasks, __pyx_t_4) < 0) __PYX_ERR(0,
|
|
8291
|
+
if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_persisted_tasks, __pyx_t_4) < 0) __PYX_ERR(0, 269, __pyx_L1_error)
|
|
8216
8292
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
8217
8293
|
|
|
8218
8294
|
/* "a_sync/asyncio/create_task.pyx":1
|
|
@@ -8223,8 +8299,8 @@ if (!__Pyx_RefNanny) {
|
|
|
8223
8299
|
__Pyx_TraceLine(1,0,__PYX_ERR(0, 1, __pyx_L1_error))
|
|
8224
8300
|
__pyx_t_4 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
8225
8301
|
__Pyx_GOTREF(__pyx_t_4);
|
|
8226
|
-
if (PyDict_SetItem(__pyx_t_4,
|
|
8227
|
-
if (PyDict_SetItem(__pyx_t_4,
|
|
8302
|
+
if (PyDict_SetItem(__pyx_t_4, __pyx_kp_u_create_task_line_48, __pyx_kp_u_Extends_func_asyncio_create_tas) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
8303
|
+
if (PyDict_SetItem(__pyx_t_4, __pyx_kp_u_await_line_151, __pyx_kp_u_Wait_for_the_completion_of_a_non) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
8228
8304
|
if (PyDict_SetItem(__pyx_d, __pyx_n_s_test, __pyx_t_4) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
8229
8305
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
8230
8306
|
__Pyx_TraceReturn(Py_None, 0);
|
|
@@ -13158,6 +13234,86 @@ static int __Pyx_validate_bases_tuple(const char *type_name, Py_ssize_t dictoffs
|
|
|
13158
13234
|
#endif
|
|
13159
13235
|
}
|
|
13160
13236
|
|
|
13237
|
+
/* TypeImport */
|
|
13238
|
+
#ifndef __PYX_HAVE_RT_ImportType_3_0_12
|
|
13239
|
+
#define __PYX_HAVE_RT_ImportType_3_0_12
|
|
13240
|
+
static PyTypeObject *__Pyx_ImportType_3_0_12(PyObject *module, const char *module_name, const char *class_name,
|
|
13241
|
+
size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_0_12 check_size)
|
|
13242
|
+
{
|
|
13243
|
+
PyObject *result = 0;
|
|
13244
|
+
char warning[200];
|
|
13245
|
+
Py_ssize_t basicsize;
|
|
13246
|
+
Py_ssize_t itemsize;
|
|
13247
|
+
#if CYTHON_COMPILING_IN_LIMITED_API
|
|
13248
|
+
PyObject *py_basicsize;
|
|
13249
|
+
PyObject *py_itemsize;
|
|
13250
|
+
#endif
|
|
13251
|
+
result = PyObject_GetAttrString(module, class_name);
|
|
13252
|
+
if (!result)
|
|
13253
|
+
goto bad;
|
|
13254
|
+
if (!PyType_Check(result)) {
|
|
13255
|
+
PyErr_Format(PyExc_TypeError,
|
|
13256
|
+
"%.200s.%.200s is not a type object",
|
|
13257
|
+
module_name, class_name);
|
|
13258
|
+
goto bad;
|
|
13259
|
+
}
|
|
13260
|
+
#if !CYTHON_COMPILING_IN_LIMITED_API
|
|
13261
|
+
basicsize = ((PyTypeObject *)result)->tp_basicsize;
|
|
13262
|
+
itemsize = ((PyTypeObject *)result)->tp_itemsize;
|
|
13263
|
+
#else
|
|
13264
|
+
py_basicsize = PyObject_GetAttrString(result, "__basicsize__");
|
|
13265
|
+
if (!py_basicsize)
|
|
13266
|
+
goto bad;
|
|
13267
|
+
basicsize = PyLong_AsSsize_t(py_basicsize);
|
|
13268
|
+
Py_DECREF(py_basicsize);
|
|
13269
|
+
py_basicsize = 0;
|
|
13270
|
+
if (basicsize == (Py_ssize_t)-1 && PyErr_Occurred())
|
|
13271
|
+
goto bad;
|
|
13272
|
+
py_itemsize = PyObject_GetAttrString(result, "__itemsize__");
|
|
13273
|
+
if (!py_itemsize)
|
|
13274
|
+
goto bad;
|
|
13275
|
+
itemsize = PyLong_AsSsize_t(py_itemsize);
|
|
13276
|
+
Py_DECREF(py_itemsize);
|
|
13277
|
+
py_itemsize = 0;
|
|
13278
|
+
if (itemsize == (Py_ssize_t)-1 && PyErr_Occurred())
|
|
13279
|
+
goto bad;
|
|
13280
|
+
#endif
|
|
13281
|
+
if (itemsize) {
|
|
13282
|
+
if (size % alignment) {
|
|
13283
|
+
alignment = size % alignment;
|
|
13284
|
+
}
|
|
13285
|
+
if (itemsize < (Py_ssize_t)alignment)
|
|
13286
|
+
itemsize = (Py_ssize_t)alignment;
|
|
13287
|
+
}
|
|
13288
|
+
if ((size_t)(basicsize + itemsize) < size) {
|
|
13289
|
+
PyErr_Format(PyExc_ValueError,
|
|
13290
|
+
"%.200s.%.200s size changed, may indicate binary incompatibility. "
|
|
13291
|
+
"Expected %zd from C header, got %zd from PyObject",
|
|
13292
|
+
module_name, class_name, size, basicsize+itemsize);
|
|
13293
|
+
goto bad;
|
|
13294
|
+
}
|
|
13295
|
+
if (check_size == __Pyx_ImportType_CheckSize_Error_3_0_12 &&
|
|
13296
|
+
((size_t)basicsize > size || (size_t)(basicsize + itemsize) < size)) {
|
|
13297
|
+
PyErr_Format(PyExc_ValueError,
|
|
13298
|
+
"%.200s.%.200s size changed, may indicate binary incompatibility. "
|
|
13299
|
+
"Expected %zd from C header, got %zd-%zd from PyObject",
|
|
13300
|
+
module_name, class_name, size, basicsize, basicsize+itemsize);
|
|
13301
|
+
goto bad;
|
|
13302
|
+
}
|
|
13303
|
+
else if (check_size == __Pyx_ImportType_CheckSize_Warn_3_0_12 && (size_t)basicsize > size) {
|
|
13304
|
+
PyOS_snprintf(warning, sizeof(warning),
|
|
13305
|
+
"%s.%s size changed, may indicate binary incompatibility. "
|
|
13306
|
+
"Expected %zd from C header, got %zd from PyObject",
|
|
13307
|
+
module_name, class_name, size, basicsize);
|
|
13308
|
+
if (PyErr_WarnEx(NULL, warning, 0) < 0) goto bad;
|
|
13309
|
+
}
|
|
13310
|
+
return (PyTypeObject *)result;
|
|
13311
|
+
bad:
|
|
13312
|
+
Py_XDECREF(result);
|
|
13313
|
+
return NULL;
|
|
13314
|
+
}
|
|
13315
|
+
#endif
|
|
13316
|
+
|
|
13161
13317
|
/* Import */
|
|
13162
13318
|
static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level) {
|
|
13163
13319
|
PyObject *module = 0;
|