ez-a-sync 0.32.15__cp313-cp313-macosx_11_0_arm64.whl → 0.32.17__cp313-cp313-macosx_11_0_arm64.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 +1036 -1382
- a_sync/_smart.cpython-313-darwin.so +0 -0
- a_sync/_smart.pyx +10 -18
- a_sync/a_sync/_descriptor.c +4 -0
- a_sync/a_sync/_descriptor.cpython-313-darwin.so +0 -0
- a_sync/a_sync/_flags.cpython-313-darwin.so +0 -0
- a_sync/a_sync/_helpers.c +4 -0
- a_sync/a_sync/_helpers.cpython-313-darwin.so +0 -0
- a_sync/a_sync/_kwargs.cpython-313-darwin.so +0 -0
- a_sync/a_sync/_meta.py +2 -2
- a_sync/a_sync/abstract.cpython-313-darwin.so +0 -0
- a_sync/a_sync/base.cpython-313-darwin.so +0 -0
- a_sync/a_sync/flags.cpython-313-darwin.so +0 -0
- a_sync/a_sync/function.c +3633 -3272
- a_sync/a_sync/function.cpython-313-darwin.so +0 -0
- a_sync/a_sync/function.pxd +5 -1
- a_sync/a_sync/function.pyx +82 -79
- a_sync/a_sync/method.c +9838 -7638
- a_sync/a_sync/method.cpython-313-darwin.so +0 -0
- a_sync/a_sync/method.pxd +8 -1
- a_sync/a_sync/method.pyx +108 -84
- a_sync/a_sync/modifiers/manager.cpython-313-darwin.so +0 -0
- a_sync/a_sync/property.c +435 -384
- a_sync/a_sync/property.cpython-313-darwin.so +0 -0
- a_sync/a_sync/property.pyx +9 -7
- a_sync/async_property/cached.cpython-313-darwin.so +0 -0
- a_sync/async_property/proxy.cpython-313-darwin.so +0 -0
- a_sync/asyncio/as_completed.cpython-313-darwin.so +0 -0
- a_sync/asyncio/create_task.c +680 -759
- a_sync/asyncio/create_task.cpython-313-darwin.so +0 -0
- a_sync/asyncio/create_task.pyx +7 -2
- a_sync/asyncio/gather.cpython-313-darwin.so +0 -0
- a_sync/asyncio/igather.c +1039 -1389
- a_sync/asyncio/igather.cpython-313-darwin.so +0 -0
- a_sync/asyncio/igather.pyx +19 -12
- a_sync/asyncio/sleep.cpython-313-darwin.so +0 -0
- a_sync/debugging.cpython-313-darwin.so +0 -0
- a_sync/exceptions.cpython-313-darwin.so +0 -0
- a_sync/functools.cpython-313-darwin.so +0 -0
- a_sync/iter.cpython-313-darwin.so +0 -0
- a_sync/primitives/_debug.cpython-313-darwin.so +0 -0
- a_sync/primitives/_loggable.cpython-313-darwin.so +0 -0
- a_sync/primitives/locks/counter.cpython-313-darwin.so +0 -0
- a_sync/primitives/locks/event.cpython-313-darwin.so +0 -0
- a_sync/primitives/locks/prio_semaphore.cpython-313-darwin.so +0 -0
- a_sync/primitives/locks/semaphore.cpython-313-darwin.so +0 -0
- a_sync/task.py +1 -1
- a_sync/utils/repr.cpython-313-darwin.so +0 -0
- {ez_a_sync-0.32.15.dist-info → ez_a_sync-0.32.17.dist-info}/METADATA +1 -1
- {ez_a_sync-0.32.15.dist-info → ez_a_sync-0.32.17.dist-info}/RECORD +53 -53
- {ez_a_sync-0.32.15.dist-info → ez_a_sync-0.32.17.dist-info}/WHEEL +0 -0
- {ez_a_sync-0.32.15.dist-info → ez_a_sync-0.32.17.dist-info}/licenses/LICENSE.txt +0 -0
- {ez_a_sync-0.32.15.dist-info → ez_a_sync-0.32.17.dist-info}/top_level.txt +0 -0
a_sync/asyncio/create_task.c
CHANGED
|
@@ -1235,8 +1235,6 @@ static CYTHON_INLINE float __PYX_NAN() {
|
|
|
1235
1235
|
#define __PYX_HAVE__a_sync__asyncio__create_task
|
|
1236
1236
|
#define __PYX_HAVE_API__a_sync__asyncio__create_task
|
|
1237
1237
|
/* Early includes */
|
|
1238
|
-
#include <string.h>
|
|
1239
|
-
#include <stdio.h>
|
|
1240
1238
|
#include <stddef.h>
|
|
1241
1239
|
#ifdef _OPENMP
|
|
1242
1240
|
#include <omp.h>
|
|
@@ -1488,7 +1486,6 @@ static const char *__pyx_filename;
|
|
|
1488
1486
|
static const char *__pyx_f[] = {
|
|
1489
1487
|
"a_sync/asyncio/create_task.pyx",
|
|
1490
1488
|
"<stringsource>",
|
|
1491
|
-
"type.pxd",
|
|
1492
1489
|
};
|
|
1493
1490
|
/* #### Code section: utility_code_proto_before_types ### */
|
|
1494
1491
|
/* NoFastGil.proto */
|
|
@@ -1512,7 +1509,7 @@ struct __pyx_obj_6a_sync_7asyncio_11create_task___pyx_scope_struct____await;
|
|
|
1512
1509
|
struct __pyx_obj_6a_sync_7asyncio_11create_task___pyx_scope_struct_1___persisted_task_exc_wrap;
|
|
1513
1510
|
struct __pyx_obj___pyx_scope_struct____Pyx_CFunc_79ed5e__6a_sync_7asyncio_11create_task_bint__lParenobj__etc_to_py_3fut;
|
|
1514
1511
|
|
|
1515
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
1512
|
+
/* "a_sync/asyncio/create_task.pyx":152
|
|
1516
1513
|
* cdef object __await
|
|
1517
1514
|
*
|
|
1518
1515
|
* async def __await(awaitable: Awaitable[T]) -> T: # <<<<<<<<<<<<<<
|
|
@@ -1530,7 +1527,7 @@ struct __pyx_obj_6a_sync_7asyncio_11create_task___pyx_scope_struct____await {
|
|
|
1530
1527
|
};
|
|
1531
1528
|
|
|
1532
1529
|
|
|
1533
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
1530
|
+
/* "a_sync/asyncio/create_task.pyx":250
|
|
1534
1531
|
* cdef object __persisted_task_exc_wrap
|
|
1535
1532
|
*
|
|
1536
1533
|
* async def __persisted_task_exc_wrap(task: "Task[T]") -> T: # <<<<<<<<<<<<<<
|
|
@@ -2517,25 +2514,6 @@ static int __Pyx_validate_bases_tuple(const char *type_name, Py_ssize_t dictoffs
|
|
|
2517
2514
|
/* PyType_Ready.proto */
|
|
2518
2515
|
CYTHON_UNUSED static int __Pyx_PyType_Ready(PyTypeObject *t);
|
|
2519
2516
|
|
|
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
|
-
|
|
2539
2517
|
/* Import.proto */
|
|
2540
2518
|
static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level);
|
|
2541
2519
|
|
|
@@ -2685,26 +2663,17 @@ static int __Pyx_InitStrings(__Pyx_StringTabEntry *t);
|
|
|
2685
2663
|
|
|
2686
2664
|
/* #### Code section: module_declarations ### */
|
|
2687
2665
|
|
|
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
2666
|
/* Module declarations from "libc.stddef" */
|
|
2701
2667
|
|
|
2702
2668
|
/* Module declarations from "cpython.unicode" */
|
|
2703
2669
|
|
|
2670
|
+
/* Module declarations from "cpython.version" */
|
|
2671
|
+
|
|
2704
2672
|
/* Module declarations from "a_sync.asyncio.create_task" */
|
|
2705
2673
|
static PyObject *__pyx_v_6a_sync_7asyncio_11create_task_get_running_loop = 0;
|
|
2706
2674
|
static PyObject *__pyx_v_6a_sync_7asyncio_11create_task_iscoroutine = 0;
|
|
2707
2675
|
static PyObject *__pyx_v_6a_sync_7asyncio_11create_task_Future = 0;
|
|
2676
|
+
static PyObject *__pyx_v_6a_sync_7asyncio_11create_task_CancelledError = 0;
|
|
2708
2677
|
static PyObject *__pyx_v_6a_sync_7asyncio_11create_task_InvalidStateError = 0;
|
|
2709
2678
|
static PyObject *__pyx_v_6a_sync_7asyncio_11create_task_Task = 0;
|
|
2710
2679
|
static PyObject *__pyx_v_6a_sync_7asyncio_11create_task__GatheringFuture = 0;
|
|
@@ -2808,8 +2777,9 @@ static const char __pyx_k_is_coroutine[] = "_is_coroutine";
|
|
|
2808
2777
|
static const char __pyx_k_stringsource[] = "<stringsource>";
|
|
2809
2778
|
static const char __pyx_k_task_factory[] = "_task_factory";
|
|
2810
2779
|
static const char __pyx_k_asyncio_tasks[] = "asyncio.tasks";
|
|
2780
|
+
static const char __pyx_k_CancelledError[] = "CancelledError";
|
|
2811
2781
|
static const char __pyx_k_a_sync__typing[] = "a_sync._typing";
|
|
2812
|
-
static const char
|
|
2782
|
+
static const char __pyx_k_await_line_152[] = "__await (line 152)";
|
|
2813
2783
|
static const char __pyx_k_GatheringFuture[] = "_GatheringFuture";
|
|
2814
2784
|
static const char __pyx_k_get_running_loop[] = "get_running_loop";
|
|
2815
2785
|
static const char __pyx_k_source_traceback[] = "_source_traceback";
|
|
@@ -2820,7 +2790,7 @@ static const char __pyx_k_cline_in_traceback[] = "cline_in_traceback";
|
|
|
2820
2790
|
static const char __pyx_k_skip_gc_until_done[] = "skip_gc_until_done";
|
|
2821
2791
|
static const char __pyx_k_smart_task_factory[] = "smart_task_factory";
|
|
2822
2792
|
static const char __pyx_k_source_traceback_2[] = "source_traceback";
|
|
2823
|
-
static const char
|
|
2793
|
+
static const char __pyx_k_create_task_line_49[] = "create_task (line 49)";
|
|
2824
2794
|
static const char __pyx_k_get_persisted_tasks[] = "_get_persisted_tasks";
|
|
2825
2795
|
static const char __pyx_k_log_destroy_pending[] = "log_destroy_pending";
|
|
2826
2796
|
static const char __pyx_k_Exception_is_not_set[] = "Exception is not set.";
|
|
@@ -2881,17 +2851,6 @@ typedef struct {
|
|
|
2881
2851
|
#if CYTHON_USE_MODULE_STATE
|
|
2882
2852
|
#endif
|
|
2883
2853
|
#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
|
|
2895
2854
|
PyObject *__pyx_type_6a_sync_7asyncio_11create_task___pyx_scope_struct____await;
|
|
2896
2855
|
PyObject *__pyx_type_6a_sync_7asyncio_11create_task___pyx_scope_struct_1___persisted_task_exc_wrap;
|
|
2897
2856
|
PyObject *__pyx_scope_struct____Pyx_CFunc_79ed5e__6a_sync_7asyncio_11create_task_bint__lParenobj__etc_to_py_3fut;
|
|
@@ -2901,6 +2860,7 @@ typedef struct {
|
|
|
2901
2860
|
PyTypeObject *__pyx_ptype___pyx_scope_struct____Pyx_CFunc_79ed5e__6a_sync_7asyncio_11create_task_bint__lParenobj__etc_to_py_3fut;
|
|
2902
2861
|
PyObject *__pyx_n_s_Awaitable;
|
|
2903
2862
|
PyObject *__pyx_kp_s_Awaitable_T;
|
|
2863
|
+
PyObject *__pyx_n_s_CancelledError;
|
|
2904
2864
|
PyObject *__pyx_kp_u_Exception_is_not_set;
|
|
2905
2865
|
PyObject *__pyx_kp_u_Extends_func_asyncio_create_tas;
|
|
2906
2866
|
PyObject *__pyx_n_s_Future;
|
|
@@ -2935,7 +2895,7 @@ typedef struct {
|
|
|
2935
2895
|
PyObject *__pyx_n_s_asyncio_tasks;
|
|
2936
2896
|
PyObject *__pyx_n_s_await;
|
|
2937
2897
|
PyObject *__pyx_n_s_await_2;
|
|
2938
|
-
PyObject *
|
|
2898
|
+
PyObject *__pyx_kp_u_await_line_152;
|
|
2939
2899
|
PyObject *__pyx_n_s_awaitable;
|
|
2940
2900
|
PyObject *__pyx_n_s_bint;
|
|
2941
2901
|
PyObject *__pyx_n_s_call_exception_handler;
|
|
@@ -2947,7 +2907,7 @@ typedef struct {
|
|
|
2947
2907
|
PyObject *__pyx_n_s_coro;
|
|
2948
2908
|
PyObject *__pyx_n_s_create_task;
|
|
2949
2909
|
PyObject *__pyx_n_u_create_task;
|
|
2950
|
-
PyObject *
|
|
2910
|
+
PyObject *__pyx_kp_u_create_task_line_49;
|
|
2951
2911
|
PyObject *__pyx_n_s_difference_update;
|
|
2952
2912
|
PyObject *__pyx_kp_u_disable;
|
|
2953
2913
|
PyObject *__pyx_n_s_e;
|
|
@@ -3052,7 +3012,6 @@ static int __pyx_m_clear(PyObject *m) {
|
|
|
3052
3012
|
#ifdef __Pyx_FusedFunction_USED
|
|
3053
3013
|
Py_CLEAR(clear_module_state->__pyx_FusedFunctionType);
|
|
3054
3014
|
#endif
|
|
3055
|
-
Py_CLEAR(clear_module_state->__pyx_ptype_7cpython_4type_type);
|
|
3056
3015
|
Py_CLEAR(clear_module_state->__pyx_ptype_6a_sync_7asyncio_11create_task___pyx_scope_struct____await);
|
|
3057
3016
|
Py_CLEAR(clear_module_state->__pyx_type_6a_sync_7asyncio_11create_task___pyx_scope_struct____await);
|
|
3058
3017
|
Py_CLEAR(clear_module_state->__pyx_ptype_6a_sync_7asyncio_11create_task___pyx_scope_struct_1___persisted_task_exc_wrap);
|
|
@@ -3061,6 +3020,7 @@ static int __pyx_m_clear(PyObject *m) {
|
|
|
3061
3020
|
Py_CLEAR(clear_module_state->__pyx_scope_struct____Pyx_CFunc_79ed5e__6a_sync_7asyncio_11create_task_bint__lParenobj__etc_to_py_3fut);
|
|
3062
3021
|
Py_CLEAR(clear_module_state->__pyx_n_s_Awaitable);
|
|
3063
3022
|
Py_CLEAR(clear_module_state->__pyx_kp_s_Awaitable_T);
|
|
3023
|
+
Py_CLEAR(clear_module_state->__pyx_n_s_CancelledError);
|
|
3064
3024
|
Py_CLEAR(clear_module_state->__pyx_kp_u_Exception_is_not_set);
|
|
3065
3025
|
Py_CLEAR(clear_module_state->__pyx_kp_u_Extends_func_asyncio_create_tas);
|
|
3066
3026
|
Py_CLEAR(clear_module_state->__pyx_n_s_Future);
|
|
@@ -3095,7 +3055,7 @@ static int __pyx_m_clear(PyObject *m) {
|
|
|
3095
3055
|
Py_CLEAR(clear_module_state->__pyx_n_s_asyncio_tasks);
|
|
3096
3056
|
Py_CLEAR(clear_module_state->__pyx_n_s_await);
|
|
3097
3057
|
Py_CLEAR(clear_module_state->__pyx_n_s_await_2);
|
|
3098
|
-
Py_CLEAR(clear_module_state->
|
|
3058
|
+
Py_CLEAR(clear_module_state->__pyx_kp_u_await_line_152);
|
|
3099
3059
|
Py_CLEAR(clear_module_state->__pyx_n_s_awaitable);
|
|
3100
3060
|
Py_CLEAR(clear_module_state->__pyx_n_s_bint);
|
|
3101
3061
|
Py_CLEAR(clear_module_state->__pyx_n_s_call_exception_handler);
|
|
@@ -3107,7 +3067,7 @@ static int __pyx_m_clear(PyObject *m) {
|
|
|
3107
3067
|
Py_CLEAR(clear_module_state->__pyx_n_s_coro);
|
|
3108
3068
|
Py_CLEAR(clear_module_state->__pyx_n_s_create_task);
|
|
3109
3069
|
Py_CLEAR(clear_module_state->__pyx_n_u_create_task);
|
|
3110
|
-
Py_CLEAR(clear_module_state->
|
|
3070
|
+
Py_CLEAR(clear_module_state->__pyx_kp_u_create_task_line_49);
|
|
3111
3071
|
Py_CLEAR(clear_module_state->__pyx_n_s_difference_update);
|
|
3112
3072
|
Py_CLEAR(clear_module_state->__pyx_kp_u_disable);
|
|
3113
3073
|
Py_CLEAR(clear_module_state->__pyx_n_s_e);
|
|
@@ -3190,7 +3150,6 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
3190
3150
|
#ifdef __Pyx_FusedFunction_USED
|
|
3191
3151
|
Py_VISIT(traverse_module_state->__pyx_FusedFunctionType);
|
|
3192
3152
|
#endif
|
|
3193
|
-
Py_VISIT(traverse_module_state->__pyx_ptype_7cpython_4type_type);
|
|
3194
3153
|
Py_VISIT(traverse_module_state->__pyx_ptype_6a_sync_7asyncio_11create_task___pyx_scope_struct____await);
|
|
3195
3154
|
Py_VISIT(traverse_module_state->__pyx_type_6a_sync_7asyncio_11create_task___pyx_scope_struct____await);
|
|
3196
3155
|
Py_VISIT(traverse_module_state->__pyx_ptype_6a_sync_7asyncio_11create_task___pyx_scope_struct_1___persisted_task_exc_wrap);
|
|
@@ -3199,6 +3158,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
3199
3158
|
Py_VISIT(traverse_module_state->__pyx_scope_struct____Pyx_CFunc_79ed5e__6a_sync_7asyncio_11create_task_bint__lParenobj__etc_to_py_3fut);
|
|
3200
3159
|
Py_VISIT(traverse_module_state->__pyx_n_s_Awaitable);
|
|
3201
3160
|
Py_VISIT(traverse_module_state->__pyx_kp_s_Awaitable_T);
|
|
3161
|
+
Py_VISIT(traverse_module_state->__pyx_n_s_CancelledError);
|
|
3202
3162
|
Py_VISIT(traverse_module_state->__pyx_kp_u_Exception_is_not_set);
|
|
3203
3163
|
Py_VISIT(traverse_module_state->__pyx_kp_u_Extends_func_asyncio_create_tas);
|
|
3204
3164
|
Py_VISIT(traverse_module_state->__pyx_n_s_Future);
|
|
@@ -3233,7 +3193,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
3233
3193
|
Py_VISIT(traverse_module_state->__pyx_n_s_asyncio_tasks);
|
|
3234
3194
|
Py_VISIT(traverse_module_state->__pyx_n_s_await);
|
|
3235
3195
|
Py_VISIT(traverse_module_state->__pyx_n_s_await_2);
|
|
3236
|
-
Py_VISIT(traverse_module_state->
|
|
3196
|
+
Py_VISIT(traverse_module_state->__pyx_kp_u_await_line_152);
|
|
3237
3197
|
Py_VISIT(traverse_module_state->__pyx_n_s_awaitable);
|
|
3238
3198
|
Py_VISIT(traverse_module_state->__pyx_n_s_bint);
|
|
3239
3199
|
Py_VISIT(traverse_module_state->__pyx_n_s_call_exception_handler);
|
|
@@ -3245,7 +3205,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
3245
3205
|
Py_VISIT(traverse_module_state->__pyx_n_s_coro);
|
|
3246
3206
|
Py_VISIT(traverse_module_state->__pyx_n_s_create_task);
|
|
3247
3207
|
Py_VISIT(traverse_module_state->__pyx_n_u_create_task);
|
|
3248
|
-
Py_VISIT(traverse_module_state->
|
|
3208
|
+
Py_VISIT(traverse_module_state->__pyx_kp_u_create_task_line_49);
|
|
3249
3209
|
Py_VISIT(traverse_module_state->__pyx_n_s_difference_update);
|
|
3250
3210
|
Py_VISIT(traverse_module_state->__pyx_kp_u_disable);
|
|
3251
3211
|
Py_VISIT(traverse_module_state->__pyx_n_s_e);
|
|
@@ -3343,17 +3303,6 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
3343
3303
|
#if CYTHON_USE_MODULE_STATE
|
|
3344
3304
|
#endif
|
|
3345
3305
|
#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
|
|
3357
3306
|
#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
|
|
3358
3307
|
#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
|
|
3359
3308
|
#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
|
|
@@ -3363,6 +3312,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
3363
3312
|
#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
|
|
3364
3313
|
#define __pyx_n_s_Awaitable __pyx_mstate_global->__pyx_n_s_Awaitable
|
|
3365
3314
|
#define __pyx_kp_s_Awaitable_T __pyx_mstate_global->__pyx_kp_s_Awaitable_T
|
|
3315
|
+
#define __pyx_n_s_CancelledError __pyx_mstate_global->__pyx_n_s_CancelledError
|
|
3366
3316
|
#define __pyx_kp_u_Exception_is_not_set __pyx_mstate_global->__pyx_kp_u_Exception_is_not_set
|
|
3367
3317
|
#define __pyx_kp_u_Extends_func_asyncio_create_tas __pyx_mstate_global->__pyx_kp_u_Extends_func_asyncio_create_tas
|
|
3368
3318
|
#define __pyx_n_s_Future __pyx_mstate_global->__pyx_n_s_Future
|
|
@@ -3397,7 +3347,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
3397
3347
|
#define __pyx_n_s_asyncio_tasks __pyx_mstate_global->__pyx_n_s_asyncio_tasks
|
|
3398
3348
|
#define __pyx_n_s_await __pyx_mstate_global->__pyx_n_s_await
|
|
3399
3349
|
#define __pyx_n_s_await_2 __pyx_mstate_global->__pyx_n_s_await_2
|
|
3400
|
-
#define
|
|
3350
|
+
#define __pyx_kp_u_await_line_152 __pyx_mstate_global->__pyx_kp_u_await_line_152
|
|
3401
3351
|
#define __pyx_n_s_awaitable __pyx_mstate_global->__pyx_n_s_awaitable
|
|
3402
3352
|
#define __pyx_n_s_bint __pyx_mstate_global->__pyx_n_s_bint
|
|
3403
3353
|
#define __pyx_n_s_call_exception_handler __pyx_mstate_global->__pyx_n_s_call_exception_handler
|
|
@@ -3409,7 +3359,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
3409
3359
|
#define __pyx_n_s_coro __pyx_mstate_global->__pyx_n_s_coro
|
|
3410
3360
|
#define __pyx_n_s_create_task __pyx_mstate_global->__pyx_n_s_create_task
|
|
3411
3361
|
#define __pyx_n_u_create_task __pyx_mstate_global->__pyx_n_u_create_task
|
|
3412
|
-
#define
|
|
3362
|
+
#define __pyx_kp_u_create_task_line_49 __pyx_mstate_global->__pyx_kp_u_create_task_line_49
|
|
3413
3363
|
#define __pyx_n_s_difference_update __pyx_mstate_global->__pyx_n_s_difference_update
|
|
3414
3364
|
#define __pyx_kp_u_disable __pyx_mstate_global->__pyx_kp_u_disable
|
|
3415
3365
|
#define __pyx_n_s_e __pyx_mstate_global->__pyx_n_s_e
|
|
@@ -3711,7 +3661,7 @@ static PyObject *__Pyx_CFunc_79ed5e__6a_sync_7asyncio_11create_task_bint__lParen
|
|
|
3711
3661
|
return __pyx_r;
|
|
3712
3662
|
}
|
|
3713
3663
|
|
|
3714
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
3664
|
+
/* "a_sync/asyncio/create_task.pyx":49
|
|
3715
3665
|
*
|
|
3716
3666
|
*
|
|
3717
3667
|
* def create_task( # <<<<<<<<<<<<<<
|
|
@@ -3763,7 +3713,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
|
|
|
3763
3713
|
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};
|
|
3764
3714
|
values[1] = __Pyx_Arg_NewRef_FASTCALL(((PyObject*)((PyObject*)__pyx_kp_u__3)));
|
|
3765
3715
|
|
|
3766
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
3716
|
+
/* "a_sync/asyncio/create_task.pyx":53
|
|
3767
3717
|
* *,
|
|
3768
3718
|
* name: str = "",
|
|
3769
3719
|
* skip_gc_until_done: bint = False, # <<<<<<<<<<<<<<
|
|
@@ -3772,7 +3722,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
|
|
|
3772
3722
|
*/
|
|
3773
3723
|
values[2] = __Pyx_Arg_NewRef_FASTCALL(((PyObject *)((PyObject *)Py_False)));
|
|
3774
3724
|
|
|
3775
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
3725
|
+
/* "a_sync/asyncio/create_task.pyx":54
|
|
3776
3726
|
* name: str = "",
|
|
3777
3727
|
* skip_gc_until_done: bint = False,
|
|
3778
3728
|
* log_destroy_pending: bint = True, # <<<<<<<<<<<<<<
|
|
@@ -3795,7 +3745,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
|
|
|
3795
3745
|
(void)__Pyx_Arg_NewRef_FASTCALL(values[0]);
|
|
3796
3746
|
kw_args--;
|
|
3797
3747
|
}
|
|
3798
|
-
else if (unlikely(PyErr_Occurred())) __PYX_ERR(0,
|
|
3748
|
+
else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 49, __pyx_L3_error)
|
|
3799
3749
|
else goto __pyx_L5_argtuple_error;
|
|
3800
3750
|
}
|
|
3801
3751
|
if (kw_args > 0 && likely(kw_args <= 3)) {
|
|
@@ -3803,12 +3753,12 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
|
|
|
3803
3753
|
for (index = 1; index < 4 && kw_args > 0; index++) {
|
|
3804
3754
|
PyObject* value = __Pyx_GetKwValue_FASTCALL(__pyx_kwds, __pyx_kwvalues, *__pyx_pyargnames[index]);
|
|
3805
3755
|
if (value) { values[index] = __Pyx_Arg_NewRef_FASTCALL(value); kw_args--; }
|
|
3806
|
-
else if (unlikely(PyErr_Occurred())) __PYX_ERR(0,
|
|
3756
|
+
else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 49, __pyx_L3_error)
|
|
3807
3757
|
}
|
|
3808
3758
|
}
|
|
3809
3759
|
if (unlikely(kw_args > 0)) {
|
|
3810
3760
|
const Py_ssize_t kwd_pos_args = __pyx_nargs;
|
|
3811
|
-
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "create_task") < 0)) __PYX_ERR(0,
|
|
3761
|
+
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "create_task") < 0)) __PYX_ERR(0, 49, __pyx_L3_error)
|
|
3812
3762
|
}
|
|
3813
3763
|
} else if (unlikely(__pyx_nargs != 1)) {
|
|
3814
3764
|
goto __pyx_L5_argtuple_error;
|
|
@@ -3822,7 +3772,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
|
|
|
3822
3772
|
}
|
|
3823
3773
|
goto __pyx_L6_skip;
|
|
3824
3774
|
__pyx_L5_argtuple_error:;
|
|
3825
|
-
__Pyx_RaiseArgtupleInvalid("create_task", 1, 1, 1, __pyx_nargs); __PYX_ERR(0,
|
|
3775
|
+
__Pyx_RaiseArgtupleInvalid("create_task", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 49, __pyx_L3_error)
|
|
3826
3776
|
__pyx_L6_skip:;
|
|
3827
3777
|
goto __pyx_L4_argument_unpacking_done;
|
|
3828
3778
|
__pyx_L3_error:;
|
|
@@ -3836,10 +3786,10 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
|
|
|
3836
3786
|
__Pyx_RefNannyFinishContext();
|
|
3837
3787
|
return NULL;
|
|
3838
3788
|
__pyx_L4_argument_unpacking_done:;
|
|
3839
|
-
if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_name), (&PyUnicode_Type), 0, "name", 1))) __PYX_ERR(0,
|
|
3789
|
+
if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_name), (&PyUnicode_Type), 0, "name", 1))) __PYX_ERR(0, 52, __pyx_L1_error)
|
|
3840
3790
|
__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);
|
|
3841
3791
|
|
|
3842
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
3792
|
+
/* "a_sync/asyncio/create_task.pyx":49
|
|
3843
3793
|
*
|
|
3844
3794
|
*
|
|
3845
3795
|
* def create_task( # <<<<<<<<<<<<<<
|
|
@@ -3874,26 +3824,26 @@ static PyObject *__pyx_pf_6a_sync_7asyncio_11create_task_create_task(CYTHON_UNUS
|
|
|
3874
3824
|
int __pyx_clineno = 0;
|
|
3875
3825
|
__Pyx_TraceFrameInit(__pyx_codeobj__4)
|
|
3876
3826
|
__Pyx_RefNannySetupContext("create_task", 1);
|
|
3877
|
-
__Pyx_TraceCall("create_task", __pyx_f[0],
|
|
3827
|
+
__Pyx_TraceCall("create_task", __pyx_f[0], 49, 0, __PYX_ERR(0, 49, __pyx_L1_error));
|
|
3878
3828
|
|
|
3879
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
3829
|
+
/* "a_sync/asyncio/create_task.pyx":90
|
|
3880
3830
|
* - :class:`Task`
|
|
3881
3831
|
* """
|
|
3882
3832
|
* return ccreate_task(coro, name, skip_gc_until_done, log_destroy_pending) # <<<<<<<<<<<<<<
|
|
3883
3833
|
*
|
|
3884
3834
|
* cdef object ccreate_task_simple(object coro):
|
|
3885
3835
|
*/
|
|
3886
|
-
__Pyx_TraceLine(
|
|
3836
|
+
__Pyx_TraceLine(90,0,__PYX_ERR(0, 90, __pyx_L1_error))
|
|
3887
3837
|
__Pyx_XDECREF(__pyx_r);
|
|
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,
|
|
3889
|
-
__pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_log_destroy_pending); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0,
|
|
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,
|
|
3838
|
+
__pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_skip_gc_until_done); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 90, __pyx_L1_error)
|
|
3839
|
+
__pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_log_destroy_pending); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 90, __pyx_L1_error)
|
|
3840
|
+
__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, 90, __pyx_L1_error)
|
|
3891
3841
|
__Pyx_GOTREF(__pyx_t_3);
|
|
3892
3842
|
__pyx_r = __pyx_t_3;
|
|
3893
3843
|
__pyx_t_3 = 0;
|
|
3894
3844
|
goto __pyx_L0;
|
|
3895
3845
|
|
|
3896
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
3846
|
+
/* "a_sync/asyncio/create_task.pyx":49
|
|
3897
3847
|
*
|
|
3898
3848
|
*
|
|
3899
3849
|
* def create_task( # <<<<<<<<<<<<<<
|
|
@@ -3913,7 +3863,7 @@ static PyObject *__pyx_pf_6a_sync_7asyncio_11create_task_create_task(CYTHON_UNUS
|
|
|
3913
3863
|
return __pyx_r;
|
|
3914
3864
|
}
|
|
3915
3865
|
|
|
3916
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
3866
|
+
/* "a_sync/asyncio/create_task.pyx":92
|
|
3917
3867
|
* return ccreate_task(coro, name, skip_gc_until_done, log_destroy_pending)
|
|
3918
3868
|
*
|
|
3919
3869
|
* cdef object ccreate_task_simple(object coro): # <<<<<<<<<<<<<<
|
|
@@ -3930,24 +3880,24 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task_simple(PyOb
|
|
|
3930
3880
|
const char *__pyx_filename = NULL;
|
|
3931
3881
|
int __pyx_clineno = 0;
|
|
3932
3882
|
__Pyx_RefNannySetupContext("ccreate_task_simple", 1);
|
|
3933
|
-
__Pyx_TraceCall("ccreate_task_simple", __pyx_f[0],
|
|
3883
|
+
__Pyx_TraceCall("ccreate_task_simple", __pyx_f[0], 92, 0, __PYX_ERR(0, 92, __pyx_L1_error));
|
|
3934
3884
|
|
|
3935
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
3885
|
+
/* "a_sync/asyncio/create_task.pyx":93
|
|
3936
3886
|
*
|
|
3937
3887
|
* cdef object ccreate_task_simple(object coro):
|
|
3938
3888
|
* return ccreate_task(coro, "", False, True) # <<<<<<<<<<<<<<
|
|
3939
3889
|
*
|
|
3940
3890
|
* cdef object ccreate_task(object coro, str name, bint skip_gc_until_done, bint log_destroy_pending):
|
|
3941
3891
|
*/
|
|
3942
|
-
__Pyx_TraceLine(
|
|
3892
|
+
__Pyx_TraceLine(93,0,__PYX_ERR(0, 93, __pyx_L1_error))
|
|
3943
3893
|
__Pyx_XDECREF(__pyx_r);
|
|
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,
|
|
3894
|
+
__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, 93, __pyx_L1_error)
|
|
3945
3895
|
__Pyx_GOTREF(__pyx_t_1);
|
|
3946
3896
|
__pyx_r = __pyx_t_1;
|
|
3947
3897
|
__pyx_t_1 = 0;
|
|
3948
3898
|
goto __pyx_L0;
|
|
3949
3899
|
|
|
3950
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
3900
|
+
/* "a_sync/asyncio/create_task.pyx":92
|
|
3951
3901
|
* return ccreate_task(coro, name, skip_gc_until_done, log_destroy_pending)
|
|
3952
3902
|
*
|
|
3953
3903
|
* cdef object ccreate_task_simple(object coro): # <<<<<<<<<<<<<<
|
|
@@ -3967,7 +3917,7 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task_simple(PyOb
|
|
|
3967
3917
|
return __pyx_r;
|
|
3968
3918
|
}
|
|
3969
3919
|
|
|
3970
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
3920
|
+
/* "a_sync/asyncio/create_task.pyx":95
|
|
3971
3921
|
* return ccreate_task(coro, "", False, True)
|
|
3972
3922
|
*
|
|
3973
3923
|
* cdef object ccreate_task(object coro, str name, bint skip_gc_until_done, bint log_destroy_pending): # <<<<<<<<<<<<<<
|
|
@@ -3994,17 +3944,17 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task(PyObject *_
|
|
|
3994
3944
|
const char *__pyx_filename = NULL;
|
|
3995
3945
|
int __pyx_clineno = 0;
|
|
3996
3946
|
__Pyx_RefNannySetupContext("ccreate_task", 0);
|
|
3997
|
-
__Pyx_TraceCall("ccreate_task", __pyx_f[0],
|
|
3947
|
+
__Pyx_TraceCall("ccreate_task", __pyx_f[0], 95, 0, __PYX_ERR(0, 95, __pyx_L1_error));
|
|
3998
3948
|
__Pyx_INCREF(__pyx_v_coro);
|
|
3999
3949
|
|
|
4000
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
3950
|
+
/* "a_sync/asyncio/create_task.pyx":96
|
|
4001
3951
|
*
|
|
4002
3952
|
* cdef object ccreate_task(object coro, str name, bint skip_gc_until_done, bint log_destroy_pending):
|
|
4003
3953
|
* cdef object loop = get_running_loop() # <<<<<<<<<<<<<<
|
|
4004
3954
|
* cdef object task_factory = loop._task_factory
|
|
4005
3955
|
* cdef object task, persisted
|
|
4006
3956
|
*/
|
|
4007
|
-
__Pyx_TraceLine(
|
|
3957
|
+
__Pyx_TraceLine(96,0,__PYX_ERR(0, 96, __pyx_L1_error))
|
|
4008
3958
|
__Pyx_INCREF(__pyx_v_6a_sync_7asyncio_11create_task_get_running_loop);
|
|
4009
3959
|
__pyx_t_2 = __pyx_v_6a_sync_7asyncio_11create_task_get_running_loop; __pyx_t_3 = NULL;
|
|
4010
3960
|
__pyx_t_4 = 0;
|
|
@@ -4024,34 +3974,34 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task(PyObject *_
|
|
|
4024
3974
|
PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
|
|
4025
3975
|
__pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 0+__pyx_t_4);
|
|
4026
3976
|
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
4027
|
-
if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
3977
|
+
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 96, __pyx_L1_error)
|
|
4028
3978
|
__Pyx_GOTREF(__pyx_t_1);
|
|
4029
3979
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
4030
3980
|
}
|
|
4031
3981
|
__pyx_v_loop = __pyx_t_1;
|
|
4032
3982
|
__pyx_t_1 = 0;
|
|
4033
3983
|
|
|
4034
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
3984
|
+
/* "a_sync/asyncio/create_task.pyx":97
|
|
4035
3985
|
* cdef object ccreate_task(object coro, str name, bint skip_gc_until_done, bint log_destroy_pending):
|
|
4036
3986
|
* cdef object loop = get_running_loop()
|
|
4037
3987
|
* cdef object task_factory = loop._task_factory # <<<<<<<<<<<<<<
|
|
4038
3988
|
* cdef object task, persisted
|
|
4039
3989
|
*
|
|
4040
3990
|
*/
|
|
4041
|
-
__Pyx_TraceLine(
|
|
4042
|
-
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_loop, __pyx_n_s_task_factory); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
3991
|
+
__Pyx_TraceLine(97,0,__PYX_ERR(0, 97, __pyx_L1_error))
|
|
3992
|
+
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_loop, __pyx_n_s_task_factory); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 97, __pyx_L1_error)
|
|
4043
3993
|
__Pyx_GOTREF(__pyx_t_1);
|
|
4044
3994
|
__pyx_v_task_factory = __pyx_t_1;
|
|
4045
3995
|
__pyx_t_1 = 0;
|
|
4046
3996
|
|
|
4047
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
3997
|
+
/* "a_sync/asyncio/create_task.pyx":100
|
|
4048
3998
|
* cdef object task, persisted
|
|
4049
3999
|
*
|
|
4050
4000
|
* if not iscoroutine(coro): # <<<<<<<<<<<<<<
|
|
4051
4001
|
* coro = __await(coro)
|
|
4052
4002
|
*
|
|
4053
4003
|
*/
|
|
4054
|
-
__Pyx_TraceLine(
|
|
4004
|
+
__Pyx_TraceLine(100,0,__PYX_ERR(0, 100, __pyx_L1_error))
|
|
4055
4005
|
__Pyx_INCREF(__pyx_v_6a_sync_7asyncio_11create_task_iscoroutine);
|
|
4056
4006
|
__pyx_t_2 = __pyx_v_6a_sync_7asyncio_11create_task_iscoroutine; __pyx_t_3 = NULL;
|
|
4057
4007
|
__pyx_t_4 = 0;
|
|
@@ -4071,23 +4021,23 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task(PyObject *_
|
|
|
4071
4021
|
PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_coro};
|
|
4072
4022
|
__pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 1+__pyx_t_4);
|
|
4073
4023
|
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
4074
|
-
if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
4024
|
+
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 100, __pyx_L1_error)
|
|
4075
4025
|
__Pyx_GOTREF(__pyx_t_1);
|
|
4076
4026
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
4077
4027
|
}
|
|
4078
|
-
__pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0,
|
|
4028
|
+
__pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 100, __pyx_L1_error)
|
|
4079
4029
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
4080
4030
|
__pyx_t_6 = (!__pyx_t_5);
|
|
4081
4031
|
if (__pyx_t_6) {
|
|
4082
4032
|
|
|
4083
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4033
|
+
/* "a_sync/asyncio/create_task.pyx":101
|
|
4084
4034
|
*
|
|
4085
4035
|
* if not iscoroutine(coro):
|
|
4086
4036
|
* coro = __await(coro) # <<<<<<<<<<<<<<
|
|
4087
4037
|
*
|
|
4088
4038
|
* if task_factory is None:
|
|
4089
4039
|
*/
|
|
4090
|
-
__Pyx_TraceLine(
|
|
4040
|
+
__Pyx_TraceLine(101,0,__PYX_ERR(0, 101, __pyx_L1_error))
|
|
4091
4041
|
__Pyx_INCREF(__pyx_v_6a_sync_7asyncio_11create_task___await);
|
|
4092
4042
|
__pyx_t_2 = __pyx_v_6a_sync_7asyncio_11create_task___await; __pyx_t_3 = NULL;
|
|
4093
4043
|
__pyx_t_4 = 0;
|
|
@@ -4107,14 +4057,14 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task(PyObject *_
|
|
|
4107
4057
|
PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_coro};
|
|
4108
4058
|
__pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 1+__pyx_t_4);
|
|
4109
4059
|
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
4110
|
-
if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
4060
|
+
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 101, __pyx_L1_error)
|
|
4111
4061
|
__Pyx_GOTREF(__pyx_t_1);
|
|
4112
4062
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
4113
4063
|
}
|
|
4114
4064
|
__Pyx_DECREF_SET(__pyx_v_coro, __pyx_t_1);
|
|
4115
4065
|
__pyx_t_1 = 0;
|
|
4116
4066
|
|
|
4117
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4067
|
+
/* "a_sync/asyncio/create_task.pyx":100
|
|
4118
4068
|
* cdef object task, persisted
|
|
4119
4069
|
*
|
|
4120
4070
|
* if not iscoroutine(coro): # <<<<<<<<<<<<<<
|
|
@@ -4123,69 +4073,69 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task(PyObject *_
|
|
|
4123
4073
|
*/
|
|
4124
4074
|
}
|
|
4125
4075
|
|
|
4126
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4076
|
+
/* "a_sync/asyncio/create_task.pyx":103
|
|
4127
4077
|
* coro = __await(coro)
|
|
4128
4078
|
*
|
|
4129
4079
|
* if task_factory is None: # <<<<<<<<<<<<<<
|
|
4130
4080
|
* task = Task(coro, loop=loop, name=name)
|
|
4131
4081
|
* if task._source_traceback:
|
|
4132
4082
|
*/
|
|
4133
|
-
__Pyx_TraceLine(
|
|
4083
|
+
__Pyx_TraceLine(103,0,__PYX_ERR(0, 103, __pyx_L1_error))
|
|
4134
4084
|
__pyx_t_6 = (__pyx_v_task_factory == Py_None);
|
|
4135
4085
|
if (__pyx_t_6) {
|
|
4136
4086
|
|
|
4137
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4087
|
+
/* "a_sync/asyncio/create_task.pyx":104
|
|
4138
4088
|
*
|
|
4139
4089
|
* if task_factory is None:
|
|
4140
4090
|
* task = Task(coro, loop=loop, name=name) # <<<<<<<<<<<<<<
|
|
4141
4091
|
* if task._source_traceback:
|
|
4142
4092
|
* del task._source_traceback[-1]
|
|
4143
4093
|
*/
|
|
4144
|
-
__Pyx_TraceLine(
|
|
4145
|
-
__pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
4094
|
+
__Pyx_TraceLine(104,0,__PYX_ERR(0, 104, __pyx_L1_error))
|
|
4095
|
+
__pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 104, __pyx_L1_error)
|
|
4146
4096
|
__Pyx_GOTREF(__pyx_t_1);
|
|
4147
4097
|
__Pyx_INCREF(__pyx_v_coro);
|
|
4148
4098
|
__Pyx_GIVEREF(__pyx_v_coro);
|
|
4149
|
-
if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_coro)) __PYX_ERR(0,
|
|
4150
|
-
__pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
4099
|
+
if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_coro)) __PYX_ERR(0, 104, __pyx_L1_error);
|
|
4100
|
+
__pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 104, __pyx_L1_error)
|
|
4151
4101
|
__Pyx_GOTREF(__pyx_t_2);
|
|
4152
|
-
if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_loop, __pyx_v_loop) < 0) __PYX_ERR(0,
|
|
4153
|
-
if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_name, __pyx_v_name) < 0) __PYX_ERR(0,
|
|
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,
|
|
4102
|
+
if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_loop, __pyx_v_loop) < 0) __PYX_ERR(0, 104, __pyx_L1_error)
|
|
4103
|
+
if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_name, __pyx_v_name) < 0) __PYX_ERR(0, 104, __pyx_L1_error)
|
|
4104
|
+
__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, 104, __pyx_L1_error)
|
|
4155
4105
|
__Pyx_GOTREF(__pyx_t_3);
|
|
4156
4106
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
4157
4107
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
4158
4108
|
__pyx_v_task = __pyx_t_3;
|
|
4159
4109
|
__pyx_t_3 = 0;
|
|
4160
4110
|
|
|
4161
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4111
|
+
/* "a_sync/asyncio/create_task.pyx":105
|
|
4162
4112
|
* if task_factory is None:
|
|
4163
4113
|
* task = Task(coro, loop=loop, name=name)
|
|
4164
4114
|
* if task._source_traceback: # <<<<<<<<<<<<<<
|
|
4165
4115
|
* del task._source_traceback[-1]
|
|
4166
4116
|
* elif task_factory is smart_task_factory:
|
|
4167
4117
|
*/
|
|
4168
|
-
__Pyx_TraceLine(
|
|
4169
|
-
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_task, __pyx_n_s_source_traceback); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
4118
|
+
__Pyx_TraceLine(105,0,__PYX_ERR(0, 105, __pyx_L1_error))
|
|
4119
|
+
__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)
|
|
4170
4120
|
__Pyx_GOTREF(__pyx_t_3);
|
|
4171
|
-
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0,
|
|
4121
|
+
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 105, __pyx_L1_error)
|
|
4172
4122
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
4173
4123
|
if (__pyx_t_6) {
|
|
4174
4124
|
|
|
4175
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4125
|
+
/* "a_sync/asyncio/create_task.pyx":106
|
|
4176
4126
|
* task = Task(coro, loop=loop, name=name)
|
|
4177
4127
|
* if task._source_traceback:
|
|
4178
4128
|
* del task._source_traceback[-1] # <<<<<<<<<<<<<<
|
|
4179
4129
|
* elif task_factory is smart_task_factory:
|
|
4180
4130
|
* task = SmartTask(coro, loop=loop, name=name)
|
|
4181
4131
|
*/
|
|
4182
|
-
__Pyx_TraceLine(
|
|
4183
|
-
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_task, __pyx_n_s_source_traceback); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
4132
|
+
__Pyx_TraceLine(106,0,__PYX_ERR(0, 106, __pyx_L1_error))
|
|
4133
|
+
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_task, __pyx_n_s_source_traceback); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 106, __pyx_L1_error)
|
|
4184
4134
|
__Pyx_GOTREF(__pyx_t_3);
|
|
4185
|
-
if (unlikely((__Pyx_DelItemInt(__pyx_t_3, -1L, long, 1, __Pyx_PyInt_From_long, 0, 1, 1) < 0))) __PYX_ERR(0,
|
|
4135
|
+
if (unlikely((__Pyx_DelItemInt(__pyx_t_3, -1L, long, 1, __Pyx_PyInt_From_long, 0, 1, 1) < 0))) __PYX_ERR(0, 106, __pyx_L1_error)
|
|
4186
4136
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
4187
4137
|
|
|
4188
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4138
|
+
/* "a_sync/asyncio/create_task.pyx":105
|
|
4189
4139
|
* if task_factory is None:
|
|
4190
4140
|
* task = Task(coro, loop=loop, name=name)
|
|
4191
4141
|
* if task._source_traceback: # <<<<<<<<<<<<<<
|
|
@@ -4194,7 +4144,7 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task(PyObject *_
|
|
|
4194
4144
|
*/
|
|
4195
4145
|
}
|
|
4196
4146
|
|
|
4197
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4147
|
+
/* "a_sync/asyncio/create_task.pyx":103
|
|
4198
4148
|
* coro = __await(coro)
|
|
4199
4149
|
*
|
|
4200
4150
|
* if task_factory is None: # <<<<<<<<<<<<<<
|
|
@@ -4204,69 +4154,69 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task(PyObject *_
|
|
|
4204
4154
|
goto __pyx_L4;
|
|
4205
4155
|
}
|
|
4206
4156
|
|
|
4207
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4157
|
+
/* "a_sync/asyncio/create_task.pyx":107
|
|
4208
4158
|
* if task._source_traceback:
|
|
4209
4159
|
* del task._source_traceback[-1]
|
|
4210
4160
|
* elif task_factory is smart_task_factory: # <<<<<<<<<<<<<<
|
|
4211
4161
|
* task = SmartTask(coro, loop=loop, name=name)
|
|
4212
4162
|
* if task._source_traceback:
|
|
4213
4163
|
*/
|
|
4214
|
-
__Pyx_TraceLine(
|
|
4164
|
+
__Pyx_TraceLine(107,0,__PYX_ERR(0, 107, __pyx_L1_error))
|
|
4215
4165
|
__pyx_t_6 = (__pyx_v_task_factory == __pyx_v_6a_sync_7asyncio_11create_task_smart_task_factory);
|
|
4216
4166
|
if (__pyx_t_6) {
|
|
4217
4167
|
|
|
4218
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4168
|
+
/* "a_sync/asyncio/create_task.pyx":108
|
|
4219
4169
|
* del task._source_traceback[-1]
|
|
4220
4170
|
* elif task_factory is smart_task_factory:
|
|
4221
4171
|
* task = SmartTask(coro, loop=loop, name=name) # <<<<<<<<<<<<<<
|
|
4222
4172
|
* if task._source_traceback:
|
|
4223
4173
|
* del task._source_traceback[-1]
|
|
4224
4174
|
*/
|
|
4225
|
-
__Pyx_TraceLine(
|
|
4226
|
-
__pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
4175
|
+
__Pyx_TraceLine(108,0,__PYX_ERR(0, 108, __pyx_L1_error))
|
|
4176
|
+
__pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 108, __pyx_L1_error)
|
|
4227
4177
|
__Pyx_GOTREF(__pyx_t_3);
|
|
4228
4178
|
__Pyx_INCREF(__pyx_v_coro);
|
|
4229
4179
|
__Pyx_GIVEREF(__pyx_v_coro);
|
|
4230
|
-
if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_coro)) __PYX_ERR(0,
|
|
4231
|
-
__pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
4180
|
+
if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_coro)) __PYX_ERR(0, 108, __pyx_L1_error);
|
|
4181
|
+
__pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 108, __pyx_L1_error)
|
|
4232
4182
|
__Pyx_GOTREF(__pyx_t_2);
|
|
4233
|
-
if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_loop, __pyx_v_loop) < 0) __PYX_ERR(0,
|
|
4234
|
-
if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_name, __pyx_v_name) < 0) __PYX_ERR(0,
|
|
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,
|
|
4183
|
+
if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_loop, __pyx_v_loop) < 0) __PYX_ERR(0, 108, __pyx_L1_error)
|
|
4184
|
+
if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_name, __pyx_v_name) < 0) __PYX_ERR(0, 108, __pyx_L1_error)
|
|
4185
|
+
__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, 108, __pyx_L1_error)
|
|
4236
4186
|
__Pyx_GOTREF(__pyx_t_1);
|
|
4237
4187
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
4238
4188
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
4239
4189
|
__pyx_v_task = __pyx_t_1;
|
|
4240
4190
|
__pyx_t_1 = 0;
|
|
4241
4191
|
|
|
4242
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4192
|
+
/* "a_sync/asyncio/create_task.pyx":109
|
|
4243
4193
|
* elif task_factory is smart_task_factory:
|
|
4244
4194
|
* task = SmartTask(coro, loop=loop, name=name)
|
|
4245
4195
|
* if task._source_traceback: # <<<<<<<<<<<<<<
|
|
4246
4196
|
* del task._source_traceback[-1]
|
|
4247
4197
|
* else:
|
|
4248
4198
|
*/
|
|
4249
|
-
__Pyx_TraceLine(
|
|
4250
|
-
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_task, __pyx_n_s_source_traceback); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
4199
|
+
__Pyx_TraceLine(109,0,__PYX_ERR(0, 109, __pyx_L1_error))
|
|
4200
|
+
__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)
|
|
4251
4201
|
__Pyx_GOTREF(__pyx_t_1);
|
|
4252
|
-
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0,
|
|
4202
|
+
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 109, __pyx_L1_error)
|
|
4253
4203
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
4254
4204
|
if (__pyx_t_6) {
|
|
4255
4205
|
|
|
4256
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4206
|
+
/* "a_sync/asyncio/create_task.pyx":110
|
|
4257
4207
|
* task = SmartTask(coro, loop=loop, name=name)
|
|
4258
4208
|
* if task._source_traceback:
|
|
4259
4209
|
* del task._source_traceback[-1] # <<<<<<<<<<<<<<
|
|
4260
4210
|
* else:
|
|
4261
4211
|
* task = task_factory(loop, coro)
|
|
4262
4212
|
*/
|
|
4263
|
-
__Pyx_TraceLine(
|
|
4264
|
-
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_task, __pyx_n_s_source_traceback); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
4213
|
+
__Pyx_TraceLine(110,0,__PYX_ERR(0, 110, __pyx_L1_error))
|
|
4214
|
+
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_task, __pyx_n_s_source_traceback); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 110, __pyx_L1_error)
|
|
4265
4215
|
__Pyx_GOTREF(__pyx_t_1);
|
|
4266
|
-
if (unlikely((__Pyx_DelItemInt(__pyx_t_1, -1L, long, 1, __Pyx_PyInt_From_long, 0, 1, 1) < 0))) __PYX_ERR(0,
|
|
4216
|
+
if (unlikely((__Pyx_DelItemInt(__pyx_t_1, -1L, long, 1, __Pyx_PyInt_From_long, 0, 1, 1) < 0))) __PYX_ERR(0, 110, __pyx_L1_error)
|
|
4267
4217
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
4268
4218
|
|
|
4269
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4219
|
+
/* "a_sync/asyncio/create_task.pyx":109
|
|
4270
4220
|
* elif task_factory is smart_task_factory:
|
|
4271
4221
|
* task = SmartTask(coro, loop=loop, name=name)
|
|
4272
4222
|
* if task._source_traceback: # <<<<<<<<<<<<<<
|
|
@@ -4275,7 +4225,7 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task(PyObject *_
|
|
|
4275
4225
|
*/
|
|
4276
4226
|
}
|
|
4277
4227
|
|
|
4278
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4228
|
+
/* "a_sync/asyncio/create_task.pyx":107
|
|
4279
4229
|
* if task._source_traceback:
|
|
4280
4230
|
* del task._source_traceback[-1]
|
|
4281
4231
|
* elif task_factory is smart_task_factory: # <<<<<<<<<<<<<<
|
|
@@ -4285,14 +4235,14 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task(PyObject *_
|
|
|
4285
4235
|
goto __pyx_L4;
|
|
4286
4236
|
}
|
|
4287
4237
|
|
|
4288
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4238
|
+
/* "a_sync/asyncio/create_task.pyx":112
|
|
4289
4239
|
* del task._source_traceback[-1]
|
|
4290
4240
|
* else:
|
|
4291
4241
|
* task = task_factory(loop, coro) # <<<<<<<<<<<<<<
|
|
4292
4242
|
* if name:
|
|
4293
4243
|
* __set_task_name(task, name)
|
|
4294
4244
|
*/
|
|
4295
|
-
__Pyx_TraceLine(
|
|
4245
|
+
__Pyx_TraceLine(112,0,__PYX_ERR(0, 112, __pyx_L1_error))
|
|
4296
4246
|
/*else*/ {
|
|
4297
4247
|
__Pyx_INCREF(__pyx_v_task_factory);
|
|
4298
4248
|
__pyx_t_2 = __pyx_v_task_factory; __pyx_t_3 = NULL;
|
|
@@ -4313,35 +4263,35 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task(PyObject *_
|
|
|
4313
4263
|
PyObject *__pyx_callargs[3] = {__pyx_t_3, __pyx_v_loop, __pyx_v_coro};
|
|
4314
4264
|
__pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 2+__pyx_t_4);
|
|
4315
4265
|
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
4316
|
-
if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
4266
|
+
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 112, __pyx_L1_error)
|
|
4317
4267
|
__Pyx_GOTREF(__pyx_t_1);
|
|
4318
4268
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
4319
4269
|
}
|
|
4320
4270
|
__pyx_v_task = __pyx_t_1;
|
|
4321
4271
|
__pyx_t_1 = 0;
|
|
4322
4272
|
|
|
4323
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4273
|
+
/* "a_sync/asyncio/create_task.pyx":113
|
|
4324
4274
|
* else:
|
|
4325
4275
|
* task = task_factory(loop, coro)
|
|
4326
4276
|
* if name: # <<<<<<<<<<<<<<
|
|
4327
4277
|
* __set_task_name(task, name)
|
|
4328
4278
|
*
|
|
4329
4279
|
*/
|
|
4330
|
-
__Pyx_TraceLine(
|
|
4280
|
+
__Pyx_TraceLine(113,0,__PYX_ERR(0, 113, __pyx_L1_error))
|
|
4331
4281
|
__pyx_t_6 = (__pyx_v_name != Py_None)&&(__Pyx_PyUnicode_IS_TRUE(__pyx_v_name) != 0);
|
|
4332
4282
|
if (__pyx_t_6) {
|
|
4333
4283
|
|
|
4334
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4284
|
+
/* "a_sync/asyncio/create_task.pyx":114
|
|
4335
4285
|
* task = task_factory(loop, coro)
|
|
4336
4286
|
* if name:
|
|
4337
4287
|
* __set_task_name(task, name) # <<<<<<<<<<<<<<
|
|
4338
4288
|
*
|
|
4339
4289
|
* if skip_gc_until_done:
|
|
4340
4290
|
*/
|
|
4341
|
-
__Pyx_TraceLine(
|
|
4342
|
-
__pyx_f_6a_sync_7asyncio_11create_task___set_task_name(__pyx_v_task, __pyx_v_name); if (unlikely(PyErr_Occurred())) __PYX_ERR(0,
|
|
4291
|
+
__Pyx_TraceLine(114,0,__PYX_ERR(0, 114, __pyx_L1_error))
|
|
4292
|
+
__pyx_f_6a_sync_7asyncio_11create_task___set_task_name(__pyx_v_task, __pyx_v_name); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 114, __pyx_L1_error)
|
|
4343
4293
|
|
|
4344
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4294
|
+
/* "a_sync/asyncio/create_task.pyx":113
|
|
4345
4295
|
* else:
|
|
4346
4296
|
* task = task_factory(loop, coro)
|
|
4347
4297
|
* if name: # <<<<<<<<<<<<<<
|
|
@@ -4352,24 +4302,24 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task(PyObject *_
|
|
|
4352
4302
|
}
|
|
4353
4303
|
__pyx_L4:;
|
|
4354
4304
|
|
|
4355
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4305
|
+
/* "a_sync/asyncio/create_task.pyx":116
|
|
4356
4306
|
* __set_task_name(task, name)
|
|
4357
4307
|
*
|
|
4358
4308
|
* if skip_gc_until_done: # <<<<<<<<<<<<<<
|
|
4359
4309
|
* persisted = __persisted_task_exc_wrap(task)
|
|
4360
4310
|
*
|
|
4361
4311
|
*/
|
|
4362
|
-
__Pyx_TraceLine(
|
|
4312
|
+
__Pyx_TraceLine(116,0,__PYX_ERR(0, 116, __pyx_L1_error))
|
|
4363
4313
|
if (__pyx_v_skip_gc_until_done) {
|
|
4364
4314
|
|
|
4365
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4315
|
+
/* "a_sync/asyncio/create_task.pyx":117
|
|
4366
4316
|
*
|
|
4367
4317
|
* if skip_gc_until_done:
|
|
4368
4318
|
* persisted = __persisted_task_exc_wrap(task) # <<<<<<<<<<<<<<
|
|
4369
4319
|
*
|
|
4370
4320
|
* if task_factory is None:
|
|
4371
4321
|
*/
|
|
4372
|
-
__Pyx_TraceLine(
|
|
4322
|
+
__Pyx_TraceLine(117,0,__PYX_ERR(0, 117, __pyx_L1_error))
|
|
4373
4323
|
__Pyx_INCREF(__pyx_v_6a_sync_7asyncio_11create_task___persisted_task_exc_wrap);
|
|
4374
4324
|
__pyx_t_2 = __pyx_v_6a_sync_7asyncio_11create_task___persisted_task_exc_wrap; __pyx_t_3 = NULL;
|
|
4375
4325
|
__pyx_t_4 = 0;
|
|
@@ -4389,76 +4339,76 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task(PyObject *_
|
|
|
4389
4339
|
PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_v_task};
|
|
4390
4340
|
__pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 1+__pyx_t_4);
|
|
4391
4341
|
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
4392
|
-
if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
4342
|
+
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 117, __pyx_L1_error)
|
|
4393
4343
|
__Pyx_GOTREF(__pyx_t_1);
|
|
4394
4344
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
4395
4345
|
}
|
|
4396
4346
|
__pyx_v_persisted = __pyx_t_1;
|
|
4397
4347
|
__pyx_t_1 = 0;
|
|
4398
4348
|
|
|
4399
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4349
|
+
/* "a_sync/asyncio/create_task.pyx":119
|
|
4400
4350
|
* persisted = __persisted_task_exc_wrap(task)
|
|
4401
4351
|
*
|
|
4402
4352
|
* if task_factory is None: # <<<<<<<<<<<<<<
|
|
4403
4353
|
* persisted = Task(persisted, loop=loop, name=name)
|
|
4404
4354
|
* if persisted._source_traceback:
|
|
4405
4355
|
*/
|
|
4406
|
-
__Pyx_TraceLine(
|
|
4356
|
+
__Pyx_TraceLine(119,0,__PYX_ERR(0, 119, __pyx_L1_error))
|
|
4407
4357
|
__pyx_t_6 = (__pyx_v_task_factory == Py_None);
|
|
4408
4358
|
if (__pyx_t_6) {
|
|
4409
4359
|
|
|
4410
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4360
|
+
/* "a_sync/asyncio/create_task.pyx":120
|
|
4411
4361
|
*
|
|
4412
4362
|
* if task_factory is None:
|
|
4413
4363
|
* persisted = Task(persisted, loop=loop, name=name) # <<<<<<<<<<<<<<
|
|
4414
4364
|
* if persisted._source_traceback:
|
|
4415
4365
|
* del persisted._source_traceback[-1]
|
|
4416
4366
|
*/
|
|
4417
|
-
__Pyx_TraceLine(
|
|
4418
|
-
__pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
4367
|
+
__Pyx_TraceLine(120,0,__PYX_ERR(0, 120, __pyx_L1_error))
|
|
4368
|
+
__pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 120, __pyx_L1_error)
|
|
4419
4369
|
__Pyx_GOTREF(__pyx_t_1);
|
|
4420
4370
|
__Pyx_INCREF(__pyx_v_persisted);
|
|
4421
4371
|
__Pyx_GIVEREF(__pyx_v_persisted);
|
|
4422
|
-
if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_persisted)) __PYX_ERR(0,
|
|
4423
|
-
__pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
4372
|
+
if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_persisted)) __PYX_ERR(0, 120, __pyx_L1_error);
|
|
4373
|
+
__pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 120, __pyx_L1_error)
|
|
4424
4374
|
__Pyx_GOTREF(__pyx_t_2);
|
|
4425
|
-
if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_loop, __pyx_v_loop) < 0) __PYX_ERR(0,
|
|
4426
|
-
if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_name, __pyx_v_name) < 0) __PYX_ERR(0,
|
|
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,
|
|
4375
|
+
if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_loop, __pyx_v_loop) < 0) __PYX_ERR(0, 120, __pyx_L1_error)
|
|
4376
|
+
if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_name, __pyx_v_name) < 0) __PYX_ERR(0, 120, __pyx_L1_error)
|
|
4377
|
+
__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, 120, __pyx_L1_error)
|
|
4428
4378
|
__Pyx_GOTREF(__pyx_t_3);
|
|
4429
4379
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
4430
4380
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
4431
4381
|
__Pyx_DECREF_SET(__pyx_v_persisted, __pyx_t_3);
|
|
4432
4382
|
__pyx_t_3 = 0;
|
|
4433
4383
|
|
|
4434
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4384
|
+
/* "a_sync/asyncio/create_task.pyx":121
|
|
4435
4385
|
* if task_factory is None:
|
|
4436
4386
|
* persisted = Task(persisted, loop=loop, name=name)
|
|
4437
4387
|
* if persisted._source_traceback: # <<<<<<<<<<<<<<
|
|
4438
4388
|
* del persisted._source_traceback[-1]
|
|
4439
4389
|
* elif task_factory is smart_task_factory:
|
|
4440
4390
|
*/
|
|
4441
|
-
__Pyx_TraceLine(
|
|
4442
|
-
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_persisted, __pyx_n_s_source_traceback); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
4391
|
+
__Pyx_TraceLine(121,0,__PYX_ERR(0, 121, __pyx_L1_error))
|
|
4392
|
+
__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)
|
|
4443
4393
|
__Pyx_GOTREF(__pyx_t_3);
|
|
4444
|
-
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0,
|
|
4394
|
+
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 121, __pyx_L1_error)
|
|
4445
4395
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
4446
4396
|
if (__pyx_t_6) {
|
|
4447
4397
|
|
|
4448
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4398
|
+
/* "a_sync/asyncio/create_task.pyx":122
|
|
4449
4399
|
* persisted = Task(persisted, loop=loop, name=name)
|
|
4450
4400
|
* if persisted._source_traceback:
|
|
4451
4401
|
* del persisted._source_traceback[-1] # <<<<<<<<<<<<<<
|
|
4452
4402
|
* elif task_factory is smart_task_factory:
|
|
4453
4403
|
* persisted = SmartTask(persisted, loop=loop, name=name)
|
|
4454
4404
|
*/
|
|
4455
|
-
__Pyx_TraceLine(
|
|
4456
|
-
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_persisted, __pyx_n_s_source_traceback); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
4405
|
+
__Pyx_TraceLine(122,0,__PYX_ERR(0, 122, __pyx_L1_error))
|
|
4406
|
+
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_persisted, __pyx_n_s_source_traceback); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 122, __pyx_L1_error)
|
|
4457
4407
|
__Pyx_GOTREF(__pyx_t_3);
|
|
4458
|
-
if (unlikely((__Pyx_DelItemInt(__pyx_t_3, -1L, long, 1, __Pyx_PyInt_From_long, 0, 1, 1) < 0))) __PYX_ERR(0,
|
|
4408
|
+
if (unlikely((__Pyx_DelItemInt(__pyx_t_3, -1L, long, 1, __Pyx_PyInt_From_long, 0, 1, 1) < 0))) __PYX_ERR(0, 122, __pyx_L1_error)
|
|
4459
4409
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
4460
4410
|
|
|
4461
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4411
|
+
/* "a_sync/asyncio/create_task.pyx":121
|
|
4462
4412
|
* if task_factory is None:
|
|
4463
4413
|
* persisted = Task(persisted, loop=loop, name=name)
|
|
4464
4414
|
* if persisted._source_traceback: # <<<<<<<<<<<<<<
|
|
@@ -4467,7 +4417,7 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task(PyObject *_
|
|
|
4467
4417
|
*/
|
|
4468
4418
|
}
|
|
4469
4419
|
|
|
4470
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4420
|
+
/* "a_sync/asyncio/create_task.pyx":119
|
|
4471
4421
|
* persisted = __persisted_task_exc_wrap(task)
|
|
4472
4422
|
*
|
|
4473
4423
|
* if task_factory is None: # <<<<<<<<<<<<<<
|
|
@@ -4477,69 +4427,69 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task(PyObject *_
|
|
|
4477
4427
|
goto __pyx_L9;
|
|
4478
4428
|
}
|
|
4479
4429
|
|
|
4480
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4430
|
+
/* "a_sync/asyncio/create_task.pyx":123
|
|
4481
4431
|
* if persisted._source_traceback:
|
|
4482
4432
|
* del persisted._source_traceback[-1]
|
|
4483
4433
|
* elif task_factory is smart_task_factory: # <<<<<<<<<<<<<<
|
|
4484
4434
|
* persisted = SmartTask(persisted, loop=loop, name=name)
|
|
4485
4435
|
* if persisted._source_traceback:
|
|
4486
4436
|
*/
|
|
4487
|
-
__Pyx_TraceLine(
|
|
4437
|
+
__Pyx_TraceLine(123,0,__PYX_ERR(0, 123, __pyx_L1_error))
|
|
4488
4438
|
__pyx_t_6 = (__pyx_v_task_factory == __pyx_v_6a_sync_7asyncio_11create_task_smart_task_factory);
|
|
4489
4439
|
if (__pyx_t_6) {
|
|
4490
4440
|
|
|
4491
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4441
|
+
/* "a_sync/asyncio/create_task.pyx":124
|
|
4492
4442
|
* del persisted._source_traceback[-1]
|
|
4493
4443
|
* elif task_factory is smart_task_factory:
|
|
4494
4444
|
* persisted = SmartTask(persisted, loop=loop, name=name) # <<<<<<<<<<<<<<
|
|
4495
4445
|
* if persisted._source_traceback:
|
|
4496
4446
|
* del persisted._source_traceback[-1]
|
|
4497
4447
|
*/
|
|
4498
|
-
__Pyx_TraceLine(
|
|
4499
|
-
__pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0,
|
|
4448
|
+
__Pyx_TraceLine(124,0,__PYX_ERR(0, 124, __pyx_L1_error))
|
|
4449
|
+
__pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 124, __pyx_L1_error)
|
|
4500
4450
|
__Pyx_GOTREF(__pyx_t_3);
|
|
4501
4451
|
__Pyx_INCREF(__pyx_v_persisted);
|
|
4502
4452
|
__Pyx_GIVEREF(__pyx_v_persisted);
|
|
4503
|
-
if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_persisted)) __PYX_ERR(0,
|
|
4504
|
-
__pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
4453
|
+
if (__Pyx_PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_persisted)) __PYX_ERR(0, 124, __pyx_L1_error);
|
|
4454
|
+
__pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 124, __pyx_L1_error)
|
|
4505
4455
|
__Pyx_GOTREF(__pyx_t_2);
|
|
4506
|
-
if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_loop, __pyx_v_loop) < 0) __PYX_ERR(0,
|
|
4507
|
-
if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_name, __pyx_v_name) < 0) __PYX_ERR(0,
|
|
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,
|
|
4456
|
+
if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_loop, __pyx_v_loop) < 0) __PYX_ERR(0, 124, __pyx_L1_error)
|
|
4457
|
+
if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_name, __pyx_v_name) < 0) __PYX_ERR(0, 124, __pyx_L1_error)
|
|
4458
|
+
__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, 124, __pyx_L1_error)
|
|
4509
4459
|
__Pyx_GOTREF(__pyx_t_1);
|
|
4510
4460
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
4511
4461
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
4512
4462
|
__Pyx_DECREF_SET(__pyx_v_persisted, __pyx_t_1);
|
|
4513
4463
|
__pyx_t_1 = 0;
|
|
4514
4464
|
|
|
4515
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4465
|
+
/* "a_sync/asyncio/create_task.pyx":125
|
|
4516
4466
|
* elif task_factory is smart_task_factory:
|
|
4517
4467
|
* persisted = SmartTask(persisted, loop=loop, name=name)
|
|
4518
4468
|
* if persisted._source_traceback: # <<<<<<<<<<<<<<
|
|
4519
4469
|
* del persisted._source_traceback[-1]
|
|
4520
4470
|
* else:
|
|
4521
4471
|
*/
|
|
4522
|
-
__Pyx_TraceLine(
|
|
4523
|
-
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_persisted, __pyx_n_s_source_traceback); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
4472
|
+
__Pyx_TraceLine(125,0,__PYX_ERR(0, 125, __pyx_L1_error))
|
|
4473
|
+
__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)
|
|
4524
4474
|
__Pyx_GOTREF(__pyx_t_1);
|
|
4525
|
-
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0,
|
|
4475
|
+
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 125, __pyx_L1_error)
|
|
4526
4476
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
4527
4477
|
if (__pyx_t_6) {
|
|
4528
4478
|
|
|
4529
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4479
|
+
/* "a_sync/asyncio/create_task.pyx":126
|
|
4530
4480
|
* persisted = SmartTask(persisted, loop=loop, name=name)
|
|
4531
4481
|
* if persisted._source_traceback:
|
|
4532
4482
|
* del persisted._source_traceback[-1] # <<<<<<<<<<<<<<
|
|
4533
4483
|
* else:
|
|
4534
4484
|
* persisted = task_factory(loop, persisted)
|
|
4535
4485
|
*/
|
|
4536
|
-
__Pyx_TraceLine(
|
|
4537
|
-
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_persisted, __pyx_n_s_source_traceback); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
4486
|
+
__Pyx_TraceLine(126,0,__PYX_ERR(0, 126, __pyx_L1_error))
|
|
4487
|
+
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_persisted, __pyx_n_s_source_traceback); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 126, __pyx_L1_error)
|
|
4538
4488
|
__Pyx_GOTREF(__pyx_t_1);
|
|
4539
|
-
if (unlikely((__Pyx_DelItemInt(__pyx_t_1, -1L, long, 1, __Pyx_PyInt_From_long, 0, 1, 1) < 0))) __PYX_ERR(0,
|
|
4489
|
+
if (unlikely((__Pyx_DelItemInt(__pyx_t_1, -1L, long, 1, __Pyx_PyInt_From_long, 0, 1, 1) < 0))) __PYX_ERR(0, 126, __pyx_L1_error)
|
|
4540
4490
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
4541
4491
|
|
|
4542
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4492
|
+
/* "a_sync/asyncio/create_task.pyx":125
|
|
4543
4493
|
* elif task_factory is smart_task_factory:
|
|
4544
4494
|
* persisted = SmartTask(persisted, loop=loop, name=name)
|
|
4545
4495
|
* if persisted._source_traceback: # <<<<<<<<<<<<<<
|
|
@@ -4548,7 +4498,7 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task(PyObject *_
|
|
|
4548
4498
|
*/
|
|
4549
4499
|
}
|
|
4550
4500
|
|
|
4551
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4501
|
+
/* "a_sync/asyncio/create_task.pyx":123
|
|
4552
4502
|
* if persisted._source_traceback:
|
|
4553
4503
|
* del persisted._source_traceback[-1]
|
|
4554
4504
|
* elif task_factory is smart_task_factory: # <<<<<<<<<<<<<<
|
|
@@ -4558,14 +4508,14 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task(PyObject *_
|
|
|
4558
4508
|
goto __pyx_L9;
|
|
4559
4509
|
}
|
|
4560
4510
|
|
|
4561
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4511
|
+
/* "a_sync/asyncio/create_task.pyx":128
|
|
4562
4512
|
* del persisted._source_traceback[-1]
|
|
4563
4513
|
* else:
|
|
4564
4514
|
* persisted = task_factory(loop, persisted) # <<<<<<<<<<<<<<
|
|
4565
4515
|
* if name:
|
|
4566
4516
|
* __set_task_name(persisted, name)
|
|
4567
4517
|
*/
|
|
4568
|
-
__Pyx_TraceLine(
|
|
4518
|
+
__Pyx_TraceLine(128,0,__PYX_ERR(0, 128, __pyx_L1_error))
|
|
4569
4519
|
/*else*/ {
|
|
4570
4520
|
__Pyx_INCREF(__pyx_v_task_factory);
|
|
4571
4521
|
__pyx_t_2 = __pyx_v_task_factory; __pyx_t_3 = NULL;
|
|
@@ -4586,35 +4536,35 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task(PyObject *_
|
|
|
4586
4536
|
PyObject *__pyx_callargs[3] = {__pyx_t_3, __pyx_v_loop, __pyx_v_persisted};
|
|
4587
4537
|
__pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+1-__pyx_t_4, 2+__pyx_t_4);
|
|
4588
4538
|
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
4589
|
-
if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
4539
|
+
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 128, __pyx_L1_error)
|
|
4590
4540
|
__Pyx_GOTREF(__pyx_t_1);
|
|
4591
4541
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
4592
4542
|
}
|
|
4593
4543
|
__Pyx_DECREF_SET(__pyx_v_persisted, __pyx_t_1);
|
|
4594
4544
|
__pyx_t_1 = 0;
|
|
4595
4545
|
|
|
4596
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4546
|
+
/* "a_sync/asyncio/create_task.pyx":129
|
|
4597
4547
|
* else:
|
|
4598
4548
|
* persisted = task_factory(loop, persisted)
|
|
4599
4549
|
* if name: # <<<<<<<<<<<<<<
|
|
4600
4550
|
* __set_task_name(persisted, name)
|
|
4601
4551
|
*
|
|
4602
4552
|
*/
|
|
4603
|
-
__Pyx_TraceLine(
|
|
4553
|
+
__Pyx_TraceLine(129,0,__PYX_ERR(0, 129, __pyx_L1_error))
|
|
4604
4554
|
__pyx_t_6 = (__pyx_v_name != Py_None)&&(__Pyx_PyUnicode_IS_TRUE(__pyx_v_name) != 0);
|
|
4605
4555
|
if (__pyx_t_6) {
|
|
4606
4556
|
|
|
4607
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4557
|
+
/* "a_sync/asyncio/create_task.pyx":130
|
|
4608
4558
|
* persisted = task_factory(loop, persisted)
|
|
4609
4559
|
* if name:
|
|
4610
4560
|
* __set_task_name(persisted, name) # <<<<<<<<<<<<<<
|
|
4611
4561
|
*
|
|
4612
4562
|
* _persisted_tasks.add(persisted)
|
|
4613
4563
|
*/
|
|
4614
|
-
__Pyx_TraceLine(
|
|
4615
|
-
__pyx_f_6a_sync_7asyncio_11create_task___set_task_name(__pyx_v_persisted, __pyx_v_name); if (unlikely(PyErr_Occurred())) __PYX_ERR(0,
|
|
4564
|
+
__Pyx_TraceLine(130,0,__PYX_ERR(0, 130, __pyx_L1_error))
|
|
4565
|
+
__pyx_f_6a_sync_7asyncio_11create_task___set_task_name(__pyx_v_persisted, __pyx_v_name); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 130, __pyx_L1_error)
|
|
4616
4566
|
|
|
4617
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4567
|
+
/* "a_sync/asyncio/create_task.pyx":129
|
|
4618
4568
|
* else:
|
|
4619
4569
|
* persisted = task_factory(loop, persisted)
|
|
4620
4570
|
* if name: # <<<<<<<<<<<<<<
|
|
@@ -4625,21 +4575,21 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task(PyObject *_
|
|
|
4625
4575
|
}
|
|
4626
4576
|
__pyx_L9:;
|
|
4627
4577
|
|
|
4628
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4578
|
+
/* "a_sync/asyncio/create_task.pyx":132
|
|
4629
4579
|
* __set_task_name(persisted, name)
|
|
4630
4580
|
*
|
|
4631
4581
|
* _persisted_tasks.add(persisted) # <<<<<<<<<<<<<<
|
|
4632
4582
|
*
|
|
4633
4583
|
* if log_destroy_pending is False:
|
|
4634
4584
|
*/
|
|
4635
|
-
__Pyx_TraceLine(
|
|
4585
|
+
__Pyx_TraceLine(132,0,__PYX_ERR(0, 132, __pyx_L1_error))
|
|
4636
4586
|
if (unlikely(_persisted_tasks == Py_None)) {
|
|
4637
4587
|
PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "add");
|
|
4638
|
-
__PYX_ERR(0,
|
|
4588
|
+
__PYX_ERR(0, 132, __pyx_L1_error)
|
|
4639
4589
|
}
|
|
4640
|
-
__pyx_t_7 = PySet_Add(_persisted_tasks, __pyx_v_persisted); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(0,
|
|
4590
|
+
__pyx_t_7 = PySet_Add(_persisted_tasks, __pyx_v_persisted); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(0, 132, __pyx_L1_error)
|
|
4641
4591
|
|
|
4642
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4592
|
+
/* "a_sync/asyncio/create_task.pyx":116
|
|
4643
4593
|
* __set_task_name(task, name)
|
|
4644
4594
|
*
|
|
4645
4595
|
* if skip_gc_until_done: # <<<<<<<<<<<<<<
|
|
@@ -4648,28 +4598,28 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task(PyObject *_
|
|
|
4648
4598
|
*/
|
|
4649
4599
|
}
|
|
4650
4600
|
|
|
4651
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4601
|
+
/* "a_sync/asyncio/create_task.pyx":134
|
|
4652
4602
|
* _persisted_tasks.add(persisted)
|
|
4653
4603
|
*
|
|
4654
4604
|
* if log_destroy_pending is False: # <<<<<<<<<<<<<<
|
|
4655
4605
|
* task._log_destroy_pending = False
|
|
4656
4606
|
*
|
|
4657
4607
|
*/
|
|
4658
|
-
__Pyx_TraceLine(
|
|
4608
|
+
__Pyx_TraceLine(134,0,__PYX_ERR(0, 134, __pyx_L1_error))
|
|
4659
4609
|
__pyx_t_6 = (__pyx_v_log_destroy_pending == 0);
|
|
4660
4610
|
if (__pyx_t_6) {
|
|
4661
4611
|
|
|
4662
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4612
|
+
/* "a_sync/asyncio/create_task.pyx":135
|
|
4663
4613
|
*
|
|
4664
4614
|
* if log_destroy_pending is False:
|
|
4665
4615
|
* task._log_destroy_pending = False # <<<<<<<<<<<<<<
|
|
4666
4616
|
*
|
|
4667
4617
|
* if _persisted_tasks:
|
|
4668
4618
|
*/
|
|
4669
|
-
__Pyx_TraceLine(
|
|
4670
|
-
if (__Pyx_PyObject_SetAttrStr(__pyx_v_task, __pyx_n_s_log_destroy_pending_2, Py_False) < 0) __PYX_ERR(0,
|
|
4619
|
+
__Pyx_TraceLine(135,0,__PYX_ERR(0, 135, __pyx_L1_error))
|
|
4620
|
+
if (__Pyx_PyObject_SetAttrStr(__pyx_v_task, __pyx_n_s_log_destroy_pending_2, Py_False) < 0) __PYX_ERR(0, 135, __pyx_L1_error)
|
|
4671
4621
|
|
|
4672
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4622
|
+
/* "a_sync/asyncio/create_task.pyx":134
|
|
4673
4623
|
* _persisted_tasks.add(persisted)
|
|
4674
4624
|
*
|
|
4675
4625
|
* if log_destroy_pending is False: # <<<<<<<<<<<<<<
|
|
@@ -4678,28 +4628,28 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task(PyObject *_
|
|
|
4678
4628
|
*/
|
|
4679
4629
|
}
|
|
4680
4630
|
|
|
4681
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4631
|
+
/* "a_sync/asyncio/create_task.pyx":137
|
|
4682
4632
|
* task._log_destroy_pending = False
|
|
4683
4633
|
*
|
|
4684
4634
|
* if _persisted_tasks: # <<<<<<<<<<<<<<
|
|
4685
4635
|
* __prune_persisted_tasks()
|
|
4686
4636
|
*
|
|
4687
4637
|
*/
|
|
4688
|
-
__Pyx_TraceLine(
|
|
4638
|
+
__Pyx_TraceLine(137,0,__PYX_ERR(0, 137, __pyx_L1_error))
|
|
4689
4639
|
__pyx_t_6 = (_persisted_tasks != Py_None)&&(PySet_GET_SIZE(_persisted_tasks) != 0);
|
|
4690
4640
|
if (__pyx_t_6) {
|
|
4691
4641
|
|
|
4692
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4642
|
+
/* "a_sync/asyncio/create_task.pyx":138
|
|
4693
4643
|
*
|
|
4694
4644
|
* if _persisted_tasks:
|
|
4695
4645
|
* __prune_persisted_tasks() # <<<<<<<<<<<<<<
|
|
4696
4646
|
*
|
|
4697
4647
|
* return task
|
|
4698
4648
|
*/
|
|
4699
|
-
__Pyx_TraceLine(
|
|
4700
|
-
__pyx_f_6a_sync_7asyncio_11create_task___prune_persisted_tasks(); if (unlikely(PyErr_Occurred())) __PYX_ERR(0,
|
|
4649
|
+
__Pyx_TraceLine(138,0,__PYX_ERR(0, 138, __pyx_L1_error))
|
|
4650
|
+
__pyx_f_6a_sync_7asyncio_11create_task___prune_persisted_tasks(); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 138, __pyx_L1_error)
|
|
4701
4651
|
|
|
4702
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4652
|
+
/* "a_sync/asyncio/create_task.pyx":137
|
|
4703
4653
|
* task._log_destroy_pending = False
|
|
4704
4654
|
*
|
|
4705
4655
|
* if _persisted_tasks: # <<<<<<<<<<<<<<
|
|
@@ -4708,20 +4658,20 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task(PyObject *_
|
|
|
4708
4658
|
*/
|
|
4709
4659
|
}
|
|
4710
4660
|
|
|
4711
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4661
|
+
/* "a_sync/asyncio/create_task.pyx":140
|
|
4712
4662
|
* __prune_persisted_tasks()
|
|
4713
4663
|
*
|
|
4714
4664
|
* return task # <<<<<<<<<<<<<<
|
|
4715
4665
|
*
|
|
4716
4666
|
*
|
|
4717
4667
|
*/
|
|
4718
|
-
__Pyx_TraceLine(
|
|
4668
|
+
__Pyx_TraceLine(140,0,__PYX_ERR(0, 140, __pyx_L1_error))
|
|
4719
4669
|
__Pyx_XDECREF(__pyx_r);
|
|
4720
4670
|
__Pyx_INCREF(__pyx_v_task);
|
|
4721
4671
|
__pyx_r = __pyx_v_task;
|
|
4722
4672
|
goto __pyx_L0;
|
|
4723
4673
|
|
|
4724
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4674
|
+
/* "a_sync/asyncio/create_task.pyx":95
|
|
4725
4675
|
* return ccreate_task(coro, "", False, True)
|
|
4726
4676
|
*
|
|
4727
4677
|
* cdef object ccreate_task(object coro, str name, bint skip_gc_until_done, bint log_destroy_pending): # <<<<<<<<<<<<<<
|
|
@@ -4748,7 +4698,7 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task(PyObject *_
|
|
|
4748
4698
|
return __pyx_r;
|
|
4749
4699
|
}
|
|
4750
4700
|
|
|
4751
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4701
|
+
/* "a_sync/asyncio/create_task.pyx":143
|
|
4752
4702
|
*
|
|
4753
4703
|
*
|
|
4754
4704
|
* cdef inline void __set_task_name(object task, str name): # <<<<<<<<<<<<<<
|
|
@@ -4769,32 +4719,32 @@ static CYTHON_INLINE void __pyx_f_6a_sync_7asyncio_11create_task___set_task_name
|
|
|
4769
4719
|
const char *__pyx_filename = NULL;
|
|
4770
4720
|
int __pyx_clineno = 0;
|
|
4771
4721
|
__Pyx_RefNannySetupContext("__set_task_name", 1);
|
|
4772
|
-
__Pyx_TraceCall("__set_task_name", __pyx_f[0],
|
|
4722
|
+
__Pyx_TraceCall("__set_task_name", __pyx_f[0], 143, 0, __PYX_ERR(0, 143, __pyx_L1_error));
|
|
4773
4723
|
|
|
4774
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4724
|
+
/* "a_sync/asyncio/create_task.pyx":144
|
|
4775
4725
|
*
|
|
4776
4726
|
* cdef inline void __set_task_name(object task, str name):
|
|
4777
4727
|
* if set_name := getattr(task, "set_name", None): # <<<<<<<<<<<<<<
|
|
4778
4728
|
* set_name(name)
|
|
4779
4729
|
*
|
|
4780
4730
|
*/
|
|
4781
|
-
__Pyx_TraceLine(
|
|
4782
|
-
__pyx_t_1 = __Pyx_GetAttr3(__pyx_v_task, __pyx_n_u_set_name, Py_None); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
4731
|
+
__Pyx_TraceLine(144,0,__PYX_ERR(0, 144, __pyx_L1_error))
|
|
4732
|
+
__pyx_t_1 = __Pyx_GetAttr3(__pyx_v_task, __pyx_n_u_set_name, Py_None); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 144, __pyx_L1_error)
|
|
4783
4733
|
__Pyx_GOTREF(__pyx_t_1);
|
|
4784
4734
|
__pyx_v_set_name = __pyx_t_1;
|
|
4785
4735
|
__Pyx_INCREF(__pyx_t_1);
|
|
4786
|
-
__pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0,
|
|
4736
|
+
__pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 144, __pyx_L1_error)
|
|
4787
4737
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
4788
4738
|
if (__pyx_t_2) {
|
|
4789
4739
|
|
|
4790
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4740
|
+
/* "a_sync/asyncio/create_task.pyx":145
|
|
4791
4741
|
* cdef inline void __set_task_name(object task, str name):
|
|
4792
4742
|
* if set_name := getattr(task, "set_name", None):
|
|
4793
4743
|
* set_name(name) # <<<<<<<<<<<<<<
|
|
4794
4744
|
*
|
|
4795
4745
|
*
|
|
4796
4746
|
*/
|
|
4797
|
-
__Pyx_TraceLine(
|
|
4747
|
+
__Pyx_TraceLine(145,0,__PYX_ERR(0, 145, __pyx_L1_error))
|
|
4798
4748
|
__Pyx_INCREF(__pyx_v_set_name);
|
|
4799
4749
|
__pyx_t_3 = __pyx_v_set_name; __pyx_t_4 = NULL;
|
|
4800
4750
|
__pyx_t_5 = 0;
|
|
@@ -4814,13 +4764,13 @@ static CYTHON_INLINE void __pyx_f_6a_sync_7asyncio_11create_task___set_task_name
|
|
|
4814
4764
|
PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_v_name};
|
|
4815
4765
|
__pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_5, 1+__pyx_t_5);
|
|
4816
4766
|
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
4817
|
-
if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
4767
|
+
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 145, __pyx_L1_error)
|
|
4818
4768
|
__Pyx_GOTREF(__pyx_t_1);
|
|
4819
4769
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
4820
4770
|
}
|
|
4821
4771
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
4822
4772
|
|
|
4823
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4773
|
+
/* "a_sync/asyncio/create_task.pyx":144
|
|
4824
4774
|
*
|
|
4825
4775
|
* cdef inline void __set_task_name(object task, str name):
|
|
4826
4776
|
* if set_name := getattr(task, "set_name", None): # <<<<<<<<<<<<<<
|
|
@@ -4829,7 +4779,7 @@ static CYTHON_INLINE void __pyx_f_6a_sync_7asyncio_11create_task___set_task_name
|
|
|
4829
4779
|
*/
|
|
4830
4780
|
}
|
|
4831
4781
|
|
|
4832
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4782
|
+
/* "a_sync/asyncio/create_task.pyx":143
|
|
4833
4783
|
*
|
|
4834
4784
|
*
|
|
4835
4785
|
* cdef inline void __set_task_name(object task, str name): # <<<<<<<<<<<<<<
|
|
@@ -4851,7 +4801,7 @@ static CYTHON_INLINE void __pyx_f_6a_sync_7asyncio_11create_task___set_task_name
|
|
|
4851
4801
|
}
|
|
4852
4802
|
static PyObject *__pyx_gb_6a_sync_7asyncio_11create_task_4generator(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */
|
|
4853
4803
|
|
|
4854
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4804
|
+
/* "a_sync/asyncio/create_task.pyx":152
|
|
4855
4805
|
* cdef object __await
|
|
4856
4806
|
*
|
|
4857
4807
|
* async def __await(awaitable: Awaitable[T]) -> T: # <<<<<<<<<<<<<<
|
|
@@ -4913,12 +4863,12 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
|
|
|
4913
4863
|
(void)__Pyx_Arg_NewRef_FASTCALL(values[0]);
|
|
4914
4864
|
kw_args--;
|
|
4915
4865
|
}
|
|
4916
|
-
else if (unlikely(PyErr_Occurred())) __PYX_ERR(0,
|
|
4866
|
+
else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 152, __pyx_L3_error)
|
|
4917
4867
|
else goto __pyx_L5_argtuple_error;
|
|
4918
4868
|
}
|
|
4919
4869
|
if (unlikely(kw_args > 0)) {
|
|
4920
4870
|
const Py_ssize_t kwd_pos_args = __pyx_nargs;
|
|
4921
|
-
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__await") < 0)) __PYX_ERR(0,
|
|
4871
|
+
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__await") < 0)) __PYX_ERR(0, 152, __pyx_L3_error)
|
|
4922
4872
|
}
|
|
4923
4873
|
} else if (unlikely(__pyx_nargs != 1)) {
|
|
4924
4874
|
goto __pyx_L5_argtuple_error;
|
|
@@ -4929,7 +4879,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
|
|
|
4929
4879
|
}
|
|
4930
4880
|
goto __pyx_L6_skip;
|
|
4931
4881
|
__pyx_L5_argtuple_error:;
|
|
4932
|
-
__Pyx_RaiseArgtupleInvalid("__await", 1, 1, 1, __pyx_nargs); __PYX_ERR(0,
|
|
4882
|
+
__Pyx_RaiseArgtupleInvalid("__await", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 152, __pyx_L3_error)
|
|
4933
4883
|
__pyx_L6_skip:;
|
|
4934
4884
|
goto __pyx_L4_argument_unpacking_done;
|
|
4935
4885
|
__pyx_L3_error:;
|
|
@@ -4968,7 +4918,7 @@ static PyObject *__pyx_pf_6a_sync_7asyncio_11create_task_2__await(CYTHON_UNUSED
|
|
|
4968
4918
|
if (unlikely(!__pyx_cur_scope)) {
|
|
4969
4919
|
__pyx_cur_scope = ((struct __pyx_obj_6a_sync_7asyncio_11create_task___pyx_scope_struct____await *)Py_None);
|
|
4970
4920
|
__Pyx_INCREF(Py_None);
|
|
4971
|
-
__PYX_ERR(0,
|
|
4921
|
+
__PYX_ERR(0, 152, __pyx_L1_error)
|
|
4972
4922
|
} else {
|
|
4973
4923
|
__Pyx_GOTREF((PyObject *)__pyx_cur_scope);
|
|
4974
4924
|
}
|
|
@@ -4976,7 +4926,7 @@ static PyObject *__pyx_pf_6a_sync_7asyncio_11create_task_2__await(CYTHON_UNUSED
|
|
|
4976
4926
|
__Pyx_INCREF(__pyx_cur_scope->__pyx_v_awaitable);
|
|
4977
4927
|
__Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_awaitable);
|
|
4978
4928
|
{
|
|
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,
|
|
4929
|
+
__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, 152, __pyx_L1_error)
|
|
4980
4930
|
__Pyx_DECREF(__pyx_cur_scope);
|
|
4981
4931
|
__Pyx_RefNannyFinishContext();
|
|
4982
4932
|
return (PyObject *) gen;
|
|
@@ -5022,7 +4972,7 @@ static PyObject *__pyx_gb_6a_sync_7asyncio_11create_task_4generator(__pyx_Corout
|
|
|
5022
4972
|
__Pyx_RefNannyDeclarations
|
|
5023
4973
|
__Pyx_RefNannySetupContext("__await", 0);
|
|
5024
4974
|
__Pyx_TraceFrameInit(__pyx_codeobj__5)
|
|
5025
|
-
__Pyx_TraceCall("__await", __pyx_f[0],
|
|
4975
|
+
__Pyx_TraceCall("__await", __pyx_f[0], 152, 0, __PYX_ERR(0, 152, __pyx_L1_error));
|
|
5026
4976
|
switch (__pyx_generator->resume_label) {
|
|
5027
4977
|
case 0: goto __pyx_L3_first_run;
|
|
5028
4978
|
case 1: goto __pyx_L10_resume_from_await;
|
|
@@ -5032,16 +4982,16 @@ static PyObject *__pyx_gb_6a_sync_7asyncio_11create_task_4generator(__pyx_Corout
|
|
|
5032
4982
|
return NULL;
|
|
5033
4983
|
}
|
|
5034
4984
|
__pyx_L3_first_run:;
|
|
5035
|
-
if (unlikely(!__pyx_sent_value)) __PYX_ERR(0,
|
|
4985
|
+
if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 152, __pyx_L1_error)
|
|
5036
4986
|
|
|
5037
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
4987
|
+
/* "a_sync/asyncio/create_task.pyx":171
|
|
5038
4988
|
* - :class:`Awaitable`
|
|
5039
4989
|
* """
|
|
5040
4990
|
* try: # <<<<<<<<<<<<<<
|
|
5041
4991
|
* return await awaitable
|
|
5042
4992
|
* except RuntimeError as e:
|
|
5043
4993
|
*/
|
|
5044
|
-
__Pyx_TraceLine(
|
|
4994
|
+
__Pyx_TraceLine(171,0,__PYX_ERR(0, 171, __pyx_L1_error))
|
|
5045
4995
|
{
|
|
5046
4996
|
__Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
|
|
5047
4997
|
__Pyx_XGOTREF(__pyx_t_1);
|
|
@@ -5049,14 +4999,14 @@ static PyObject *__pyx_gb_6a_sync_7asyncio_11create_task_4generator(__pyx_Corout
|
|
|
5049
4999
|
__Pyx_XGOTREF(__pyx_t_3);
|
|
5050
5000
|
/*try:*/ {
|
|
5051
5001
|
|
|
5052
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5002
|
+
/* "a_sync/asyncio/create_task.pyx":172
|
|
5053
5003
|
* """
|
|
5054
5004
|
* try:
|
|
5055
5005
|
* return await awaitable # <<<<<<<<<<<<<<
|
|
5056
5006
|
* except RuntimeError as e:
|
|
5057
5007
|
* args = [e, awaitable]
|
|
5058
5008
|
*/
|
|
5059
|
-
__Pyx_TraceLine(
|
|
5009
|
+
__Pyx_TraceLine(172,0,__PYX_ERR(0, 172, __pyx_L4_error))
|
|
5060
5010
|
__Pyx_XDECREF(__pyx_r);
|
|
5061
5011
|
__pyx_r = __Pyx_Coroutine_Yield_From(__pyx_generator, __pyx_cur_scope->__pyx_v_awaitable);
|
|
5062
5012
|
__Pyx_XGOTREF(__pyx_r);
|
|
@@ -5084,18 +5034,18 @@ static PyObject *__pyx_gb_6a_sync_7asyncio_11create_task_4generator(__pyx_Corout
|
|
|
5084
5034
|
__pyx_t_3 = __pyx_cur_scope->__pyx_t_2;
|
|
5085
5035
|
__pyx_cur_scope->__pyx_t_2 = 0;
|
|
5086
5036
|
__Pyx_XGOTREF(__pyx_t_3);
|
|
5087
|
-
if (unlikely(!__pyx_sent_value)) __PYX_ERR(0,
|
|
5037
|
+
if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 172, __pyx_L4_error)
|
|
5088
5038
|
__pyx_t_4 = __pyx_sent_value; __Pyx_INCREF(__pyx_t_4);
|
|
5089
5039
|
} else {
|
|
5090
5040
|
__pyx_t_4 = NULL;
|
|
5091
|
-
if (__Pyx_PyGen_FetchStopIterationValue(&__pyx_t_4) < 0) __PYX_ERR(0,
|
|
5041
|
+
if (__Pyx_PyGen_FetchStopIterationValue(&__pyx_t_4) < 0) __PYX_ERR(0, 172, __pyx_L4_error)
|
|
5092
5042
|
__Pyx_GOTREF(__pyx_t_4);
|
|
5093
5043
|
}
|
|
5094
5044
|
__pyx_r = NULL; __Pyx_ReturnWithStopIteration(__pyx_t_4);
|
|
5095
5045
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
5096
5046
|
goto __pyx_L8_try_return;
|
|
5097
5047
|
|
|
5098
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5048
|
+
/* "a_sync/asyncio/create_task.pyx":171
|
|
5099
5049
|
* - :class:`Awaitable`
|
|
5100
5050
|
* """
|
|
5101
5051
|
* try: # <<<<<<<<<<<<<<
|
|
@@ -5106,18 +5056,18 @@ static PyObject *__pyx_gb_6a_sync_7asyncio_11create_task_4generator(__pyx_Corout
|
|
|
5106
5056
|
__pyx_L4_error:;
|
|
5107
5057
|
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
5108
5058
|
|
|
5109
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5059
|
+
/* "a_sync/asyncio/create_task.pyx":173
|
|
5110
5060
|
* try:
|
|
5111
5061
|
* return await awaitable
|
|
5112
5062
|
* except RuntimeError as e: # <<<<<<<<<<<<<<
|
|
5113
5063
|
* args = [e, awaitable]
|
|
5114
5064
|
* if isinstance(awaitable, _GatheringFuture):
|
|
5115
5065
|
*/
|
|
5116
|
-
__Pyx_TraceLine(
|
|
5066
|
+
__Pyx_TraceLine(173,0,__PYX_ERR(0, 173, __pyx_L6_except_error))
|
|
5117
5067
|
__pyx_t_5 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_RuntimeError);
|
|
5118
5068
|
if (__pyx_t_5) {
|
|
5119
5069
|
__Pyx_AddTraceback("a_sync.asyncio.create_task.__await", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
5120
|
-
if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(0,
|
|
5070
|
+
if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(0, 173, __pyx_L6_except_error)
|
|
5121
5071
|
__Pyx_XGOTREF(__pyx_t_4);
|
|
5122
5072
|
__Pyx_XGOTREF(__pyx_t_6);
|
|
5123
5073
|
__Pyx_XGOTREF(__pyx_t_7);
|
|
@@ -5126,54 +5076,54 @@ static PyObject *__pyx_gb_6a_sync_7asyncio_11create_task_4generator(__pyx_Corout
|
|
|
5126
5076
|
__pyx_cur_scope->__pyx_v_e = __pyx_t_6;
|
|
5127
5077
|
/*try:*/ {
|
|
5128
5078
|
|
|
5129
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5079
|
+
/* "a_sync/asyncio/create_task.pyx":174
|
|
5130
5080
|
* return await awaitable
|
|
5131
5081
|
* except RuntimeError as e:
|
|
5132
5082
|
* args = [e, awaitable] # <<<<<<<<<<<<<<
|
|
5133
5083
|
* if isinstance(awaitable, _GatheringFuture):
|
|
5134
5084
|
* args.append(awaitable._children)
|
|
5135
5085
|
*/
|
|
5136
|
-
__Pyx_TraceLine(
|
|
5137
|
-
__pyx_t_8 = PyList_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0,
|
|
5086
|
+
__Pyx_TraceLine(174,0,__PYX_ERR(0, 174, __pyx_L16_error))
|
|
5087
|
+
__pyx_t_8 = PyList_New(2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 174, __pyx_L16_error)
|
|
5138
5088
|
__Pyx_GOTREF(__pyx_t_8);
|
|
5139
5089
|
__Pyx_INCREF(__pyx_cur_scope->__pyx_v_e);
|
|
5140
5090
|
__Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_e);
|
|
5141
|
-
if (__Pyx_PyList_SET_ITEM(__pyx_t_8, 0, __pyx_cur_scope->__pyx_v_e)) __PYX_ERR(0,
|
|
5091
|
+
if (__Pyx_PyList_SET_ITEM(__pyx_t_8, 0, __pyx_cur_scope->__pyx_v_e)) __PYX_ERR(0, 174, __pyx_L16_error);
|
|
5142
5092
|
__Pyx_INCREF(__pyx_cur_scope->__pyx_v_awaitable);
|
|
5143
5093
|
__Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_awaitable);
|
|
5144
|
-
if (__Pyx_PyList_SET_ITEM(__pyx_t_8, 1, __pyx_cur_scope->__pyx_v_awaitable)) __PYX_ERR(0,
|
|
5094
|
+
if (__Pyx_PyList_SET_ITEM(__pyx_t_8, 1, __pyx_cur_scope->__pyx_v_awaitable)) __PYX_ERR(0, 174, __pyx_L16_error);
|
|
5145
5095
|
__Pyx_GIVEREF(__pyx_t_8);
|
|
5146
5096
|
__pyx_cur_scope->__pyx_v_args = ((PyObject*)__pyx_t_8);
|
|
5147
5097
|
__pyx_t_8 = 0;
|
|
5148
5098
|
|
|
5149
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5099
|
+
/* "a_sync/asyncio/create_task.pyx":175
|
|
5150
5100
|
* except RuntimeError as e:
|
|
5151
5101
|
* args = [e, awaitable]
|
|
5152
5102
|
* if isinstance(awaitable, _GatheringFuture): # <<<<<<<<<<<<<<
|
|
5153
5103
|
* args.append(awaitable._children)
|
|
5154
5104
|
* raise RuntimeError(*args) from None
|
|
5155
5105
|
*/
|
|
5156
|
-
__Pyx_TraceLine(
|
|
5106
|
+
__Pyx_TraceLine(175,0,__PYX_ERR(0, 175, __pyx_L16_error))
|
|
5157
5107
|
__pyx_t_8 = __pyx_v_6a_sync_7asyncio_11create_task__GatheringFuture;
|
|
5158
5108
|
__Pyx_INCREF(__pyx_t_8);
|
|
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,
|
|
5109
|
+
__pyx_t_9 = PyObject_IsInstance(__pyx_cur_scope->__pyx_v_awaitable, __pyx_t_8); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(0, 175, __pyx_L16_error)
|
|
5160
5110
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
5161
5111
|
if (__pyx_t_9) {
|
|
5162
5112
|
|
|
5163
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5113
|
+
/* "a_sync/asyncio/create_task.pyx":176
|
|
5164
5114
|
* args = [e, awaitable]
|
|
5165
5115
|
* if isinstance(awaitable, _GatheringFuture):
|
|
5166
5116
|
* args.append(awaitable._children) # <<<<<<<<<<<<<<
|
|
5167
5117
|
* raise RuntimeError(*args) from None
|
|
5168
5118
|
*
|
|
5169
5119
|
*/
|
|
5170
|
-
__Pyx_TraceLine(
|
|
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,
|
|
5120
|
+
__Pyx_TraceLine(176,0,__PYX_ERR(0, 176, __pyx_L16_error))
|
|
5121
|
+
__pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_cur_scope->__pyx_v_awaitable, __pyx_n_s_children); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 176, __pyx_L16_error)
|
|
5172
5122
|
__Pyx_GOTREF(__pyx_t_8);
|
|
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,
|
|
5123
|
+
__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, 176, __pyx_L16_error)
|
|
5174
5124
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
5175
5125
|
|
|
5176
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5126
|
+
/* "a_sync/asyncio/create_task.pyx":175
|
|
5177
5127
|
* except RuntimeError as e:
|
|
5178
5128
|
* args = [e, awaitable]
|
|
5179
5129
|
* if isinstance(awaitable, _GatheringFuture): # <<<<<<<<<<<<<<
|
|
@@ -5182,32 +5132,32 @@ static PyObject *__pyx_gb_6a_sync_7asyncio_11create_task_4generator(__pyx_Corout
|
|
|
5182
5132
|
*/
|
|
5183
5133
|
}
|
|
5184
5134
|
|
|
5185
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5135
|
+
/* "a_sync/asyncio/create_task.pyx":177
|
|
5186
5136
|
* if isinstance(awaitable, _GatheringFuture):
|
|
5187
5137
|
* args.append(awaitable._children)
|
|
5188
5138
|
* raise RuntimeError(*args) from None # <<<<<<<<<<<<<<
|
|
5189
5139
|
*
|
|
5190
5140
|
*
|
|
5191
5141
|
*/
|
|
5192
|
-
__Pyx_TraceLine(
|
|
5193
|
-
__pyx_t_8 = PySequence_Tuple(__pyx_cur_scope->__pyx_v_args); if (unlikely(!__pyx_t_8)) __PYX_ERR(0,
|
|
5142
|
+
__Pyx_TraceLine(177,0,__PYX_ERR(0, 177, __pyx_L16_error))
|
|
5143
|
+
__pyx_t_8 = PySequence_Tuple(__pyx_cur_scope->__pyx_v_args); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 177, __pyx_L16_error)
|
|
5194
5144
|
__Pyx_GOTREF(__pyx_t_8);
|
|
5195
|
-
__pyx_t_11 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_t_8, NULL); if (unlikely(!__pyx_t_11)) __PYX_ERR(0,
|
|
5145
|
+
__pyx_t_11 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_t_8, NULL); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 177, __pyx_L16_error)
|
|
5196
5146
|
__Pyx_GOTREF(__pyx_t_11);
|
|
5197
5147
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
5198
5148
|
__Pyx_Raise(__pyx_t_11, 0, 0, Py_None);
|
|
5199
5149
|
__Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
|
|
5200
|
-
__PYX_ERR(0,
|
|
5150
|
+
__PYX_ERR(0, 177, __pyx_L16_error)
|
|
5201
5151
|
}
|
|
5202
5152
|
|
|
5203
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5153
|
+
/* "a_sync/asyncio/create_task.pyx":173
|
|
5204
5154
|
* try:
|
|
5205
5155
|
* return await awaitable
|
|
5206
5156
|
* except RuntimeError as e: # <<<<<<<<<<<<<<
|
|
5207
5157
|
* args = [e, awaitable]
|
|
5208
5158
|
* if isinstance(awaitable, _GatheringFuture):
|
|
5209
5159
|
*/
|
|
5210
|
-
__Pyx_TraceLine(
|
|
5160
|
+
__Pyx_TraceLine(173,0,__PYX_ERR(0, 173, __pyx_L16_error))
|
|
5211
5161
|
/*finally:*/ {
|
|
5212
5162
|
__pyx_L16_error:;
|
|
5213
5163
|
/*exception exit:*/{
|
|
@@ -5246,7 +5196,7 @@ static PyObject *__pyx_gb_6a_sync_7asyncio_11create_task_4generator(__pyx_Corout
|
|
|
5246
5196
|
}
|
|
5247
5197
|
goto __pyx_L6_except_error;
|
|
5248
5198
|
|
|
5249
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5199
|
+
/* "a_sync/asyncio/create_task.pyx":171
|
|
5250
5200
|
* - :class:`Awaitable`
|
|
5251
5201
|
* """
|
|
5252
5202
|
* try: # <<<<<<<<<<<<<<
|
|
@@ -5268,7 +5218,7 @@ static PyObject *__pyx_gb_6a_sync_7asyncio_11create_task_4generator(__pyx_Corout
|
|
|
5268
5218
|
}
|
|
5269
5219
|
CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);
|
|
5270
5220
|
|
|
5271
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5221
|
+
/* "a_sync/asyncio/create_task.pyx":152
|
|
5272
5222
|
* cdef object __await
|
|
5273
5223
|
*
|
|
5274
5224
|
* async def __await(awaitable: Awaitable[T]) -> T: # <<<<<<<<<<<<<<
|
|
@@ -5297,7 +5247,7 @@ static PyObject *__pyx_gb_6a_sync_7asyncio_11create_task_4generator(__pyx_Corout
|
|
|
5297
5247
|
return __pyx_r;
|
|
5298
5248
|
}
|
|
5299
5249
|
|
|
5300
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5250
|
+
/* "a_sync/asyncio/create_task.pyx":183
|
|
5301
5251
|
*
|
|
5302
5252
|
*
|
|
5303
5253
|
* cdef void __prune_persisted_tasks(): # <<<<<<<<<<<<<<
|
|
@@ -5324,58 +5274,58 @@ static void __pyx_f_6a_sync_7asyncio_11create_task___prune_persisted_tasks(void)
|
|
|
5324
5274
|
const char *__pyx_filename = NULL;
|
|
5325
5275
|
int __pyx_clineno = 0;
|
|
5326
5276
|
__Pyx_RefNannySetupContext("__prune_persisted_tasks", 1);
|
|
5327
|
-
__Pyx_TraceCall("__prune_persisted_tasks", __pyx_f[0],
|
|
5277
|
+
__Pyx_TraceCall("__prune_persisted_tasks", __pyx_f[0], 183, 0, __PYX_ERR(0, 183, __pyx_L1_error));
|
|
5328
5278
|
|
|
5329
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5279
|
+
/* "a_sync/asyncio/create_task.pyx":195
|
|
5330
5280
|
* cdef object task
|
|
5331
5281
|
* cdef dict context
|
|
5332
5282
|
* cdef list done = list(filter(_is_done, _persisted_tasks)) # <<<<<<<<<<<<<<
|
|
5333
5283
|
* if not done:
|
|
5334
5284
|
* return
|
|
5335
5285
|
*/
|
|
5336
|
-
__Pyx_TraceLine(
|
|
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,
|
|
5286
|
+
__Pyx_TraceLine(195,0,__PYX_ERR(0, 195, __pyx_L1_error))
|
|
5287
|
+
__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, 195, __pyx_L1_error)
|
|
5338
5288
|
__Pyx_GOTREF(__pyx_t_1);
|
|
5339
|
-
__pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
5289
|
+
__pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 195, __pyx_L1_error)
|
|
5340
5290
|
__Pyx_GOTREF(__pyx_t_2);
|
|
5341
5291
|
__Pyx_GIVEREF(__pyx_t_1);
|
|
5342
|
-
if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(0,
|
|
5292
|
+
if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)) __PYX_ERR(0, 195, __pyx_L1_error);
|
|
5343
5293
|
__Pyx_INCREF(_persisted_tasks);
|
|
5344
5294
|
__Pyx_GIVEREF(_persisted_tasks);
|
|
5345
|
-
if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, _persisted_tasks)) __PYX_ERR(0,
|
|
5295
|
+
if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, _persisted_tasks)) __PYX_ERR(0, 195, __pyx_L1_error);
|
|
5346
5296
|
__pyx_t_1 = 0;
|
|
5347
|
-
__pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_filter, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
5297
|
+
__pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_filter, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 195, __pyx_L1_error)
|
|
5348
5298
|
__Pyx_GOTREF(__pyx_t_1);
|
|
5349
5299
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
5350
|
-
__pyx_t_2 = __Pyx_PySequence_ListKeepNew(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0,
|
|
5300
|
+
__pyx_t_2 = __Pyx_PySequence_ListKeepNew(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 195, __pyx_L1_error)
|
|
5351
5301
|
__Pyx_GOTREF(__pyx_t_2);
|
|
5352
5302
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
5353
5303
|
__pyx_v_done = ((PyObject*)__pyx_t_2);
|
|
5354
5304
|
__pyx_t_2 = 0;
|
|
5355
5305
|
|
|
5356
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5306
|
+
/* "a_sync/asyncio/create_task.pyx":196
|
|
5357
5307
|
* cdef dict context
|
|
5358
5308
|
* cdef list done = list(filter(_is_done, _persisted_tasks))
|
|
5359
5309
|
* if not done: # <<<<<<<<<<<<<<
|
|
5360
5310
|
* return
|
|
5361
5311
|
* _persisted_tasks.difference_update(done)
|
|
5362
5312
|
*/
|
|
5363
|
-
__Pyx_TraceLine(
|
|
5313
|
+
__Pyx_TraceLine(196,0,__PYX_ERR(0, 196, __pyx_L1_error))
|
|
5364
5314
|
__pyx_t_3 = (PyList_GET_SIZE(__pyx_v_done) != 0);
|
|
5365
5315
|
__pyx_t_4 = (!__pyx_t_3);
|
|
5366
5316
|
if (__pyx_t_4) {
|
|
5367
5317
|
|
|
5368
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5318
|
+
/* "a_sync/asyncio/create_task.pyx":197
|
|
5369
5319
|
* cdef list done = list(filter(_is_done, _persisted_tasks))
|
|
5370
5320
|
* if not done:
|
|
5371
5321
|
* return # <<<<<<<<<<<<<<
|
|
5372
5322
|
* _persisted_tasks.difference_update(done)
|
|
5373
5323
|
* for task in done:
|
|
5374
5324
|
*/
|
|
5375
|
-
__Pyx_TraceLine(
|
|
5325
|
+
__Pyx_TraceLine(197,0,__PYX_ERR(0, 197, __pyx_L1_error))
|
|
5376
5326
|
goto __pyx_L0;
|
|
5377
5327
|
|
|
5378
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5328
|
+
/* "a_sync/asyncio/create_task.pyx":196
|
|
5379
5329
|
* cdef dict context
|
|
5380
5330
|
* cdef list done = list(filter(_is_done, _persisted_tasks))
|
|
5381
5331
|
* if not done: # <<<<<<<<<<<<<<
|
|
@@ -5384,80 +5334,80 @@ static void __pyx_f_6a_sync_7asyncio_11create_task___prune_persisted_tasks(void)
|
|
|
5384
5334
|
*/
|
|
5385
5335
|
}
|
|
5386
5336
|
|
|
5387
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5337
|
+
/* "a_sync/asyncio/create_task.pyx":198
|
|
5388
5338
|
* if not done:
|
|
5389
5339
|
* return
|
|
5390
5340
|
* _persisted_tasks.difference_update(done) # <<<<<<<<<<<<<<
|
|
5391
5341
|
* for task in done:
|
|
5392
5342
|
* exc = _get_exception(task)
|
|
5393
5343
|
*/
|
|
5394
|
-
__Pyx_TraceLine(
|
|
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,
|
|
5344
|
+
__Pyx_TraceLine(198,0,__PYX_ERR(0, 198, __pyx_L1_error))
|
|
5345
|
+
__pyx_t_2 = __Pyx_CallUnboundCMethod1(&__pyx_umethod_PySet_Type_difference_update, _persisted_tasks, __pyx_v_done); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 198, __pyx_L1_error)
|
|
5396
5346
|
__Pyx_GOTREF(__pyx_t_2);
|
|
5397
5347
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
5398
5348
|
|
|
5399
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5349
|
+
/* "a_sync/asyncio/create_task.pyx":199
|
|
5400
5350
|
* return
|
|
5401
5351
|
* _persisted_tasks.difference_update(done)
|
|
5402
5352
|
* for task in done: # <<<<<<<<<<<<<<
|
|
5403
5353
|
* exc = _get_exception(task)
|
|
5404
5354
|
* if exc is None:
|
|
5405
5355
|
*/
|
|
5406
|
-
__Pyx_TraceLine(
|
|
5356
|
+
__Pyx_TraceLine(199,0,__PYX_ERR(0, 199, __pyx_L1_error))
|
|
5407
5357
|
__pyx_t_2 = __pyx_v_done; __Pyx_INCREF(__pyx_t_2);
|
|
5408
5358
|
__pyx_t_5 = 0;
|
|
5409
5359
|
for (;;) {
|
|
5410
5360
|
{
|
|
5411
5361
|
Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_t_2);
|
|
5412
5362
|
#if !CYTHON_ASSUME_SAFE_MACROS
|
|
5413
|
-
if (unlikely((__pyx_temp < 0))) __PYX_ERR(0,
|
|
5363
|
+
if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 199, __pyx_L1_error)
|
|
5414
5364
|
#endif
|
|
5415
5365
|
if (__pyx_t_5 >= __pyx_temp) break;
|
|
5416
5366
|
}
|
|
5417
5367
|
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
|
|
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,
|
|
5368
|
+
__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, 199, __pyx_L1_error)
|
|
5419
5369
|
#else
|
|
5420
|
-
__pyx_t_1 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
5370
|
+
__pyx_t_1 = __Pyx_PySequence_ITEM(__pyx_t_2, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 199, __pyx_L1_error)
|
|
5421
5371
|
__Pyx_GOTREF(__pyx_t_1);
|
|
5422
5372
|
#endif
|
|
5423
5373
|
__Pyx_XDECREF_SET(__pyx_v_task, __pyx_t_1);
|
|
5424
5374
|
__pyx_t_1 = 0;
|
|
5425
5375
|
|
|
5426
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5376
|
+
/* "a_sync/asyncio/create_task.pyx":200
|
|
5427
5377
|
* _persisted_tasks.difference_update(done)
|
|
5428
5378
|
* for task in done:
|
|
5429
5379
|
* exc = _get_exception(task) # <<<<<<<<<<<<<<
|
|
5430
5380
|
* if exc is None:
|
|
5431
5381
|
* continue
|
|
5432
5382
|
*/
|
|
5433
|
-
__Pyx_TraceLine(
|
|
5434
|
-
__pyx_t_1 = __pyx_f_6a_sync_7asyncio_11create_task__get_exception(__pyx_v_task); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
5383
|
+
__Pyx_TraceLine(200,0,__PYX_ERR(0, 200, __pyx_L1_error))
|
|
5384
|
+
__pyx_t_1 = __pyx_f_6a_sync_7asyncio_11create_task__get_exception(__pyx_v_task); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 200, __pyx_L1_error)
|
|
5435
5385
|
__Pyx_GOTREF(__pyx_t_1);
|
|
5436
5386
|
__Pyx_XDECREF_SET(__pyx_v_exc, __pyx_t_1);
|
|
5437
5387
|
__pyx_t_1 = 0;
|
|
5438
5388
|
|
|
5439
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5389
|
+
/* "a_sync/asyncio/create_task.pyx":201
|
|
5440
5390
|
* for task in done:
|
|
5441
5391
|
* exc = _get_exception(task)
|
|
5442
5392
|
* if exc is None: # <<<<<<<<<<<<<<
|
|
5443
5393
|
* continue
|
|
5444
5394
|
* # force exceptions related to this lib to bubble up
|
|
5445
5395
|
*/
|
|
5446
|
-
__Pyx_TraceLine(
|
|
5396
|
+
__Pyx_TraceLine(201,0,__PYX_ERR(0, 201, __pyx_L1_error))
|
|
5447
5397
|
__pyx_t_4 = (__pyx_v_exc == Py_None);
|
|
5448
5398
|
if (__pyx_t_4) {
|
|
5449
5399
|
|
|
5450
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5400
|
+
/* "a_sync/asyncio/create_task.pyx":202
|
|
5451
5401
|
* exc = _get_exception(task)
|
|
5452
5402
|
* if exc is None:
|
|
5453
5403
|
* continue # <<<<<<<<<<<<<<
|
|
5454
5404
|
* # force exceptions related to this lib to bubble up
|
|
5455
5405
|
* if not isinstance(exc, PersistedTaskException):
|
|
5456
5406
|
*/
|
|
5457
|
-
__Pyx_TraceLine(
|
|
5407
|
+
__Pyx_TraceLine(202,0,__PYX_ERR(0, 202, __pyx_L1_error))
|
|
5458
5408
|
goto __pyx_L4_continue;
|
|
5459
5409
|
|
|
5460
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5410
|
+
/* "a_sync/asyncio/create_task.pyx":201
|
|
5461
5411
|
* for task in done:
|
|
5462
5412
|
* exc = _get_exception(task)
|
|
5463
5413
|
* if exc is None: # <<<<<<<<<<<<<<
|
|
@@ -5466,29 +5416,29 @@ static void __pyx_f_6a_sync_7asyncio_11create_task___prune_persisted_tasks(void)
|
|
|
5466
5416
|
*/
|
|
5467
5417
|
}
|
|
5468
5418
|
|
|
5469
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5419
|
+
/* "a_sync/asyncio/create_task.pyx":204
|
|
5470
5420
|
* continue
|
|
5471
5421
|
* # force exceptions related to this lib to bubble up
|
|
5472
5422
|
* if not isinstance(exc, PersistedTaskException): # <<<<<<<<<<<<<<
|
|
5473
5423
|
* __log_exception(exc)
|
|
5474
5424
|
* raise exc
|
|
5475
5425
|
*/
|
|
5476
|
-
__Pyx_TraceLine(
|
|
5426
|
+
__Pyx_TraceLine(204,0,__PYX_ERR(0, 204, __pyx_L1_error))
|
|
5477
5427
|
__pyx_t_1 = __pyx_v_6a_sync_7asyncio_11create_task_PersistedTaskException;
|
|
5478
5428
|
__Pyx_INCREF(__pyx_t_1);
|
|
5479
|
-
__pyx_t_4 = PyObject_IsInstance(__pyx_v_exc, __pyx_t_1); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0,
|
|
5429
|
+
__pyx_t_4 = PyObject_IsInstance(__pyx_v_exc, __pyx_t_1); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 204, __pyx_L1_error)
|
|
5480
5430
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
5481
5431
|
__pyx_t_3 = (!__pyx_t_4);
|
|
5482
5432
|
if (unlikely(__pyx_t_3)) {
|
|
5483
5433
|
|
|
5484
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5434
|
+
/* "a_sync/asyncio/create_task.pyx":205
|
|
5485
5435
|
* # force exceptions related to this lib to bubble up
|
|
5486
5436
|
* if not isinstance(exc, PersistedTaskException):
|
|
5487
5437
|
* __log_exception(exc) # <<<<<<<<<<<<<<
|
|
5488
5438
|
* raise exc
|
|
5489
5439
|
* # we have to manually log the traceback that asyncio would usually log
|
|
5490
5440
|
*/
|
|
5491
|
-
__Pyx_TraceLine(
|
|
5441
|
+
__Pyx_TraceLine(205,0,__PYX_ERR(0, 205, __pyx_L1_error))
|
|
5492
5442
|
__Pyx_INCREF(__pyx_v_6a_sync_7asyncio_11create_task___log_exception);
|
|
5493
5443
|
__pyx_t_6 = __pyx_v_6a_sync_7asyncio_11create_task___log_exception; __pyx_t_7 = NULL;
|
|
5494
5444
|
__pyx_t_8 = 0;
|
|
@@ -5508,24 +5458,24 @@ static void __pyx_f_6a_sync_7asyncio_11create_task___prune_persisted_tasks(void)
|
|
|
5508
5458
|
PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_v_exc};
|
|
5509
5459
|
__pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_6, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8);
|
|
5510
5460
|
__Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
5511
|
-
if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
5461
|
+
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 205, __pyx_L1_error)
|
|
5512
5462
|
__Pyx_GOTREF(__pyx_t_1);
|
|
5513
5463
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
5514
5464
|
}
|
|
5515
5465
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
5516
5466
|
|
|
5517
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5467
|
+
/* "a_sync/asyncio/create_task.pyx":206
|
|
5518
5468
|
* if not isinstance(exc, PersistedTaskException):
|
|
5519
5469
|
* __log_exception(exc)
|
|
5520
5470
|
* raise exc # <<<<<<<<<<<<<<
|
|
5521
5471
|
* # we have to manually log the traceback that asyncio would usually log
|
|
5522
5472
|
* # since we already got the exception from the task and the usual handler will now not run
|
|
5523
5473
|
*/
|
|
5524
|
-
__Pyx_TraceLine(
|
|
5474
|
+
__Pyx_TraceLine(206,0,__PYX_ERR(0, 206, __pyx_L1_error))
|
|
5525
5475
|
__Pyx_Raise(__pyx_v_exc, 0, 0, 0);
|
|
5526
|
-
__PYX_ERR(0,
|
|
5476
|
+
__PYX_ERR(0, 206, __pyx_L1_error)
|
|
5527
5477
|
|
|
5528
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5478
|
+
/* "a_sync/asyncio/create_task.pyx":204
|
|
5529
5479
|
* continue
|
|
5530
5480
|
* # force exceptions related to this lib to bubble up
|
|
5531
5481
|
* if not isinstance(exc, PersistedTaskException): # <<<<<<<<<<<<<<
|
|
@@ -5534,80 +5484,80 @@ static void __pyx_f_6a_sync_7asyncio_11create_task___prune_persisted_tasks(void)
|
|
|
5534
5484
|
*/
|
|
5535
5485
|
}
|
|
5536
5486
|
|
|
5537
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5487
|
+
/* "a_sync/asyncio/create_task.pyx":210
|
|
5538
5488
|
* # since we already got the exception from the task and the usual handler will now not run
|
|
5539
5489
|
* context = {
|
|
5540
5490
|
* "message": f"{task.__class__.__name__} exception was never retrieved", # <<<<<<<<<<<<<<
|
|
5541
5491
|
* "exception": exc,
|
|
5542
5492
|
* "future": task,
|
|
5543
5493
|
*/
|
|
5544
|
-
__Pyx_TraceLine(
|
|
5545
|
-
__pyx_t_1 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
5494
|
+
__Pyx_TraceLine(210,0,__PYX_ERR(0, 210, __pyx_L1_error))
|
|
5495
|
+
__pyx_t_1 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 210, __pyx_L1_error)
|
|
5546
5496
|
__Pyx_GOTREF(__pyx_t_1);
|
|
5547
|
-
__pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_task, __pyx_n_s_class); if (unlikely(!__pyx_t_6)) __PYX_ERR(0,
|
|
5497
|
+
__pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_task, __pyx_n_s_class); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 210, __pyx_L1_error)
|
|
5548
5498
|
__Pyx_GOTREF(__pyx_t_6);
|
|
5549
|
-
__pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_name_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0,
|
|
5499
|
+
__pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_name_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 210, __pyx_L1_error)
|
|
5550
5500
|
__Pyx_GOTREF(__pyx_t_7);
|
|
5551
5501
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
5552
|
-
__pyx_t_6 = __Pyx_PyObject_FormatSimple(__pyx_t_7, __pyx_empty_unicode); if (unlikely(!__pyx_t_6)) __PYX_ERR(0,
|
|
5502
|
+
__pyx_t_6 = __Pyx_PyObject_FormatSimple(__pyx_t_7, __pyx_empty_unicode); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 210, __pyx_L1_error)
|
|
5553
5503
|
__Pyx_GOTREF(__pyx_t_6);
|
|
5554
5504
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 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,
|
|
5505
|
+
__pyx_t_7 = __Pyx_PyUnicode_ConcatInPlace(__pyx_t_6, __pyx_kp_u_exception_was_never_retrieved); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 210, __pyx_L1_error)
|
|
5556
5506
|
__Pyx_GOTREF(__pyx_t_7);
|
|
5557
5507
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
5558
|
-
if (PyDict_SetItem(__pyx_t_1, __pyx_n_u_message, __pyx_t_7) < 0) __PYX_ERR(0,
|
|
5508
|
+
if (PyDict_SetItem(__pyx_t_1, __pyx_n_u_message, __pyx_t_7) < 0) __PYX_ERR(0, 210, __pyx_L1_error)
|
|
5559
5509
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
5560
5510
|
|
|
5561
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5511
|
+
/* "a_sync/asyncio/create_task.pyx":211
|
|
5562
5512
|
* context = {
|
|
5563
5513
|
* "message": f"{task.__class__.__name__} exception was never retrieved",
|
|
5564
5514
|
* "exception": exc, # <<<<<<<<<<<<<<
|
|
5565
5515
|
* "future": task,
|
|
5566
5516
|
* }
|
|
5567
5517
|
*/
|
|
5568
|
-
__Pyx_TraceLine(
|
|
5569
|
-
if (PyDict_SetItem(__pyx_t_1, __pyx_n_u_exception, __pyx_v_exc) < 0) __PYX_ERR(0,
|
|
5518
|
+
__Pyx_TraceLine(211,0,__PYX_ERR(0, 211, __pyx_L1_error))
|
|
5519
|
+
if (PyDict_SetItem(__pyx_t_1, __pyx_n_u_exception, __pyx_v_exc) < 0) __PYX_ERR(0, 210, __pyx_L1_error)
|
|
5570
5520
|
|
|
5571
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5521
|
+
/* "a_sync/asyncio/create_task.pyx":212
|
|
5572
5522
|
* "message": f"{task.__class__.__name__} exception was never retrieved",
|
|
5573
5523
|
* "exception": exc,
|
|
5574
5524
|
* "future": task, # <<<<<<<<<<<<<<
|
|
5575
5525
|
* }
|
|
5576
5526
|
* if task._source_traceback:
|
|
5577
5527
|
*/
|
|
5578
|
-
__Pyx_TraceLine(
|
|
5579
|
-
if (PyDict_SetItem(__pyx_t_1, __pyx_n_u_future, __pyx_v_task) < 0) __PYX_ERR(0,
|
|
5528
|
+
__Pyx_TraceLine(212,0,__PYX_ERR(0, 212, __pyx_L1_error))
|
|
5529
|
+
if (PyDict_SetItem(__pyx_t_1, __pyx_n_u_future, __pyx_v_task) < 0) __PYX_ERR(0, 210, __pyx_L1_error)
|
|
5580
5530
|
__Pyx_XDECREF_SET(__pyx_v_context, ((PyObject*)__pyx_t_1));
|
|
5581
5531
|
__pyx_t_1 = 0;
|
|
5582
5532
|
|
|
5583
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5533
|
+
/* "a_sync/asyncio/create_task.pyx":214
|
|
5584
5534
|
* "future": task,
|
|
5585
5535
|
* }
|
|
5586
5536
|
* if task._source_traceback: # <<<<<<<<<<<<<<
|
|
5587
5537
|
* context["source_traceback"] = task._source_traceback
|
|
5588
5538
|
* task._loop.call_exception_handler(context)
|
|
5589
5539
|
*/
|
|
5590
|
-
__Pyx_TraceLine(
|
|
5591
|
-
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_task, __pyx_n_s_source_traceback); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
5540
|
+
__Pyx_TraceLine(214,0,__PYX_ERR(0, 214, __pyx_L1_error))
|
|
5541
|
+
__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)
|
|
5592
5542
|
__Pyx_GOTREF(__pyx_t_1);
|
|
5593
|
-
__pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0,
|
|
5543
|
+
__pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_3 < 0))) __PYX_ERR(0, 214, __pyx_L1_error)
|
|
5594
5544
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
5595
5545
|
if (__pyx_t_3) {
|
|
5596
5546
|
|
|
5597
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5547
|
+
/* "a_sync/asyncio/create_task.pyx":215
|
|
5598
5548
|
* }
|
|
5599
5549
|
* if task._source_traceback:
|
|
5600
5550
|
* context["source_traceback"] = task._source_traceback # <<<<<<<<<<<<<<
|
|
5601
5551
|
* task._loop.call_exception_handler(context)
|
|
5602
5552
|
*
|
|
5603
5553
|
*/
|
|
5604
|
-
__Pyx_TraceLine(
|
|
5605
|
-
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_task, __pyx_n_s_source_traceback); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
5554
|
+
__Pyx_TraceLine(215,0,__PYX_ERR(0, 215, __pyx_L1_error))
|
|
5555
|
+
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_task, __pyx_n_s_source_traceback); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 215, __pyx_L1_error)
|
|
5606
5556
|
__Pyx_GOTREF(__pyx_t_1);
|
|
5607
|
-
if (unlikely((PyDict_SetItem(__pyx_v_context, __pyx_n_u_source_traceback_2, __pyx_t_1) < 0))) __PYX_ERR(0,
|
|
5557
|
+
if (unlikely((PyDict_SetItem(__pyx_v_context, __pyx_n_u_source_traceback_2, __pyx_t_1) < 0))) __PYX_ERR(0, 215, __pyx_L1_error)
|
|
5608
5558
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
5609
5559
|
|
|
5610
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5560
|
+
/* "a_sync/asyncio/create_task.pyx":214
|
|
5611
5561
|
* "future": task,
|
|
5612
5562
|
* }
|
|
5613
5563
|
* if task._source_traceback: # <<<<<<<<<<<<<<
|
|
@@ -5616,17 +5566,17 @@ static void __pyx_f_6a_sync_7asyncio_11create_task___prune_persisted_tasks(void)
|
|
|
5616
5566
|
*/
|
|
5617
5567
|
}
|
|
5618
5568
|
|
|
5619
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5569
|
+
/* "a_sync/asyncio/create_task.pyx":216
|
|
5620
5570
|
* if task._source_traceback:
|
|
5621
5571
|
* context["source_traceback"] = task._source_traceback
|
|
5622
5572
|
* task._loop.call_exception_handler(context) # <<<<<<<<<<<<<<
|
|
5623
5573
|
*
|
|
5624
5574
|
*
|
|
5625
5575
|
*/
|
|
5626
|
-
__Pyx_TraceLine(
|
|
5627
|
-
__pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_task, __pyx_n_s_loop_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0,
|
|
5576
|
+
__Pyx_TraceLine(216,0,__PYX_ERR(0, 216, __pyx_L1_error))
|
|
5577
|
+
__pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_task, __pyx_n_s_loop_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 216, __pyx_L1_error)
|
|
5628
5578
|
__Pyx_GOTREF(__pyx_t_7);
|
|
5629
|
-
__pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_call_exception_handler); if (unlikely(!__pyx_t_6)) __PYX_ERR(0,
|
|
5579
|
+
__pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_call_exception_handler); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 216, __pyx_L1_error)
|
|
5630
5580
|
__Pyx_GOTREF(__pyx_t_6);
|
|
5631
5581
|
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
5632
5582
|
__pyx_t_7 = NULL;
|
|
@@ -5647,25 +5597,25 @@ static void __pyx_f_6a_sync_7asyncio_11create_task___prune_persisted_tasks(void)
|
|
|
5647
5597
|
PyObject *__pyx_callargs[2] = {__pyx_t_7, __pyx_v_context};
|
|
5648
5598
|
__pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_6, __pyx_callargs+1-__pyx_t_8, 1+__pyx_t_8);
|
|
5649
5599
|
__Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
|
|
5650
|
-
if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
5600
|
+
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 216, __pyx_L1_error)
|
|
5651
5601
|
__Pyx_GOTREF(__pyx_t_1);
|
|
5652
5602
|
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
|
|
5653
5603
|
}
|
|
5654
5604
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
5655
5605
|
|
|
5656
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5606
|
+
/* "a_sync/asyncio/create_task.pyx":199
|
|
5657
5607
|
* return
|
|
5658
5608
|
* _persisted_tasks.difference_update(done)
|
|
5659
5609
|
* for task in done: # <<<<<<<<<<<<<<
|
|
5660
5610
|
* exc = _get_exception(task)
|
|
5661
5611
|
* if exc is None:
|
|
5662
5612
|
*/
|
|
5663
|
-
__Pyx_TraceLine(
|
|
5613
|
+
__Pyx_TraceLine(199,0,__PYX_ERR(0, 199, __pyx_L1_error))
|
|
5664
5614
|
__pyx_L4_continue:;
|
|
5665
5615
|
}
|
|
5666
5616
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
5667
5617
|
|
|
5668
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5618
|
+
/* "a_sync/asyncio/create_task.pyx":183
|
|
5669
5619
|
*
|
|
5670
5620
|
*
|
|
5671
5621
|
* cdef void __prune_persisted_tasks(): # <<<<<<<<<<<<<<
|
|
@@ -5690,7 +5640,7 @@ static void __pyx_f_6a_sync_7asyncio_11create_task___prune_persisted_tasks(void)
|
|
|
5690
5640
|
__Pyx_RefNannyFinishContext();
|
|
5691
5641
|
}
|
|
5692
5642
|
|
|
5693
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5643
|
+
/* "a_sync/asyncio/create_task.pyx":219
|
|
5694
5644
|
*
|
|
5695
5645
|
*
|
|
5696
5646
|
* cdef inline bint _is_done(fut: Future): # <<<<<<<<<<<<<<
|
|
@@ -5707,23 +5657,23 @@ static CYTHON_INLINE int __pyx_f_6a_sync_7asyncio_11create_task__is_done(PyObjec
|
|
|
5707
5657
|
const char *__pyx_filename = NULL;
|
|
5708
5658
|
int __pyx_clineno = 0;
|
|
5709
5659
|
__Pyx_RefNannySetupContext("_is_done", 1);
|
|
5710
|
-
__Pyx_TraceCall("_is_done", __pyx_f[0],
|
|
5660
|
+
__Pyx_TraceCall("_is_done", __pyx_f[0], 219, 0, __PYX_ERR(0, 219, __pyx_L1_error));
|
|
5711
5661
|
|
|
5712
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5662
|
+
/* "a_sync/asyncio/create_task.pyx":220
|
|
5713
5663
|
*
|
|
5714
5664
|
* cdef inline bint _is_done(fut: Future):
|
|
5715
5665
|
* return PyUnicode_CompareWithASCIIString(fut._state, b"PENDING") != 0 # <<<<<<<<<<<<<<
|
|
5716
5666
|
*
|
|
5717
5667
|
*
|
|
5718
5668
|
*/
|
|
5719
|
-
__Pyx_TraceLine(
|
|
5720
|
-
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_fut, __pyx_n_s_state); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
5669
|
+
__Pyx_TraceLine(220,0,__PYX_ERR(0, 220, __pyx_L1_error))
|
|
5670
|
+
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_fut, __pyx_n_s_state); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 220, __pyx_L1_error)
|
|
5721
5671
|
__Pyx_GOTREF(__pyx_t_1);
|
|
5722
5672
|
__pyx_r = (PyUnicode_CompareWithASCIIString(__pyx_t_1, ((char const *)"PENDING")) != 0);
|
|
5723
5673
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
5724
5674
|
goto __pyx_L0;
|
|
5725
5675
|
|
|
5726
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5676
|
+
/* "a_sync/asyncio/create_task.pyx":219
|
|
5727
5677
|
*
|
|
5728
5678
|
*
|
|
5729
5679
|
* cdef inline bint _is_done(fut: Future): # <<<<<<<<<<<<<<
|
|
@@ -5742,7 +5692,7 @@ static CYTHON_INLINE int __pyx_f_6a_sync_7asyncio_11create_task__is_done(PyObjec
|
|
|
5742
5692
|
return __pyx_r;
|
|
5743
5693
|
}
|
|
5744
5694
|
|
|
5745
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5695
|
+
/* "a_sync/asyncio/create_task.pyx":223
|
|
5746
5696
|
*
|
|
5747
5697
|
*
|
|
5748
5698
|
* cdef object _get_exception(fut: Future): # <<<<<<<<<<<<<<
|
|
@@ -5759,64 +5709,65 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task__get_exception(PyObject
|
|
|
5759
5709
|
int __pyx_t_2;
|
|
5760
5710
|
PyObject *__pyx_t_3 = NULL;
|
|
5761
5711
|
PyObject *__pyx_t_4 = NULL;
|
|
5762
|
-
|
|
5712
|
+
PyObject *__pyx_t_5 = NULL;
|
|
5713
|
+
unsigned int __pyx_t_6;
|
|
5763
5714
|
int __pyx_lineno = 0;
|
|
5764
5715
|
const char *__pyx_filename = NULL;
|
|
5765
5716
|
int __pyx_clineno = 0;
|
|
5766
5717
|
__Pyx_RefNannySetupContext("_get_exception", 1);
|
|
5767
|
-
__Pyx_TraceCall("_get_exception", __pyx_f[0],
|
|
5718
|
+
__Pyx_TraceCall("_get_exception", __pyx_f[0], 223, 0, __PYX_ERR(0, 223, __pyx_L1_error));
|
|
5768
5719
|
|
|
5769
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5720
|
+
/* "a_sync/asyncio/create_task.pyx":231
|
|
5770
5721
|
* InvalidStateError.
|
|
5771
5722
|
* """
|
|
5772
5723
|
* cdef str state = fut._state # <<<<<<<<<<<<<<
|
|
5773
5724
|
* if PyUnicode_CompareWithASCIIString(state, b"FINISHED") == 0:
|
|
5774
5725
|
* fut._Future__log_traceback = False
|
|
5775
5726
|
*/
|
|
5776
|
-
__Pyx_TraceLine(
|
|
5777
|
-
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_fut, __pyx_n_s_state); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
5727
|
+
__Pyx_TraceLine(231,0,__PYX_ERR(0, 231, __pyx_L1_error))
|
|
5728
|
+
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_fut, __pyx_n_s_state); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 231, __pyx_L1_error)
|
|
5778
5729
|
__Pyx_GOTREF(__pyx_t_1);
|
|
5779
|
-
if (!(likely(PyUnicode_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("unicode", __pyx_t_1))) __PYX_ERR(0,
|
|
5730
|
+
if (!(likely(PyUnicode_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None) || __Pyx_RaiseUnexpectedTypeError("unicode", __pyx_t_1))) __PYX_ERR(0, 231, __pyx_L1_error)
|
|
5780
5731
|
__pyx_v_state = ((PyObject*)__pyx_t_1);
|
|
5781
5732
|
__pyx_t_1 = 0;
|
|
5782
5733
|
|
|
5783
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5734
|
+
/* "a_sync/asyncio/create_task.pyx":232
|
|
5784
5735
|
* """
|
|
5785
5736
|
* cdef str state = fut._state
|
|
5786
5737
|
* if PyUnicode_CompareWithASCIIString(state, b"FINISHED") == 0: # <<<<<<<<<<<<<<
|
|
5787
5738
|
* fut._Future__log_traceback = False
|
|
5788
5739
|
* return fut._exception
|
|
5789
5740
|
*/
|
|
5790
|
-
__Pyx_TraceLine(
|
|
5741
|
+
__Pyx_TraceLine(232,0,__PYX_ERR(0, 232, __pyx_L1_error))
|
|
5791
5742
|
__pyx_t_2 = (PyUnicode_CompareWithASCIIString(__pyx_v_state, ((char const *)"FINISHED")) == 0);
|
|
5792
5743
|
if (__pyx_t_2) {
|
|
5793
5744
|
|
|
5794
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5745
|
+
/* "a_sync/asyncio/create_task.pyx":233
|
|
5795
5746
|
* cdef str state = fut._state
|
|
5796
5747
|
* if PyUnicode_CompareWithASCIIString(state, b"FINISHED") == 0:
|
|
5797
5748
|
* fut._Future__log_traceback = False # <<<<<<<<<<<<<<
|
|
5798
5749
|
* return fut._exception
|
|
5799
5750
|
* if PyUnicode_CompareWithASCIIString(state, b"CANCELLED") == 0:
|
|
5800
5751
|
*/
|
|
5801
|
-
__Pyx_TraceLine(
|
|
5802
|
-
if (__Pyx_PyObject_SetAttrStr(__pyx_v_fut, __pyx_n_s_Future__log_traceback, Py_False) < 0) __PYX_ERR(0,
|
|
5752
|
+
__Pyx_TraceLine(233,0,__PYX_ERR(0, 233, __pyx_L1_error))
|
|
5753
|
+
if (__Pyx_PyObject_SetAttrStr(__pyx_v_fut, __pyx_n_s_Future__log_traceback, Py_False) < 0) __PYX_ERR(0, 233, __pyx_L1_error)
|
|
5803
5754
|
|
|
5804
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5755
|
+
/* "a_sync/asyncio/create_task.pyx":234
|
|
5805
5756
|
* if PyUnicode_CompareWithASCIIString(state, b"FINISHED") == 0:
|
|
5806
5757
|
* fut._Future__log_traceback = False
|
|
5807
5758
|
* return fut._exception # <<<<<<<<<<<<<<
|
|
5808
5759
|
* if PyUnicode_CompareWithASCIIString(state, b"CANCELLED") == 0:
|
|
5809
|
-
* raise
|
|
5760
|
+
* raise (
|
|
5810
5761
|
*/
|
|
5811
|
-
__Pyx_TraceLine(
|
|
5762
|
+
__Pyx_TraceLine(234,0,__PYX_ERR(0, 234, __pyx_L1_error))
|
|
5812
5763
|
__Pyx_XDECREF(__pyx_r);
|
|
5813
|
-
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_fut, __pyx_n_s_exception_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
5764
|
+
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_fut, __pyx_n_s_exception_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 234, __pyx_L1_error)
|
|
5814
5765
|
__Pyx_GOTREF(__pyx_t_1);
|
|
5815
5766
|
__pyx_r = __pyx_t_1;
|
|
5816
5767
|
__pyx_t_1 = 0;
|
|
5817
5768
|
goto __pyx_L0;
|
|
5818
5769
|
|
|
5819
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5770
|
+
/* "a_sync/asyncio/create_task.pyx":232
|
|
5820
5771
|
* """
|
|
5821
5772
|
* cdef str state = fut._state
|
|
5822
5773
|
* if PyUnicode_CompareWithASCIIString(state, b"FINISHED") == 0: # <<<<<<<<<<<<<<
|
|
@@ -5825,73 +5776,122 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task__get_exception(PyObject
|
|
|
5825
5776
|
*/
|
|
5826
5777
|
}
|
|
5827
5778
|
|
|
5828
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5779
|
+
/* "a_sync/asyncio/create_task.pyx":235
|
|
5829
5780
|
* fut._Future__log_traceback = False
|
|
5830
5781
|
* return fut._exception
|
|
5831
5782
|
* if PyUnicode_CompareWithASCIIString(state, b"CANCELLED") == 0: # <<<<<<<<<<<<<<
|
|
5832
|
-
* raise
|
|
5833
|
-
*
|
|
5783
|
+
* raise (
|
|
5784
|
+
* CancelledError()
|
|
5834
5785
|
*/
|
|
5835
|
-
__Pyx_TraceLine(
|
|
5786
|
+
__Pyx_TraceLine(235,0,__PYX_ERR(0, 235, __pyx_L1_error))
|
|
5836
5787
|
__pyx_t_2 = (PyUnicode_CompareWithASCIIString(__pyx_v_state, ((char const *)"CANCELLED")) == 0);
|
|
5837
5788
|
if (unlikely(__pyx_t_2)) {
|
|
5838
5789
|
|
|
5839
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5840
|
-
*
|
|
5790
|
+
/* "a_sync/asyncio/create_task.pyx":238
|
|
5791
|
+
* raise (
|
|
5792
|
+
* CancelledError()
|
|
5793
|
+
* if PY_VERSION_HEX < 0x03090000 # Python 3.9 # <<<<<<<<<<<<<<
|
|
5794
|
+
* else fut._make_cancelled_error()
|
|
5795
|
+
* )
|
|
5796
|
+
*/
|
|
5797
|
+
__Pyx_TraceLine(238,0,__PYX_ERR(0, 238, __pyx_L1_error))
|
|
5798
|
+
__pyx_t_2 = (PY_VERSION_HEX < 0x03090000);
|
|
5799
|
+
if (__pyx_t_2) {
|
|
5800
|
+
|
|
5801
|
+
/* "a_sync/asyncio/create_task.pyx":237
|
|
5841
5802
|
* if PyUnicode_CompareWithASCIIString(state, b"CANCELLED") == 0:
|
|
5842
|
-
* raise
|
|
5803
|
+
* raise (
|
|
5804
|
+
* CancelledError() # <<<<<<<<<<<<<<
|
|
5805
|
+
* if PY_VERSION_HEX < 0x03090000 # Python 3.9
|
|
5806
|
+
* else fut._make_cancelled_error()
|
|
5807
|
+
*/
|
|
5808
|
+
__Pyx_TraceLine(237,0,__PYX_ERR(0, 237, __pyx_L1_error))
|
|
5809
|
+
__Pyx_INCREF(__pyx_v_6a_sync_7asyncio_11create_task_CancelledError);
|
|
5810
|
+
__pyx_t_4 = __pyx_v_6a_sync_7asyncio_11create_task_CancelledError; __pyx_t_5 = NULL;
|
|
5811
|
+
__pyx_t_6 = 0;
|
|
5812
|
+
#if CYTHON_UNPACK_METHODS
|
|
5813
|
+
if (unlikely(PyMethod_Check(__pyx_t_4))) {
|
|
5814
|
+
__pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
|
|
5815
|
+
if (likely(__pyx_t_5)) {
|
|
5816
|
+
PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
|
|
5817
|
+
__Pyx_INCREF(__pyx_t_5);
|
|
5818
|
+
__Pyx_INCREF(function);
|
|
5819
|
+
__Pyx_DECREF_SET(__pyx_t_4, function);
|
|
5820
|
+
__pyx_t_6 = 1;
|
|
5821
|
+
}
|
|
5822
|
+
}
|
|
5823
|
+
#endif
|
|
5824
|
+
{
|
|
5825
|
+
PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL};
|
|
5826
|
+
__pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 0+__pyx_t_6);
|
|
5827
|
+
__Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
5828
|
+
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 237, __pyx_L1_error)
|
|
5829
|
+
__Pyx_GOTREF(__pyx_t_3);
|
|
5830
|
+
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
5831
|
+
}
|
|
5832
|
+
__pyx_t_1 = __pyx_t_3;
|
|
5833
|
+
__pyx_t_3 = 0;
|
|
5834
|
+
} else {
|
|
5835
|
+
|
|
5836
|
+
/* "a_sync/asyncio/create_task.pyx":239
|
|
5837
|
+
* CancelledError()
|
|
5838
|
+
* if PY_VERSION_HEX < 0x03090000 # Python 3.9
|
|
5839
|
+
* else fut._make_cancelled_error() # <<<<<<<<<<<<<<
|
|
5840
|
+
* )
|
|
5843
5841
|
* raise InvalidStateError('Exception is not set.')
|
|
5844
|
-
*
|
|
5845
5842
|
*/
|
|
5846
|
-
|
|
5847
|
-
|
|
5848
|
-
|
|
5849
|
-
|
|
5850
|
-
|
|
5851
|
-
|
|
5852
|
-
|
|
5853
|
-
|
|
5854
|
-
|
|
5855
|
-
|
|
5856
|
-
|
|
5857
|
-
|
|
5858
|
-
|
|
5859
|
-
|
|
5843
|
+
__Pyx_TraceLine(239,0,__PYX_ERR(0, 239, __pyx_L1_error))
|
|
5844
|
+
__pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_fut, __pyx_n_s_make_cancelled_error); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 239, __pyx_L1_error)
|
|
5845
|
+
__Pyx_GOTREF(__pyx_t_4);
|
|
5846
|
+
__pyx_t_5 = NULL;
|
|
5847
|
+
__pyx_t_6 = 0;
|
|
5848
|
+
#if CYTHON_UNPACK_METHODS
|
|
5849
|
+
if (likely(PyMethod_Check(__pyx_t_4))) {
|
|
5850
|
+
__pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
|
|
5851
|
+
if (likely(__pyx_t_5)) {
|
|
5852
|
+
PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
|
|
5853
|
+
__Pyx_INCREF(__pyx_t_5);
|
|
5854
|
+
__Pyx_INCREF(function);
|
|
5855
|
+
__Pyx_DECREF_SET(__pyx_t_4, function);
|
|
5856
|
+
__pyx_t_6 = 1;
|
|
5857
|
+
}
|
|
5860
5858
|
}
|
|
5861
|
-
|
|
5862
|
-
|
|
5863
|
-
|
|
5864
|
-
|
|
5865
|
-
|
|
5866
|
-
|
|
5867
|
-
|
|
5868
|
-
|
|
5869
|
-
|
|
5859
|
+
#endif
|
|
5860
|
+
{
|
|
5861
|
+
PyObject *__pyx_callargs[2] = {__pyx_t_5, NULL};
|
|
5862
|
+
__pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_4, __pyx_callargs+1-__pyx_t_6, 0+__pyx_t_6);
|
|
5863
|
+
__Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
|
|
5864
|
+
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 239, __pyx_L1_error)
|
|
5865
|
+
__Pyx_GOTREF(__pyx_t_3);
|
|
5866
|
+
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
5867
|
+
}
|
|
5868
|
+
__pyx_t_1 = __pyx_t_3;
|
|
5869
|
+
__pyx_t_3 = 0;
|
|
5870
5870
|
}
|
|
5871
5871
|
__Pyx_Raise(__pyx_t_1, 0, 0, 0);
|
|
5872
5872
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
5873
|
-
__PYX_ERR(0,
|
|
5873
|
+
__PYX_ERR(0, 236, __pyx_L1_error)
|
|
5874
5874
|
|
|
5875
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5875
|
+
/* "a_sync/asyncio/create_task.pyx":235
|
|
5876
5876
|
* fut._Future__log_traceback = False
|
|
5877
5877
|
* return fut._exception
|
|
5878
5878
|
* if PyUnicode_CompareWithASCIIString(state, b"CANCELLED") == 0: # <<<<<<<<<<<<<<
|
|
5879
|
-
* raise
|
|
5880
|
-
*
|
|
5879
|
+
* raise (
|
|
5880
|
+
* CancelledError()
|
|
5881
5881
|
*/
|
|
5882
5882
|
}
|
|
5883
5883
|
|
|
5884
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5885
|
-
*
|
|
5886
|
-
*
|
|
5884
|
+
/* "a_sync/asyncio/create_task.pyx":241
|
|
5885
|
+
* else fut._make_cancelled_error()
|
|
5886
|
+
* )
|
|
5887
5887
|
* raise InvalidStateError('Exception is not set.') # <<<<<<<<<<<<<<
|
|
5888
5888
|
*
|
|
5889
5889
|
*
|
|
5890
5890
|
*/
|
|
5891
|
-
__Pyx_TraceLine(
|
|
5891
|
+
__Pyx_TraceLine(241,0,__PYX_ERR(0, 241, __pyx_L1_error))
|
|
5892
5892
|
__Pyx_INCREF(__pyx_v_6a_sync_7asyncio_11create_task_InvalidStateError);
|
|
5893
5893
|
__pyx_t_3 = __pyx_v_6a_sync_7asyncio_11create_task_InvalidStateError; __pyx_t_4 = NULL;
|
|
5894
|
-
|
|
5894
|
+
__pyx_t_6 = 0;
|
|
5895
5895
|
#if CYTHON_UNPACK_METHODS
|
|
5896
5896
|
if (unlikely(PyMethod_Check(__pyx_t_3))) {
|
|
5897
5897
|
__pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
|
|
@@ -5900,23 +5900,23 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task__get_exception(PyObject
|
|
|
5900
5900
|
__Pyx_INCREF(__pyx_t_4);
|
|
5901
5901
|
__Pyx_INCREF(function);
|
|
5902
5902
|
__Pyx_DECREF_SET(__pyx_t_3, function);
|
|
5903
|
-
|
|
5903
|
+
__pyx_t_6 = 1;
|
|
5904
5904
|
}
|
|
5905
5905
|
}
|
|
5906
5906
|
#endif
|
|
5907
5907
|
{
|
|
5908
5908
|
PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_kp_u_Exception_is_not_set};
|
|
5909
|
-
__pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-
|
|
5909
|
+
__pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_3, __pyx_callargs+1-__pyx_t_6, 1+__pyx_t_6);
|
|
5910
5910
|
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
5911
|
-
if (unlikely(!__pyx_t_1)) __PYX_ERR(0,
|
|
5911
|
+
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 241, __pyx_L1_error)
|
|
5912
5912
|
__Pyx_GOTREF(__pyx_t_1);
|
|
5913
5913
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
5914
5914
|
}
|
|
5915
5915
|
__Pyx_Raise(__pyx_t_1, 0, 0, 0);
|
|
5916
5916
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
5917
|
-
__PYX_ERR(0,
|
|
5917
|
+
__PYX_ERR(0, 241, __pyx_L1_error)
|
|
5918
5918
|
|
|
5919
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5919
|
+
/* "a_sync/asyncio/create_task.pyx":223
|
|
5920
5920
|
*
|
|
5921
5921
|
*
|
|
5922
5922
|
* cdef object _get_exception(fut: Future): # <<<<<<<<<<<<<<
|
|
@@ -5929,6 +5929,7 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task__get_exception(PyObject
|
|
|
5929
5929
|
__Pyx_XDECREF(__pyx_t_1);
|
|
5930
5930
|
__Pyx_XDECREF(__pyx_t_3);
|
|
5931
5931
|
__Pyx_XDECREF(__pyx_t_4);
|
|
5932
|
+
__Pyx_XDECREF(__pyx_t_5);
|
|
5932
5933
|
__Pyx_AddTraceback("a_sync.asyncio.create_task._get_exception", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
5933
5934
|
__pyx_r = 0;
|
|
5934
5935
|
__pyx_L0:;
|
|
@@ -5939,7 +5940,7 @@ static PyObject *__pyx_f_6a_sync_7asyncio_11create_task__get_exception(PyObject
|
|
|
5939
5940
|
return __pyx_r;
|
|
5940
5941
|
}
|
|
5941
5942
|
|
|
5942
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5943
|
+
/* "a_sync/asyncio/create_task.pyx":244
|
|
5943
5944
|
*
|
|
5944
5945
|
*
|
|
5945
5946
|
* cdef inline bint _exc_exists(tup: Tuple[Future, Optional[Exception]]): # <<<<<<<<<<<<<<
|
|
@@ -5957,24 +5958,24 @@ static CYTHON_INLINE int __pyx_f_6a_sync_7asyncio_11create_task__exc_exists(PyOb
|
|
|
5957
5958
|
const char *__pyx_filename = NULL;
|
|
5958
5959
|
int __pyx_clineno = 0;
|
|
5959
5960
|
__Pyx_RefNannySetupContext("_exc_exists", 1);
|
|
5960
|
-
__Pyx_TraceCall("_exc_exists", __pyx_f[0],
|
|
5961
|
+
__Pyx_TraceCall("_exc_exists", __pyx_f[0], 244, 0, __PYX_ERR(0, 244, __pyx_L1_error));
|
|
5961
5962
|
|
|
5962
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5963
|
+
/* "a_sync/asyncio/create_task.pyx":245
|
|
5963
5964
|
*
|
|
5964
5965
|
* cdef inline bint _exc_exists(tup: Tuple[Future, Optional[Exception]]):
|
|
5965
5966
|
* return tup[1] is not None # <<<<<<<<<<<<<<
|
|
5966
5967
|
*
|
|
5967
5968
|
*
|
|
5968
5969
|
*/
|
|
5969
|
-
__Pyx_TraceLine(
|
|
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,
|
|
5970
|
+
__Pyx_TraceLine(245,0,__PYX_ERR(0, 245, __pyx_L1_error))
|
|
5971
|
+
__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, 245, __pyx_L1_error)
|
|
5971
5972
|
__Pyx_GOTREF(__pyx_t_1);
|
|
5972
5973
|
__pyx_t_2 = (__pyx_t_1 != Py_None);
|
|
5973
5974
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
5974
5975
|
__pyx_r = __pyx_t_2;
|
|
5975
5976
|
goto __pyx_L0;
|
|
5976
5977
|
|
|
5977
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5978
|
+
/* "a_sync/asyncio/create_task.pyx":244
|
|
5978
5979
|
*
|
|
5979
5980
|
*
|
|
5980
5981
|
* cdef inline bint _exc_exists(tup: Tuple[Future, Optional[Exception]]): # <<<<<<<<<<<<<<
|
|
@@ -5994,7 +5995,7 @@ static CYTHON_INLINE int __pyx_f_6a_sync_7asyncio_11create_task__exc_exists(PyOb
|
|
|
5994
5995
|
}
|
|
5995
5996
|
static PyObject *__pyx_gb_6a_sync_7asyncio_11create_task_7generator1(__pyx_CoroutineObject *__pyx_generator, CYTHON_UNUSED PyThreadState *__pyx_tstate, PyObject *__pyx_sent_value); /* proto */
|
|
5996
5997
|
|
|
5997
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
5998
|
+
/* "a_sync/asyncio/create_task.pyx":250
|
|
5998
5999
|
* cdef object __persisted_task_exc_wrap
|
|
5999
6000
|
*
|
|
6000
6001
|
* async def __persisted_task_exc_wrap(task: "Task[T]") -> T: # <<<<<<<<<<<<<<
|
|
@@ -6056,12 +6057,12 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
|
|
|
6056
6057
|
(void)__Pyx_Arg_NewRef_FASTCALL(values[0]);
|
|
6057
6058
|
kw_args--;
|
|
6058
6059
|
}
|
|
6059
|
-
else if (unlikely(PyErr_Occurred())) __PYX_ERR(0,
|
|
6060
|
+
else if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 250, __pyx_L3_error)
|
|
6060
6061
|
else goto __pyx_L5_argtuple_error;
|
|
6061
6062
|
}
|
|
6062
6063
|
if (unlikely(kw_args > 0)) {
|
|
6063
6064
|
const Py_ssize_t kwd_pos_args = __pyx_nargs;
|
|
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,
|
|
6065
|
+
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values + 0, kwd_pos_args, "__persisted_task_exc_wrap") < 0)) __PYX_ERR(0, 250, __pyx_L3_error)
|
|
6065
6066
|
}
|
|
6066
6067
|
} else if (unlikely(__pyx_nargs != 1)) {
|
|
6067
6068
|
goto __pyx_L5_argtuple_error;
|
|
@@ -6072,7 +6073,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds
|
|
|
6072
6073
|
}
|
|
6073
6074
|
goto __pyx_L6_skip;
|
|
6074
6075
|
__pyx_L5_argtuple_error:;
|
|
6075
|
-
__Pyx_RaiseArgtupleInvalid("__persisted_task_exc_wrap", 1, 1, 1, __pyx_nargs); __PYX_ERR(0,
|
|
6076
|
+
__Pyx_RaiseArgtupleInvalid("__persisted_task_exc_wrap", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 250, __pyx_L3_error)
|
|
6076
6077
|
__pyx_L6_skip:;
|
|
6077
6078
|
goto __pyx_L4_argument_unpacking_done;
|
|
6078
6079
|
__pyx_L3_error:;
|
|
@@ -6111,7 +6112,7 @@ static PyObject *__pyx_pf_6a_sync_7asyncio_11create_task_5__persisted_task_exc_w
|
|
|
6111
6112
|
if (unlikely(!__pyx_cur_scope)) {
|
|
6112
6113
|
__pyx_cur_scope = ((struct __pyx_obj_6a_sync_7asyncio_11create_task___pyx_scope_struct_1___persisted_task_exc_wrap *)Py_None);
|
|
6113
6114
|
__Pyx_INCREF(Py_None);
|
|
6114
|
-
__PYX_ERR(0,
|
|
6115
|
+
__PYX_ERR(0, 250, __pyx_L1_error)
|
|
6115
6116
|
} else {
|
|
6116
6117
|
__Pyx_GOTREF((PyObject *)__pyx_cur_scope);
|
|
6117
6118
|
}
|
|
@@ -6119,7 +6120,7 @@ static PyObject *__pyx_pf_6a_sync_7asyncio_11create_task_5__persisted_task_exc_w
|
|
|
6119
6120
|
__Pyx_INCREF(__pyx_cur_scope->__pyx_v_task);
|
|
6120
6121
|
__Pyx_GIVEREF(__pyx_cur_scope->__pyx_v_task);
|
|
6121
6122
|
{
|
|
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,
|
|
6123
|
+
__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, 250, __pyx_L1_error)
|
|
6123
6124
|
__Pyx_DECREF(__pyx_cur_scope);
|
|
6124
6125
|
__Pyx_RefNannyFinishContext();
|
|
6125
6126
|
return (PyObject *) gen;
|
|
@@ -6165,7 +6166,7 @@ static PyObject *__pyx_gb_6a_sync_7asyncio_11create_task_7generator1(__pyx_Corou
|
|
|
6165
6166
|
__Pyx_RefNannyDeclarations
|
|
6166
6167
|
__Pyx_RefNannySetupContext("__persisted_task_exc_wrap", 0);
|
|
6167
6168
|
__Pyx_TraceFrameInit(__pyx_codeobj__6)
|
|
6168
|
-
__Pyx_TraceCall("__persisted_task_exc_wrap", __pyx_f[0],
|
|
6169
|
+
__Pyx_TraceCall("__persisted_task_exc_wrap", __pyx_f[0], 250, 0, __PYX_ERR(0, 250, __pyx_L1_error));
|
|
6169
6170
|
switch (__pyx_generator->resume_label) {
|
|
6170
6171
|
case 0: goto __pyx_L3_first_run;
|
|
6171
6172
|
case 1: goto __pyx_L10_resume_from_await;
|
|
@@ -6175,16 +6176,16 @@ static PyObject *__pyx_gb_6a_sync_7asyncio_11create_task_7generator1(__pyx_Corou
|
|
|
6175
6176
|
return NULL;
|
|
6176
6177
|
}
|
|
6177
6178
|
__pyx_L3_first_run:;
|
|
6178
|
-
if (unlikely(!__pyx_sent_value)) __PYX_ERR(0,
|
|
6179
|
+
if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 250, __pyx_L1_error)
|
|
6179
6180
|
|
|
6180
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
6181
|
+
/* "a_sync/asyncio/create_task.pyx":263
|
|
6181
6182
|
* - :class:`PersistedTaskException`
|
|
6182
6183
|
* """
|
|
6183
6184
|
* try: # <<<<<<<<<<<<<<
|
|
6184
6185
|
* return await task
|
|
6185
6186
|
* except Exception as e:
|
|
6186
6187
|
*/
|
|
6187
|
-
__Pyx_TraceLine(
|
|
6188
|
+
__Pyx_TraceLine(263,0,__PYX_ERR(0, 263, __pyx_L1_error))
|
|
6188
6189
|
{
|
|
6189
6190
|
__Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
|
|
6190
6191
|
__Pyx_XGOTREF(__pyx_t_1);
|
|
@@ -6192,14 +6193,14 @@ static PyObject *__pyx_gb_6a_sync_7asyncio_11create_task_7generator1(__pyx_Corou
|
|
|
6192
6193
|
__Pyx_XGOTREF(__pyx_t_3);
|
|
6193
6194
|
/*try:*/ {
|
|
6194
6195
|
|
|
6195
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
6196
|
+
/* "a_sync/asyncio/create_task.pyx":264
|
|
6196
6197
|
* """
|
|
6197
6198
|
* try:
|
|
6198
6199
|
* return await task # <<<<<<<<<<<<<<
|
|
6199
6200
|
* except Exception as e:
|
|
6200
6201
|
* raise PersistedTaskException(e, task) from e
|
|
6201
6202
|
*/
|
|
6202
|
-
__Pyx_TraceLine(
|
|
6203
|
+
__Pyx_TraceLine(264,0,__PYX_ERR(0, 264, __pyx_L4_error))
|
|
6203
6204
|
__Pyx_XDECREF(__pyx_r);
|
|
6204
6205
|
__pyx_r = __Pyx_Coroutine_Yield_From(__pyx_generator, __pyx_cur_scope->__pyx_v_task);
|
|
6205
6206
|
__Pyx_XGOTREF(__pyx_r);
|
|
@@ -6227,18 +6228,18 @@ static PyObject *__pyx_gb_6a_sync_7asyncio_11create_task_7generator1(__pyx_Corou
|
|
|
6227
6228
|
__pyx_t_3 = __pyx_cur_scope->__pyx_t_2;
|
|
6228
6229
|
__pyx_cur_scope->__pyx_t_2 = 0;
|
|
6229
6230
|
__Pyx_XGOTREF(__pyx_t_3);
|
|
6230
|
-
if (unlikely(!__pyx_sent_value)) __PYX_ERR(0,
|
|
6231
|
+
if (unlikely(!__pyx_sent_value)) __PYX_ERR(0, 264, __pyx_L4_error)
|
|
6231
6232
|
__pyx_t_4 = __pyx_sent_value; __Pyx_INCREF(__pyx_t_4);
|
|
6232
6233
|
} else {
|
|
6233
6234
|
__pyx_t_4 = NULL;
|
|
6234
|
-
if (__Pyx_PyGen_FetchStopIterationValue(&__pyx_t_4) < 0) __PYX_ERR(0,
|
|
6235
|
+
if (__Pyx_PyGen_FetchStopIterationValue(&__pyx_t_4) < 0) __PYX_ERR(0, 264, __pyx_L4_error)
|
|
6235
6236
|
__Pyx_GOTREF(__pyx_t_4);
|
|
6236
6237
|
}
|
|
6237
6238
|
__pyx_r = NULL; __Pyx_ReturnWithStopIteration(__pyx_t_4);
|
|
6238
6239
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
6239
6240
|
goto __pyx_L8_try_return;
|
|
6240
6241
|
|
|
6241
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
6242
|
+
/* "a_sync/asyncio/create_task.pyx":263
|
|
6242
6243
|
* - :class:`PersistedTaskException`
|
|
6243
6244
|
* """
|
|
6244
6245
|
* try: # <<<<<<<<<<<<<<
|
|
@@ -6249,18 +6250,18 @@ static PyObject *__pyx_gb_6a_sync_7asyncio_11create_task_7generator1(__pyx_Corou
|
|
|
6249
6250
|
__pyx_L4_error:;
|
|
6250
6251
|
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
6251
6252
|
|
|
6252
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
6253
|
+
/* "a_sync/asyncio/create_task.pyx":265
|
|
6253
6254
|
* try:
|
|
6254
6255
|
* return await task
|
|
6255
6256
|
* except Exception as e: # <<<<<<<<<<<<<<
|
|
6256
6257
|
* raise PersistedTaskException(e, task) from e
|
|
6257
6258
|
*
|
|
6258
6259
|
*/
|
|
6259
|
-
__Pyx_TraceLine(
|
|
6260
|
+
__Pyx_TraceLine(265,0,__PYX_ERR(0, 265, __pyx_L6_except_error))
|
|
6260
6261
|
__pyx_t_5 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
|
|
6261
6262
|
if (__pyx_t_5) {
|
|
6262
6263
|
__Pyx_AddTraceback("a_sync.asyncio.create_task.__persisted_task_exc_wrap", __pyx_clineno, __pyx_lineno, __pyx_filename);
|
|
6263
|
-
if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(0,
|
|
6264
|
+
if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(0, 265, __pyx_L6_except_error)
|
|
6264
6265
|
__Pyx_XGOTREF(__pyx_t_4);
|
|
6265
6266
|
__Pyx_XGOTREF(__pyx_t_6);
|
|
6266
6267
|
__Pyx_XGOTREF(__pyx_t_7);
|
|
@@ -6269,14 +6270,14 @@ static PyObject *__pyx_gb_6a_sync_7asyncio_11create_task_7generator1(__pyx_Corou
|
|
|
6269
6270
|
__pyx_cur_scope->__pyx_v_e = __pyx_t_6;
|
|
6270
6271
|
/*try:*/ {
|
|
6271
6272
|
|
|
6272
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
6273
|
+
/* "a_sync/asyncio/create_task.pyx":266
|
|
6273
6274
|
* return await task
|
|
6274
6275
|
* except Exception as e:
|
|
6275
6276
|
* raise PersistedTaskException(e, task) from e # <<<<<<<<<<<<<<
|
|
6276
6277
|
*
|
|
6277
6278
|
*
|
|
6278
6279
|
*/
|
|
6279
|
-
__Pyx_TraceLine(
|
|
6280
|
+
__Pyx_TraceLine(266,0,__PYX_ERR(0, 266, __pyx_L16_error))
|
|
6280
6281
|
__Pyx_INCREF(__pyx_v_6a_sync_7asyncio_11create_task_PersistedTaskException);
|
|
6281
6282
|
__pyx_t_9 = __pyx_v_6a_sync_7asyncio_11create_task_PersistedTaskException; __pyx_t_10 = NULL;
|
|
6282
6283
|
__pyx_t_11 = 0;
|
|
@@ -6296,23 +6297,23 @@ static PyObject *__pyx_gb_6a_sync_7asyncio_11create_task_7generator1(__pyx_Corou
|
|
|
6296
6297
|
PyObject *__pyx_callargs[3] = {__pyx_t_10, __pyx_cur_scope->__pyx_v_e, __pyx_cur_scope->__pyx_v_task};
|
|
6297
6298
|
__pyx_t_8 = __Pyx_PyObject_FastCall(__pyx_t_9, __pyx_callargs+1-__pyx_t_11, 2+__pyx_t_11);
|
|
6298
6299
|
__Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
|
|
6299
|
-
if (unlikely(!__pyx_t_8)) __PYX_ERR(0,
|
|
6300
|
+
if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 266, __pyx_L16_error)
|
|
6300
6301
|
__Pyx_GOTREF(__pyx_t_8);
|
|
6301
6302
|
__Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
|
|
6302
6303
|
}
|
|
6303
6304
|
__Pyx_Raise(__pyx_t_8, 0, 0, __pyx_cur_scope->__pyx_v_e);
|
|
6304
6305
|
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
|
|
6305
|
-
__PYX_ERR(0,
|
|
6306
|
+
__PYX_ERR(0, 266, __pyx_L16_error)
|
|
6306
6307
|
}
|
|
6307
6308
|
|
|
6308
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
6309
|
+
/* "a_sync/asyncio/create_task.pyx":265
|
|
6309
6310
|
* try:
|
|
6310
6311
|
* return await task
|
|
6311
6312
|
* except Exception as e: # <<<<<<<<<<<<<<
|
|
6312
6313
|
* raise PersistedTaskException(e, task) from e
|
|
6313
6314
|
*
|
|
6314
6315
|
*/
|
|
6315
|
-
__Pyx_TraceLine(
|
|
6316
|
+
__Pyx_TraceLine(265,0,__PYX_ERR(0, 265, __pyx_L16_error))
|
|
6316
6317
|
/*finally:*/ {
|
|
6317
6318
|
__pyx_L16_error:;
|
|
6318
6319
|
/*exception exit:*/{
|
|
@@ -6352,7 +6353,7 @@ static PyObject *__pyx_gb_6a_sync_7asyncio_11create_task_7generator1(__pyx_Corou
|
|
|
6352
6353
|
}
|
|
6353
6354
|
goto __pyx_L6_except_error;
|
|
6354
6355
|
|
|
6355
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
6356
|
+
/* "a_sync/asyncio/create_task.pyx":263
|
|
6356
6357
|
* - :class:`PersistedTaskException`
|
|
6357
6358
|
* """
|
|
6358
6359
|
* try: # <<<<<<<<<<<<<<
|
|
@@ -6374,7 +6375,7 @@ static PyObject *__pyx_gb_6a_sync_7asyncio_11create_task_7generator1(__pyx_Corou
|
|
|
6374
6375
|
}
|
|
6375
6376
|
CYTHON_MAYBE_UNUSED_VAR(__pyx_cur_scope);
|
|
6376
6377
|
|
|
6377
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
6378
|
+
/* "a_sync/asyncio/create_task.pyx":250
|
|
6378
6379
|
* cdef object __persisted_task_exc_wrap
|
|
6379
6380
|
*
|
|
6380
6381
|
* async def __persisted_task_exc_wrap(task: "Task[T]") -> T: # <<<<<<<<<<<<<<
|
|
@@ -6404,7 +6405,7 @@ static PyObject *__pyx_gb_6a_sync_7asyncio_11create_task_7generator1(__pyx_Corou
|
|
|
6404
6405
|
return __pyx_r;
|
|
6405
6406
|
}
|
|
6406
6407
|
|
|
6407
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
6408
|
+
/* "a_sync/asyncio/create_task.pyx":274
|
|
6408
6409
|
* # For testing purposes only
|
|
6409
6410
|
*
|
|
6410
6411
|
* def _get_persisted_tasks() -> Set[Task]: # <<<<<<<<<<<<<<
|
|
@@ -6438,20 +6439,20 @@ static PyObject *__pyx_pf_6a_sync_7asyncio_11create_task_8_get_persisted_tasks(C
|
|
|
6438
6439
|
int __pyx_clineno = 0;
|
|
6439
6440
|
__Pyx_TraceFrameInit(__pyx_codeobj__7)
|
|
6440
6441
|
__Pyx_RefNannySetupContext("_get_persisted_tasks", 1);
|
|
6441
|
-
__Pyx_TraceCall("_get_persisted_tasks", __pyx_f[0],
|
|
6442
|
+
__Pyx_TraceCall("_get_persisted_tasks", __pyx_f[0], 274, 0, __PYX_ERR(0, 274, __pyx_L1_error));
|
|
6442
6443
|
|
|
6443
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
6444
|
+
/* "a_sync/asyncio/create_task.pyx":276
|
|
6444
6445
|
* def _get_persisted_tasks() -> Set[Task]:
|
|
6445
6446
|
* # we can't import this directly to the .py test file
|
|
6446
6447
|
* return _persisted_tasks # <<<<<<<<<<<<<<
|
|
6447
6448
|
*/
|
|
6448
|
-
__Pyx_TraceLine(
|
|
6449
|
+
__Pyx_TraceLine(276,0,__PYX_ERR(0, 276, __pyx_L1_error))
|
|
6449
6450
|
__Pyx_XDECREF(__pyx_r);
|
|
6450
6451
|
__Pyx_INCREF(_persisted_tasks);
|
|
6451
6452
|
__pyx_r = _persisted_tasks;
|
|
6452
6453
|
goto __pyx_L0;
|
|
6453
6454
|
|
|
6454
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
6455
|
+
/* "a_sync/asyncio/create_task.pyx":274
|
|
6455
6456
|
* # For testing purposes only
|
|
6456
6457
|
*
|
|
6457
6458
|
* def _get_persisted_tasks() -> Set[Task]: # <<<<<<<<<<<<<<
|
|
@@ -7002,6 +7003,7 @@ static int __Pyx_CreateStringTabAndInitStrings(void) {
|
|
|
7002
7003
|
__Pyx_StringTabEntry __pyx_string_tab[] = {
|
|
7003
7004
|
{&__pyx_n_s_Awaitable, __pyx_k_Awaitable, sizeof(__pyx_k_Awaitable), 0, 0, 1, 1},
|
|
7004
7005
|
{&__pyx_kp_s_Awaitable_T, __pyx_k_Awaitable_T, sizeof(__pyx_k_Awaitable_T), 0, 0, 1, 0},
|
|
7006
|
+
{&__pyx_n_s_CancelledError, __pyx_k_CancelledError, sizeof(__pyx_k_CancelledError), 0, 0, 1, 1},
|
|
7005
7007
|
{&__pyx_kp_u_Exception_is_not_set, __pyx_k_Exception_is_not_set, sizeof(__pyx_k_Exception_is_not_set), 0, 1, 0, 0},
|
|
7006
7008
|
{&__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},
|
|
7007
7009
|
{&__pyx_n_s_Future, __pyx_k_Future, sizeof(__pyx_k_Future), 0, 0, 1, 1},
|
|
@@ -7036,7 +7038,7 @@ static int __Pyx_CreateStringTabAndInitStrings(void) {
|
|
|
7036
7038
|
{&__pyx_n_s_asyncio_tasks, __pyx_k_asyncio_tasks, sizeof(__pyx_k_asyncio_tasks), 0, 0, 1, 1},
|
|
7037
7039
|
{&__pyx_n_s_await, __pyx_k_await, sizeof(__pyx_k_await), 0, 0, 1, 1},
|
|
7038
7040
|
{&__pyx_n_s_await_2, __pyx_k_await_2, sizeof(__pyx_k_await_2), 0, 0, 1, 1},
|
|
7039
|
-
{&
|
|
7041
|
+
{&__pyx_kp_u_await_line_152, __pyx_k_await_line_152, sizeof(__pyx_k_await_line_152), 0, 1, 0, 0},
|
|
7040
7042
|
{&__pyx_n_s_awaitable, __pyx_k_awaitable, sizeof(__pyx_k_awaitable), 0, 0, 1, 1},
|
|
7041
7043
|
{&__pyx_n_s_bint, __pyx_k_bint, sizeof(__pyx_k_bint), 0, 0, 1, 1},
|
|
7042
7044
|
{&__pyx_n_s_call_exception_handler, __pyx_k_call_exception_handler, sizeof(__pyx_k_call_exception_handler), 0, 0, 1, 1},
|
|
@@ -7048,7 +7050,7 @@ static int __Pyx_CreateStringTabAndInitStrings(void) {
|
|
|
7048
7050
|
{&__pyx_n_s_coro, __pyx_k_coro, sizeof(__pyx_k_coro), 0, 0, 1, 1},
|
|
7049
7051
|
{&__pyx_n_s_create_task, __pyx_k_create_task, sizeof(__pyx_k_create_task), 0, 0, 1, 1},
|
|
7050
7052
|
{&__pyx_n_u_create_task, __pyx_k_create_task, sizeof(__pyx_k_create_task), 0, 1, 0, 1},
|
|
7051
|
-
{&
|
|
7053
|
+
{&__pyx_kp_u_create_task_line_49, __pyx_k_create_task_line_49, sizeof(__pyx_k_create_task_line_49), 0, 1, 0, 0},
|
|
7052
7054
|
{&__pyx_n_s_difference_update, __pyx_k_difference_update, sizeof(__pyx_k_difference_update), 0, 0, 1, 1},
|
|
7053
7055
|
{&__pyx_kp_u_disable, __pyx_k_disable, sizeof(__pyx_k_disable), 0, 1, 0, 0},
|
|
7054
7056
|
{&__pyx_n_s_e, __pyx_k_e, sizeof(__pyx_k_e), 0, 0, 1, 1},
|
|
@@ -7107,8 +7109,8 @@ static int __Pyx_CreateStringTabAndInitStrings(void) {
|
|
|
7107
7109
|
}
|
|
7108
7110
|
/* #### Code section: cached_builtins ### */
|
|
7109
7111
|
static CYTHON_SMALL_CODE int __Pyx_InitCachedBuiltins(void) {
|
|
7110
|
-
__pyx_builtin_RuntimeError = __Pyx_GetBuiltinName(__pyx_n_s_RuntimeError); if (!__pyx_builtin_RuntimeError) __PYX_ERR(0,
|
|
7111
|
-
__pyx_builtin_filter = __Pyx_GetBuiltinName(__pyx_n_s_filter); if (!__pyx_builtin_filter) __PYX_ERR(0,
|
|
7112
|
+
__pyx_builtin_RuntimeError = __Pyx_GetBuiltinName(__pyx_n_s_RuntimeError); if (!__pyx_builtin_RuntimeError) __PYX_ERR(0, 173, __pyx_L1_error)
|
|
7113
|
+
__pyx_builtin_filter = __Pyx_GetBuiltinName(__pyx_n_s_filter); if (!__pyx_builtin_filter) __PYX_ERR(0, 195, __pyx_L1_error)
|
|
7112
7114
|
return 0;
|
|
7113
7115
|
__pyx_L1_error:;
|
|
7114
7116
|
return -1;
|
|
@@ -7142,50 +7144,50 @@ static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) {
|
|
|
7142
7144
|
__Pyx_GOTREF(__pyx_tuple__9);
|
|
7143
7145
|
__Pyx_GIVEREF(__pyx_tuple__9);
|
|
7144
7146
|
|
|
7145
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
7147
|
+
/* "a_sync/asyncio/create_task.pyx":49
|
|
7146
7148
|
*
|
|
7147
7149
|
*
|
|
7148
7150
|
* def create_task( # <<<<<<<<<<<<<<
|
|
7149
7151
|
* coro: Awaitable[T],
|
|
7150
7152
|
* *,
|
|
7151
7153
|
*/
|
|
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,
|
|
7154
|
+
__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, 49, __pyx_L1_error)
|
|
7153
7155
|
__Pyx_GOTREF(__pyx_tuple__11);
|
|
7154
7156
|
__Pyx_GIVEREF(__pyx_tuple__11);
|
|
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,
|
|
7157
|
+
__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, 49, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__4)) __PYX_ERR(0, 49, __pyx_L1_error)
|
|
7156
7158
|
|
|
7157
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
7159
|
+
/* "a_sync/asyncio/create_task.pyx":152
|
|
7158
7160
|
* cdef object __await
|
|
7159
7161
|
*
|
|
7160
7162
|
* async def __await(awaitable: Awaitable[T]) -> T: # <<<<<<<<<<<<<<
|
|
7161
7163
|
* """Wait for the completion of a non-coroutine Awaitable.
|
|
7162
7164
|
*
|
|
7163
7165
|
*/
|
|
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,
|
|
7166
|
+
__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, 152, __pyx_L1_error)
|
|
7165
7167
|
__Pyx_GOTREF(__pyx_tuple__12);
|
|
7166
7168
|
__Pyx_GIVEREF(__pyx_tuple__12);
|
|
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,
|
|
7169
|
+
__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, 152, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__5)) __PYX_ERR(0, 152, __pyx_L1_error)
|
|
7168
7170
|
|
|
7169
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
7171
|
+
/* "a_sync/asyncio/create_task.pyx":250
|
|
7170
7172
|
* cdef object __persisted_task_exc_wrap
|
|
7171
7173
|
*
|
|
7172
7174
|
* async def __persisted_task_exc_wrap(task: "Task[T]") -> T: # <<<<<<<<<<<<<<
|
|
7173
7175
|
* """
|
|
7174
7176
|
* Wrap a task to handle its exception in a specialized manner.
|
|
7175
7177
|
*/
|
|
7176
|
-
__pyx_tuple__13 = PyTuple_Pack(2, __pyx_n_s_task, __pyx_n_s_e); if (unlikely(!__pyx_tuple__13)) __PYX_ERR(0,
|
|
7178
|
+
__pyx_tuple__13 = PyTuple_Pack(2, __pyx_n_s_task, __pyx_n_s_e); if (unlikely(!__pyx_tuple__13)) __PYX_ERR(0, 250, __pyx_L1_error)
|
|
7177
7179
|
__Pyx_GOTREF(__pyx_tuple__13);
|
|
7178
7180
|
__Pyx_GIVEREF(__pyx_tuple__13);
|
|
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,
|
|
7181
|
+
__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, 250, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__6)) __PYX_ERR(0, 250, __pyx_L1_error)
|
|
7180
7182
|
|
|
7181
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
7183
|
+
/* "a_sync/asyncio/create_task.pyx":274
|
|
7182
7184
|
* # For testing purposes only
|
|
7183
7185
|
*
|
|
7184
7186
|
* def _get_persisted_tasks() -> Set[Task]: # <<<<<<<<<<<<<<
|
|
7185
7187
|
* # we can't import this directly to the .py test file
|
|
7186
7188
|
* return _persisted_tasks
|
|
7187
7189
|
*/
|
|
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,
|
|
7190
|
+
__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, 274, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__7)) __PYX_ERR(0, 274, __pyx_L1_error)
|
|
7189
7191
|
__Pyx_RefNannyFinishContext();
|
|
7190
7192
|
return 0;
|
|
7191
7193
|
__pyx_L1_error:;
|
|
@@ -7224,6 +7226,7 @@ static int __Pyx_modinit_global_init_code(void) {
|
|
|
7224
7226
|
__pyx_v_6a_sync_7asyncio_11create_task_get_running_loop = Py_None; Py_INCREF(Py_None);
|
|
7225
7227
|
__pyx_v_6a_sync_7asyncio_11create_task_iscoroutine = Py_None; Py_INCREF(Py_None);
|
|
7226
7228
|
__pyx_v_6a_sync_7asyncio_11create_task_Future = Py_None; Py_INCREF(Py_None);
|
|
7229
|
+
__pyx_v_6a_sync_7asyncio_11create_task_CancelledError = Py_None; Py_INCREF(Py_None);
|
|
7227
7230
|
__pyx_v_6a_sync_7asyncio_11create_task_InvalidStateError = Py_None; Py_INCREF(Py_None);
|
|
7228
7231
|
__pyx_v_6a_sync_7asyncio_11create_task_Task = Py_None; Py_INCREF(Py_None);
|
|
7229
7232
|
__pyx_v_6a_sync_7asyncio_11create_task__GatheringFuture = Py_None; Py_INCREF(Py_None);
|
|
@@ -7275,15 +7278,15 @@ static int __Pyx_modinit_type_init_code(void) {
|
|
|
7275
7278
|
__Pyx_RefNannySetupContext("__Pyx_modinit_type_init_code", 0);
|
|
7276
7279
|
/*--- Type init code ---*/
|
|
7277
7280
|
#if CYTHON_USE_TYPE_SPECS
|
|
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,
|
|
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,
|
|
7281
|
+
__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, 152, __pyx_L1_error)
|
|
7282
|
+
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, 152, __pyx_L1_error)
|
|
7280
7283
|
#else
|
|
7281
7284
|
__pyx_ptype_6a_sync_7asyncio_11create_task___pyx_scope_struct____await = &__pyx_type_6a_sync_7asyncio_11create_task___pyx_scope_struct____await;
|
|
7282
7285
|
#endif
|
|
7283
7286
|
#if !CYTHON_COMPILING_IN_LIMITED_API
|
|
7284
7287
|
#endif
|
|
7285
7288
|
#if !CYTHON_USE_TYPE_SPECS
|
|
7286
|
-
if (__Pyx_PyType_Ready(__pyx_ptype_6a_sync_7asyncio_11create_task___pyx_scope_struct____await) < 0) __PYX_ERR(0,
|
|
7289
|
+
if (__Pyx_PyType_Ready(__pyx_ptype_6a_sync_7asyncio_11create_task___pyx_scope_struct____await) < 0) __PYX_ERR(0, 152, __pyx_L1_error)
|
|
7287
7290
|
#endif
|
|
7288
7291
|
#if PY_MAJOR_VERSION < 3
|
|
7289
7292
|
__pyx_ptype_6a_sync_7asyncio_11create_task___pyx_scope_struct____await->tp_print = 0;
|
|
@@ -7294,15 +7297,15 @@ static int __Pyx_modinit_type_init_code(void) {
|
|
|
7294
7297
|
}
|
|
7295
7298
|
#endif
|
|
7296
7299
|
#if CYTHON_USE_TYPE_SPECS
|
|
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,
|
|
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,
|
|
7300
|
+
__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, 250, __pyx_L1_error)
|
|
7301
|
+
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, 250, __pyx_L1_error)
|
|
7299
7302
|
#else
|
|
7300
7303
|
__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;
|
|
7301
7304
|
#endif
|
|
7302
7305
|
#if !CYTHON_COMPILING_IN_LIMITED_API
|
|
7303
7306
|
#endif
|
|
7304
7307
|
#if !CYTHON_USE_TYPE_SPECS
|
|
7305
|
-
if (__Pyx_PyType_Ready(__pyx_ptype_6a_sync_7asyncio_11create_task___pyx_scope_struct_1___persisted_task_exc_wrap) < 0) __PYX_ERR(0,
|
|
7308
|
+
if (__Pyx_PyType_Ready(__pyx_ptype_6a_sync_7asyncio_11create_task___pyx_scope_struct_1___persisted_task_exc_wrap) < 0) __PYX_ERR(0, 250, __pyx_L1_error)
|
|
7306
7309
|
#endif
|
|
7307
7310
|
#if PY_MAJOR_VERSION < 3
|
|
7308
7311
|
__pyx_ptype_6a_sync_7asyncio_11create_task___pyx_scope_struct_1___persisted_task_exc_wrap->tp_print = 0;
|
|
@@ -7340,30 +7343,10 @@ static int __Pyx_modinit_type_init_code(void) {
|
|
|
7340
7343
|
|
|
7341
7344
|
static int __Pyx_modinit_type_import_code(void) {
|
|
7342
7345
|
__Pyx_RefNannyDeclarations
|
|
7343
|
-
PyObject *__pyx_t_1 = NULL;
|
|
7344
|
-
int __pyx_lineno = 0;
|
|
7345
|
-
const char *__pyx_filename = NULL;
|
|
7346
|
-
int __pyx_clineno = 0;
|
|
7347
7346
|
__Pyx_RefNannySetupContext("__Pyx_modinit_type_import_code", 0);
|
|
7348
7347
|
/*--- 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;
|
|
7361
7348
|
__Pyx_RefNannyFinishContext();
|
|
7362
7349
|
return 0;
|
|
7363
|
-
__pyx_L1_error:;
|
|
7364
|
-
__Pyx_XDECREF(__pyx_t_1);
|
|
7365
|
-
__Pyx_RefNannyFinishContext();
|
|
7366
|
-
return -1;
|
|
7367
7350
|
}
|
|
7368
7351
|
|
|
7369
7352
|
static int __Pyx_modinit_variable_import_code(void) {
|
|
@@ -7655,7 +7638,7 @@ if (!__Pyx_RefNanny) {
|
|
|
7655
7638
|
(void)__Pyx_modinit_variable_export_code();
|
|
7656
7639
|
if (unlikely((__Pyx_modinit_function_export_code() < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
7657
7640
|
if (unlikely((__Pyx_modinit_type_init_code() < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
7658
|
-
|
|
7641
|
+
(void)__Pyx_modinit_type_import_code();
|
|
7659
7642
|
(void)__Pyx_modinit_variable_import_code();
|
|
7660
7643
|
(void)__Pyx_modinit_function_import_code();
|
|
7661
7644
|
/*--- Execution code ---*/
|
|
@@ -7718,7 +7701,7 @@ if (!__Pyx_RefNanny) {
|
|
|
7718
7701
|
* import logging
|
|
7719
7702
|
* import typing # <<<<<<<<<<<<<<
|
|
7720
7703
|
*
|
|
7721
|
-
* from cpython.
|
|
7704
|
+
* from cpython.unicode cimport PyUnicode_CompareWithASCIIString
|
|
7722
7705
|
*/
|
|
7723
7706
|
__Pyx_TraceLine(9,0,__PYX_ERR(0, 9, __pyx_L1_error))
|
|
7724
7707
|
__pyx_t_2 = __Pyx_ImportDottedModule(__pyx_n_s_typing, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9, __pyx_L1_error)
|
|
@@ -7727,7 +7710,7 @@ if (!__Pyx_RefNanny) {
|
|
|
7727
7710
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
7728
7711
|
|
|
7729
7712
|
/* "a_sync/asyncio/create_task.pyx":14
|
|
7730
|
-
* from cpython.
|
|
7713
|
+
* from cpython.version cimport PY_VERSION_HEX
|
|
7731
7714
|
*
|
|
7732
7715
|
* from a_sync import _smart, exceptions # <<<<<<<<<<<<<<
|
|
7733
7716
|
* from a_sync._typing import T
|
|
@@ -7800,7 +7783,7 @@ if (!__Pyx_RefNanny) {
|
|
|
7800
7783
|
* cdef object get_running_loop = asyncio.get_running_loop
|
|
7801
7784
|
* cdef object iscoroutine = asyncio.iscoroutine # <<<<<<<<<<<<<<
|
|
7802
7785
|
* cdef object Future = asyncio.Future
|
|
7803
|
-
* cdef object
|
|
7786
|
+
* cdef object CancelledError = asyncio.CancelledError
|
|
7804
7787
|
*/
|
|
7805
7788
|
__Pyx_TraceLine(20,0,__PYX_ERR(0, 20, __pyx_L1_error))
|
|
7806
7789
|
__Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_asyncio); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20, __pyx_L1_error)
|
|
@@ -7817,8 +7800,8 @@ if (!__Pyx_RefNanny) {
|
|
|
7817
7800
|
* cdef object get_running_loop = asyncio.get_running_loop
|
|
7818
7801
|
* cdef object iscoroutine = asyncio.iscoroutine
|
|
7819
7802
|
* cdef object Future = asyncio.Future # <<<<<<<<<<<<<<
|
|
7803
|
+
* cdef object CancelledError = asyncio.CancelledError
|
|
7820
7804
|
* cdef object InvalidStateError = asyncio.InvalidStateError
|
|
7821
|
-
* cdef object Task = asyncio.Task
|
|
7822
7805
|
*/
|
|
7823
7806
|
__Pyx_TraceLine(21,0,__PYX_ERR(0, 21, __pyx_L1_error))
|
|
7824
7807
|
__Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_asyncio); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 21, __pyx_L1_error)
|
|
@@ -7834,461 +7817,479 @@ if (!__Pyx_RefNanny) {
|
|
|
7834
7817
|
/* "a_sync/asyncio/create_task.pyx":22
|
|
7835
7818
|
* cdef object iscoroutine = asyncio.iscoroutine
|
|
7836
7819
|
* cdef object Future = asyncio.Future
|
|
7837
|
-
* cdef object
|
|
7820
|
+
* cdef object CancelledError = asyncio.CancelledError # <<<<<<<<<<<<<<
|
|
7821
|
+
* cdef object InvalidStateError = asyncio.InvalidStateError
|
|
7838
7822
|
* cdef object Task = asyncio.Task
|
|
7839
|
-
* cdef object _GatheringFuture = aiotasks._GatheringFuture
|
|
7840
7823
|
*/
|
|
7841
7824
|
__Pyx_TraceLine(22,0,__PYX_ERR(0, 22, __pyx_L1_error))
|
|
7842
7825
|
__Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_asyncio); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 22, __pyx_L1_error)
|
|
7843
7826
|
__Pyx_GOTREF(__pyx_t_3);
|
|
7844
|
-
__pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3,
|
|
7827
|
+
__pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_CancelledError); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 22, __pyx_L1_error)
|
|
7845
7828
|
__Pyx_GOTREF(__pyx_t_2);
|
|
7846
7829
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
7847
|
-
__Pyx_XGOTREF(
|
|
7848
|
-
__Pyx_DECREF_SET(
|
|
7830
|
+
__Pyx_XGOTREF(__pyx_v_6a_sync_7asyncio_11create_task_CancelledError);
|
|
7831
|
+
__Pyx_DECREF_SET(__pyx_v_6a_sync_7asyncio_11create_task_CancelledError, __pyx_t_2);
|
|
7849
7832
|
__Pyx_GIVEREF(__pyx_t_2);
|
|
7850
7833
|
__pyx_t_2 = 0;
|
|
7851
7834
|
|
|
7852
7835
|
/* "a_sync/asyncio/create_task.pyx":23
|
|
7853
7836
|
* cdef object Future = asyncio.Future
|
|
7854
|
-
* cdef object
|
|
7855
|
-
* cdef object
|
|
7837
|
+
* cdef object CancelledError = asyncio.CancelledError
|
|
7838
|
+
* cdef object InvalidStateError = asyncio.InvalidStateError # <<<<<<<<<<<<<<
|
|
7839
|
+
* cdef object Task = asyncio.Task
|
|
7856
7840
|
* cdef object _GatheringFuture = aiotasks._GatheringFuture
|
|
7857
|
-
* del asyncio, aiotasks
|
|
7858
7841
|
*/
|
|
7859
7842
|
__Pyx_TraceLine(23,0,__PYX_ERR(0, 23, __pyx_L1_error))
|
|
7860
7843
|
__Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_asyncio); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 23, __pyx_L1_error)
|
|
7861
7844
|
__Pyx_GOTREF(__pyx_t_2);
|
|
7862
|
-
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2,
|
|
7845
|
+
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_InvalidStateError); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 23, __pyx_L1_error)
|
|
7863
7846
|
__Pyx_GOTREF(__pyx_t_3);
|
|
7864
7847
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
7865
|
-
__Pyx_XGOTREF(
|
|
7866
|
-
__Pyx_DECREF_SET(
|
|
7848
|
+
__Pyx_XGOTREF(__pyx_v_6a_sync_7asyncio_11create_task_InvalidStateError);
|
|
7849
|
+
__Pyx_DECREF_SET(__pyx_v_6a_sync_7asyncio_11create_task_InvalidStateError, __pyx_t_3);
|
|
7867
7850
|
__Pyx_GIVEREF(__pyx_t_3);
|
|
7868
7851
|
__pyx_t_3 = 0;
|
|
7869
7852
|
|
|
7870
7853
|
/* "a_sync/asyncio/create_task.pyx":24
|
|
7854
|
+
* cdef object CancelledError = asyncio.CancelledError
|
|
7871
7855
|
* cdef object InvalidStateError = asyncio.InvalidStateError
|
|
7872
|
-
* cdef object Task = asyncio.Task
|
|
7873
|
-
* cdef object _GatheringFuture = aiotasks._GatheringFuture
|
|
7856
|
+
* cdef object Task = asyncio.Task # <<<<<<<<<<<<<<
|
|
7857
|
+
* cdef object _GatheringFuture = aiotasks._GatheringFuture
|
|
7874
7858
|
* del asyncio, aiotasks
|
|
7875
|
-
*
|
|
7876
7859
|
*/
|
|
7877
7860
|
__Pyx_TraceLine(24,0,__PYX_ERR(0, 24, __pyx_L1_error))
|
|
7878
|
-
__Pyx_GetModuleGlobalName(__pyx_t_3,
|
|
7861
|
+
__Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_asyncio); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24, __pyx_L1_error)
|
|
7879
7862
|
__Pyx_GOTREF(__pyx_t_3);
|
|
7880
|
-
__pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3,
|
|
7863
|
+
__pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_Task); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 24, __pyx_L1_error)
|
|
7881
7864
|
__Pyx_GOTREF(__pyx_t_2);
|
|
7882
7865
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
7883
|
-
__Pyx_XGOTREF(
|
|
7884
|
-
__Pyx_DECREF_SET(
|
|
7866
|
+
__Pyx_XGOTREF(__pyx_v_6a_sync_7asyncio_11create_task_Task);
|
|
7867
|
+
__Pyx_DECREF_SET(__pyx_v_6a_sync_7asyncio_11create_task_Task, __pyx_t_2);
|
|
7885
7868
|
__Pyx_GIVEREF(__pyx_t_2);
|
|
7886
7869
|
__pyx_t_2 = 0;
|
|
7887
7870
|
|
|
7888
7871
|
/* "a_sync/asyncio/create_task.pyx":25
|
|
7872
|
+
* cdef object InvalidStateError = asyncio.InvalidStateError
|
|
7873
|
+
* cdef object Task = asyncio.Task
|
|
7874
|
+
* cdef object _GatheringFuture = aiotasks._GatheringFuture # <<<<<<<<<<<<<<
|
|
7875
|
+
* del asyncio, aiotasks
|
|
7876
|
+
*
|
|
7877
|
+
*/
|
|
7878
|
+
__Pyx_TraceLine(25,0,__PYX_ERR(0, 25, __pyx_L1_error))
|
|
7879
|
+
__Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_aiotasks); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 25, __pyx_L1_error)
|
|
7880
|
+
__Pyx_GOTREF(__pyx_t_2);
|
|
7881
|
+
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_GatheringFuture); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 25, __pyx_L1_error)
|
|
7882
|
+
__Pyx_GOTREF(__pyx_t_3);
|
|
7883
|
+
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
7884
|
+
__Pyx_XGOTREF(__pyx_v_6a_sync_7asyncio_11create_task__GatheringFuture);
|
|
7885
|
+
__Pyx_DECREF_SET(__pyx_v_6a_sync_7asyncio_11create_task__GatheringFuture, __pyx_t_3);
|
|
7886
|
+
__Pyx_GIVEREF(__pyx_t_3);
|
|
7887
|
+
__pyx_t_3 = 0;
|
|
7888
|
+
|
|
7889
|
+
/* "a_sync/asyncio/create_task.pyx":26
|
|
7889
7890
|
* cdef object Task = asyncio.Task
|
|
7890
7891
|
* cdef object _GatheringFuture = aiotasks._GatheringFuture
|
|
7891
7892
|
* del asyncio, aiotasks # <<<<<<<<<<<<<<
|
|
7892
7893
|
*
|
|
7893
7894
|
* # cdef logging
|
|
7894
7895
|
*/
|
|
7895
|
-
__Pyx_TraceLine(
|
|
7896
|
-
if (__Pyx_PyObject_DelAttrStr(__pyx_m, __pyx_n_s_asyncio) < 0) __PYX_ERR(0,
|
|
7897
|
-
if (__Pyx_PyObject_DelAttrStr(__pyx_m, __pyx_n_s_aiotasks) < 0) __PYX_ERR(0,
|
|
7896
|
+
__Pyx_TraceLine(26,0,__PYX_ERR(0, 26, __pyx_L1_error))
|
|
7897
|
+
if (__Pyx_PyObject_DelAttrStr(__pyx_m, __pyx_n_s_asyncio) < 0) __PYX_ERR(0, 26, __pyx_L1_error)
|
|
7898
|
+
if (__Pyx_PyObject_DelAttrStr(__pyx_m, __pyx_n_s_aiotasks) < 0) __PYX_ERR(0, 26, __pyx_L1_error)
|
|
7898
7899
|
|
|
7899
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
7900
|
+
/* "a_sync/asyncio/create_task.pyx":29
|
|
7900
7901
|
*
|
|
7901
7902
|
* # cdef logging
|
|
7902
7903
|
* cdef public object logger = logging.getLogger(__name__) # <<<<<<<<<<<<<<
|
|
7903
7904
|
* del logging
|
|
7904
7905
|
*
|
|
7905
7906
|
*/
|
|
7906
|
-
__Pyx_TraceLine(
|
|
7907
|
-
__Pyx_GetModuleGlobalName(
|
|
7908
|
-
__Pyx_GOTREF(__pyx_t_2);
|
|
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)
|
|
7907
|
+
__Pyx_TraceLine(29,0,__PYX_ERR(0, 29, __pyx_L1_error))
|
|
7908
|
+
__Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_logging); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29, __pyx_L1_error)
|
|
7910
7909
|
__Pyx_GOTREF(__pyx_t_3);
|
|
7911
|
-
|
|
7912
|
-
__Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_name_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 28, __pyx_L1_error)
|
|
7910
|
+
__pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_getLogger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 29, __pyx_L1_error)
|
|
7913
7911
|
__Pyx_GOTREF(__pyx_t_2);
|
|
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)
|
|
7915
|
-
__Pyx_GOTREF(__pyx_t_4);
|
|
7916
7912
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
7913
|
+
__Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_name_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 29, __pyx_L1_error)
|
|
7914
|
+
__Pyx_GOTREF(__pyx_t_3);
|
|
7915
|
+
__pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29, __pyx_L1_error)
|
|
7916
|
+
__Pyx_GOTREF(__pyx_t_4);
|
|
7917
7917
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
7918
|
+
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
7918
7919
|
__Pyx_XGOTREF(logger);
|
|
7919
7920
|
__Pyx_DECREF_SET(logger, __pyx_t_4);
|
|
7920
7921
|
__Pyx_GIVEREF(__pyx_t_4);
|
|
7921
7922
|
__pyx_t_4 = 0;
|
|
7922
7923
|
|
|
7923
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
7924
|
+
/* "a_sync/asyncio/create_task.pyx":30
|
|
7924
7925
|
* # cdef logging
|
|
7925
7926
|
* cdef public object logger = logging.getLogger(__name__)
|
|
7926
7927
|
* del logging # <<<<<<<<<<<<<<
|
|
7927
7928
|
*
|
|
7928
7929
|
* # cdef typing
|
|
7929
7930
|
*/
|
|
7930
|
-
__Pyx_TraceLine(
|
|
7931
|
-
if (__Pyx_PyObject_DelAttrStr(__pyx_m, __pyx_n_s_logging) < 0) __PYX_ERR(0,
|
|
7931
|
+
__Pyx_TraceLine(30,0,__PYX_ERR(0, 30, __pyx_L1_error))
|
|
7932
|
+
if (__Pyx_PyObject_DelAttrStr(__pyx_m, __pyx_n_s_logging) < 0) __PYX_ERR(0, 30, __pyx_L1_error)
|
|
7932
7933
|
|
|
7933
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
7934
|
+
/* "a_sync/asyncio/create_task.pyx":33
|
|
7934
7935
|
*
|
|
7935
7936
|
* # cdef typing
|
|
7936
7937
|
* cdef object Awaitable = typing.Awaitable # <<<<<<<<<<<<<<
|
|
7937
7938
|
* cdef object Optional = typing.Optional
|
|
7938
7939
|
* cdef object Tuple = typing.Tuple
|
|
7939
7940
|
*/
|
|
7940
|
-
__Pyx_TraceLine(
|
|
7941
|
-
__Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_typing); if (unlikely(!__pyx_t_4)) __PYX_ERR(0,
|
|
7941
|
+
__Pyx_TraceLine(33,0,__PYX_ERR(0, 33, __pyx_L1_error))
|
|
7942
|
+
__Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_typing); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 33, __pyx_L1_error)
|
|
7942
7943
|
__Pyx_GOTREF(__pyx_t_4);
|
|
7943
|
-
|
|
7944
|
-
__Pyx_GOTREF(
|
|
7944
|
+
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_Awaitable); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33, __pyx_L1_error)
|
|
7945
|
+
__Pyx_GOTREF(__pyx_t_3);
|
|
7945
7946
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
7946
7947
|
__Pyx_XGOTREF(__pyx_v_6a_sync_7asyncio_11create_task_Awaitable);
|
|
7947
|
-
__Pyx_DECREF_SET(__pyx_v_6a_sync_7asyncio_11create_task_Awaitable,
|
|
7948
|
-
__Pyx_GIVEREF(
|
|
7949
|
-
|
|
7948
|
+
__Pyx_DECREF_SET(__pyx_v_6a_sync_7asyncio_11create_task_Awaitable, __pyx_t_3);
|
|
7949
|
+
__Pyx_GIVEREF(__pyx_t_3);
|
|
7950
|
+
__pyx_t_3 = 0;
|
|
7950
7951
|
|
|
7951
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
7952
|
+
/* "a_sync/asyncio/create_task.pyx":34
|
|
7952
7953
|
* # cdef typing
|
|
7953
7954
|
* cdef object Awaitable = typing.Awaitable
|
|
7954
7955
|
* cdef object Optional = typing.Optional # <<<<<<<<<<<<<<
|
|
7955
7956
|
* cdef object Tuple = typing.Tuple
|
|
7956
7957
|
* cdef object Set = typing.Set
|
|
7957
7958
|
*/
|
|
7958
|
-
__Pyx_TraceLine(
|
|
7959
|
-
__Pyx_GetModuleGlobalName(
|
|
7960
|
-
__Pyx_GOTREF(
|
|
7961
|
-
__pyx_t_4 = __Pyx_PyObject_GetAttrStr(
|
|
7959
|
+
__Pyx_TraceLine(34,0,__PYX_ERR(0, 34, __pyx_L1_error))
|
|
7960
|
+
__Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_typing); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 34, __pyx_L1_error)
|
|
7961
|
+
__Pyx_GOTREF(__pyx_t_3);
|
|
7962
|
+
__pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_Optional); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 34, __pyx_L1_error)
|
|
7962
7963
|
__Pyx_GOTREF(__pyx_t_4);
|
|
7963
|
-
__Pyx_DECREF(
|
|
7964
|
+
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
7964
7965
|
__Pyx_XGOTREF(__pyx_v_6a_sync_7asyncio_11create_task_Optional);
|
|
7965
7966
|
__Pyx_DECREF_SET(__pyx_v_6a_sync_7asyncio_11create_task_Optional, __pyx_t_4);
|
|
7966
7967
|
__Pyx_GIVEREF(__pyx_t_4);
|
|
7967
7968
|
__pyx_t_4 = 0;
|
|
7968
7969
|
|
|
7969
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
7970
|
+
/* "a_sync/asyncio/create_task.pyx":35
|
|
7970
7971
|
* cdef object Awaitable = typing.Awaitable
|
|
7971
7972
|
* cdef object Optional = typing.Optional
|
|
7972
7973
|
* cdef object Tuple = typing.Tuple # <<<<<<<<<<<<<<
|
|
7973
7974
|
* cdef object Set = typing.Set
|
|
7974
7975
|
* del typing
|
|
7975
7976
|
*/
|
|
7976
|
-
__Pyx_TraceLine(
|
|
7977
|
-
__Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_typing); if (unlikely(!__pyx_t_4)) __PYX_ERR(0,
|
|
7977
|
+
__Pyx_TraceLine(35,0,__PYX_ERR(0, 35, __pyx_L1_error))
|
|
7978
|
+
__Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_typing); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 35, __pyx_L1_error)
|
|
7978
7979
|
__Pyx_GOTREF(__pyx_t_4);
|
|
7979
|
-
|
|
7980
|
-
__Pyx_GOTREF(
|
|
7980
|
+
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_Tuple); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 35, __pyx_L1_error)
|
|
7981
|
+
__Pyx_GOTREF(__pyx_t_3);
|
|
7981
7982
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
7982
7983
|
__Pyx_XGOTREF(__pyx_v_6a_sync_7asyncio_11create_task_Tuple);
|
|
7983
|
-
__Pyx_DECREF_SET(__pyx_v_6a_sync_7asyncio_11create_task_Tuple,
|
|
7984
|
-
__Pyx_GIVEREF(
|
|
7985
|
-
|
|
7984
|
+
__Pyx_DECREF_SET(__pyx_v_6a_sync_7asyncio_11create_task_Tuple, __pyx_t_3);
|
|
7985
|
+
__Pyx_GIVEREF(__pyx_t_3);
|
|
7986
|
+
__pyx_t_3 = 0;
|
|
7986
7987
|
|
|
7987
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
7988
|
+
/* "a_sync/asyncio/create_task.pyx":36
|
|
7988
7989
|
* cdef object Optional = typing.Optional
|
|
7989
7990
|
* cdef object Tuple = typing.Tuple
|
|
7990
7991
|
* cdef object Set = typing.Set # <<<<<<<<<<<<<<
|
|
7991
7992
|
* del typing
|
|
7992
7993
|
*
|
|
7993
7994
|
*/
|
|
7994
|
-
__Pyx_TraceLine(
|
|
7995
|
-
__Pyx_GetModuleGlobalName(
|
|
7996
|
-
__Pyx_GOTREF(
|
|
7997
|
-
__pyx_t_4 = __Pyx_PyObject_GetAttrStr(
|
|
7995
|
+
__Pyx_TraceLine(36,0,__PYX_ERR(0, 36, __pyx_L1_error))
|
|
7996
|
+
__Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_typing); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 36, __pyx_L1_error)
|
|
7997
|
+
__Pyx_GOTREF(__pyx_t_3);
|
|
7998
|
+
__pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_Set); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 36, __pyx_L1_error)
|
|
7998
7999
|
__Pyx_GOTREF(__pyx_t_4);
|
|
7999
|
-
__Pyx_DECREF(
|
|
8000
|
+
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
8000
8001
|
__Pyx_XGOTREF(__pyx_v_6a_sync_7asyncio_11create_task_Set);
|
|
8001
8002
|
__Pyx_DECREF_SET(__pyx_v_6a_sync_7asyncio_11create_task_Set, __pyx_t_4);
|
|
8002
8003
|
__Pyx_GIVEREF(__pyx_t_4);
|
|
8003
8004
|
__pyx_t_4 = 0;
|
|
8004
8005
|
|
|
8005
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
8006
|
+
/* "a_sync/asyncio/create_task.pyx":37
|
|
8006
8007
|
* cdef object Tuple = typing.Tuple
|
|
8007
8008
|
* cdef object Set = typing.Set
|
|
8008
8009
|
* del typing # <<<<<<<<<<<<<<
|
|
8009
8010
|
*
|
|
8010
8011
|
* # cdef _smart
|
|
8011
8012
|
*/
|
|
8012
|
-
__Pyx_TraceLine(
|
|
8013
|
-
if (__Pyx_PyObject_DelAttrStr(__pyx_m, __pyx_n_s_typing) < 0) __PYX_ERR(0,
|
|
8013
|
+
__Pyx_TraceLine(37,0,__PYX_ERR(0, 37, __pyx_L1_error))
|
|
8014
|
+
if (__Pyx_PyObject_DelAttrStr(__pyx_m, __pyx_n_s_typing) < 0) __PYX_ERR(0, 37, __pyx_L1_error)
|
|
8014
8015
|
|
|
8015
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
8016
|
+
/* "a_sync/asyncio/create_task.pyx":40
|
|
8016
8017
|
*
|
|
8017
8018
|
* # cdef _smart
|
|
8018
8019
|
* cdef object SmartTask = _smart.SmartTask # <<<<<<<<<<<<<<
|
|
8019
8020
|
* cdef object smart_task_factory = _smart.smart_task_factory
|
|
8020
8021
|
* del _smart
|
|
8021
8022
|
*/
|
|
8022
|
-
__Pyx_TraceLine(
|
|
8023
|
-
__Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_smart); if (unlikely(!__pyx_t_4)) __PYX_ERR(0,
|
|
8023
|
+
__Pyx_TraceLine(40,0,__PYX_ERR(0, 40, __pyx_L1_error))
|
|
8024
|
+
__Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_smart); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 40, __pyx_L1_error)
|
|
8024
8025
|
__Pyx_GOTREF(__pyx_t_4);
|
|
8025
|
-
|
|
8026
|
-
__Pyx_GOTREF(
|
|
8026
|
+
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_SmartTask); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 40, __pyx_L1_error)
|
|
8027
|
+
__Pyx_GOTREF(__pyx_t_3);
|
|
8027
8028
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
8028
8029
|
__Pyx_XGOTREF(__pyx_v_6a_sync_7asyncio_11create_task_SmartTask);
|
|
8029
|
-
__Pyx_DECREF_SET(__pyx_v_6a_sync_7asyncio_11create_task_SmartTask,
|
|
8030
|
-
__Pyx_GIVEREF(
|
|
8031
|
-
|
|
8030
|
+
__Pyx_DECREF_SET(__pyx_v_6a_sync_7asyncio_11create_task_SmartTask, __pyx_t_3);
|
|
8031
|
+
__Pyx_GIVEREF(__pyx_t_3);
|
|
8032
|
+
__pyx_t_3 = 0;
|
|
8032
8033
|
|
|
8033
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
8034
|
+
/* "a_sync/asyncio/create_task.pyx":41
|
|
8034
8035
|
* # cdef _smart
|
|
8035
8036
|
* cdef object SmartTask = _smart.SmartTask
|
|
8036
8037
|
* cdef object smart_task_factory = _smart.smart_task_factory # <<<<<<<<<<<<<<
|
|
8037
8038
|
* del _smart
|
|
8038
8039
|
*
|
|
8039
8040
|
*/
|
|
8040
|
-
__Pyx_TraceLine(
|
|
8041
|
-
__Pyx_GetModuleGlobalName(
|
|
8042
|
-
__Pyx_GOTREF(
|
|
8043
|
-
__pyx_t_4 = __Pyx_PyObject_GetAttrStr(
|
|
8041
|
+
__Pyx_TraceLine(41,0,__PYX_ERR(0, 41, __pyx_L1_error))
|
|
8042
|
+
__Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_smart); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 41, __pyx_L1_error)
|
|
8043
|
+
__Pyx_GOTREF(__pyx_t_3);
|
|
8044
|
+
__pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_smart_task_factory); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 41, __pyx_L1_error)
|
|
8044
8045
|
__Pyx_GOTREF(__pyx_t_4);
|
|
8045
|
-
__Pyx_DECREF(
|
|
8046
|
+
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
8046
8047
|
__Pyx_XGOTREF(__pyx_v_6a_sync_7asyncio_11create_task_smart_task_factory);
|
|
8047
8048
|
__Pyx_DECREF_SET(__pyx_v_6a_sync_7asyncio_11create_task_smart_task_factory, __pyx_t_4);
|
|
8048
8049
|
__Pyx_GIVEREF(__pyx_t_4);
|
|
8049
8050
|
__pyx_t_4 = 0;
|
|
8050
8051
|
|
|
8051
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
8052
|
+
/* "a_sync/asyncio/create_task.pyx":42
|
|
8052
8053
|
* cdef object SmartTask = _smart.SmartTask
|
|
8053
8054
|
* cdef object smart_task_factory = _smart.smart_task_factory
|
|
8054
8055
|
* del _smart # <<<<<<<<<<<<<<
|
|
8055
8056
|
*
|
|
8056
8057
|
* # cdef exceptions
|
|
8057
8058
|
*/
|
|
8058
|
-
__Pyx_TraceLine(
|
|
8059
|
-
if (__Pyx_PyObject_DelAttrStr(__pyx_m, __pyx_n_s_smart) < 0) __PYX_ERR(0,
|
|
8059
|
+
__Pyx_TraceLine(42,0,__PYX_ERR(0, 42, __pyx_L1_error))
|
|
8060
|
+
if (__Pyx_PyObject_DelAttrStr(__pyx_m, __pyx_n_s_smart) < 0) __PYX_ERR(0, 42, __pyx_L1_error)
|
|
8060
8061
|
|
|
8061
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
8062
|
+
/* "a_sync/asyncio/create_task.pyx":45
|
|
8062
8063
|
*
|
|
8063
8064
|
* # cdef exceptions
|
|
8064
8065
|
* cdef object PersistedTaskException = exceptions.PersistedTaskException # <<<<<<<<<<<<<<
|
|
8065
8066
|
* del exceptions
|
|
8066
8067
|
*
|
|
8067
8068
|
*/
|
|
8068
|
-
__Pyx_TraceLine(
|
|
8069
|
-
__Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_exceptions); if (unlikely(!__pyx_t_4)) __PYX_ERR(0,
|
|
8069
|
+
__Pyx_TraceLine(45,0,__PYX_ERR(0, 45, __pyx_L1_error))
|
|
8070
|
+
__Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_exceptions); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 45, __pyx_L1_error)
|
|
8070
8071
|
__Pyx_GOTREF(__pyx_t_4);
|
|
8071
|
-
|
|
8072
|
-
__Pyx_GOTREF(
|
|
8072
|
+
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_PersistedTaskException); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 45, __pyx_L1_error)
|
|
8073
|
+
__Pyx_GOTREF(__pyx_t_3);
|
|
8073
8074
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
8074
8075
|
__Pyx_XGOTREF(__pyx_v_6a_sync_7asyncio_11create_task_PersistedTaskException);
|
|
8075
|
-
__Pyx_DECREF_SET(__pyx_v_6a_sync_7asyncio_11create_task_PersistedTaskException,
|
|
8076
|
-
__Pyx_GIVEREF(
|
|
8077
|
-
|
|
8076
|
+
__Pyx_DECREF_SET(__pyx_v_6a_sync_7asyncio_11create_task_PersistedTaskException, __pyx_t_3);
|
|
8077
|
+
__Pyx_GIVEREF(__pyx_t_3);
|
|
8078
|
+
__pyx_t_3 = 0;
|
|
8078
8079
|
|
|
8079
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
8080
|
+
/* "a_sync/asyncio/create_task.pyx":46
|
|
8080
8081
|
* # cdef exceptions
|
|
8081
8082
|
* cdef object PersistedTaskException = exceptions.PersistedTaskException
|
|
8082
8083
|
* del exceptions # <<<<<<<<<<<<<<
|
|
8083
8084
|
*
|
|
8084
8085
|
*
|
|
8085
8086
|
*/
|
|
8086
|
-
__Pyx_TraceLine(
|
|
8087
|
-
if (__Pyx_PyObject_DelAttrStr(__pyx_m, __pyx_n_s_exceptions) < 0) __PYX_ERR(0,
|
|
8087
|
+
__Pyx_TraceLine(46,0,__PYX_ERR(0, 46, __pyx_L1_error))
|
|
8088
|
+
if (__Pyx_PyObject_DelAttrStr(__pyx_m, __pyx_n_s_exceptions) < 0) __PYX_ERR(0, 46, __pyx_L1_error)
|
|
8088
8089
|
|
|
8089
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
8090
|
+
/* "a_sync/asyncio/create_task.pyx":49
|
|
8090
8091
|
*
|
|
8091
8092
|
*
|
|
8092
8093
|
* def create_task( # <<<<<<<<<<<<<<
|
|
8093
8094
|
* coro: Awaitable[T],
|
|
8094
8095
|
* *,
|
|
8095
8096
|
*/
|
|
8096
|
-
__Pyx_TraceLine(
|
|
8097
|
-
|
|
8098
|
-
__Pyx_GOTREF(__pyx_t_2);
|
|
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)
|
|
8103
|
-
__Pyx_GOTREF(__pyx_t_4);
|
|
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)
|
|
8097
|
+
__Pyx_TraceLine(49,0,__PYX_ERR(0, 49, __pyx_L1_error))
|
|
8098
|
+
__pyx_t_3 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 49, __pyx_L1_error)
|
|
8110
8099
|
__Pyx_GOTREF(__pyx_t_3);
|
|
8111
|
-
|
|
8112
|
-
|
|
8113
|
-
|
|
8114
|
-
|
|
8115
|
-
|
|
8100
|
+
if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_name, ((PyObject*)__pyx_kp_u__3)) < 0) __PYX_ERR(0, 49, __pyx_L1_error)
|
|
8101
|
+
if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_skip_gc_until_done, ((PyObject *)Py_False)) < 0) __PYX_ERR(0, 49, __pyx_L1_error)
|
|
8102
|
+
if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_log_destroy_pending, ((PyObject *)Py_True)) < 0) __PYX_ERR(0, 49, __pyx_L1_error)
|
|
8103
|
+
__pyx_t_4 = __Pyx_PyDict_NewPresized(5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 49, __pyx_L1_error)
|
|
8104
|
+
__Pyx_GOTREF(__pyx_t_4);
|
|
8105
|
+
if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_coro, __pyx_kp_s_Awaitable_T) < 0) __PYX_ERR(0, 49, __pyx_L1_error)
|
|
8106
|
+
if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_name, __pyx_n_s_str) < 0) __PYX_ERR(0, 49, __pyx_L1_error)
|
|
8107
|
+
if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_skip_gc_until_done, __pyx_n_s_bint) < 0) __PYX_ERR(0, 49, __pyx_L1_error)
|
|
8108
|
+
if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_log_destroy_pending, __pyx_n_s_bint) < 0) __PYX_ERR(0, 49, __pyx_L1_error)
|
|
8109
|
+
if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_return, __pyx_kp_s_Task_T) < 0) __PYX_ERR(0, 49, __pyx_L1_error)
|
|
8110
|
+
__pyx_t_2 = __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_2)) __PYX_ERR(0, 49, __pyx_L1_error)
|
|
8111
|
+
__Pyx_GOTREF(__pyx_t_2);
|
|
8112
|
+
__Pyx_CyFunction_SetDefaultsKwDict(__pyx_t_2, __pyx_t_3);
|
|
8113
|
+
__Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4);
|
|
8116
8114
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
8115
|
+
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
8116
|
+
if (PyDict_SetItem(__pyx_d, __pyx_n_s_create_task, __pyx_t_2) < 0) __PYX_ERR(0, 49, __pyx_L1_error)
|
|
8117
|
+
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
8117
8118
|
|
|
8118
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
8119
|
+
/* "a_sync/asyncio/create_task.pyx":92
|
|
8119
8120
|
* return ccreate_task(coro, name, skip_gc_until_done, log_destroy_pending)
|
|
8120
8121
|
*
|
|
8121
8122
|
* cdef object ccreate_task_simple(object coro): # <<<<<<<<<<<<<<
|
|
8122
8123
|
* return ccreate_task(coro, "", False, True)
|
|
8123
8124
|
*
|
|
8124
8125
|
*/
|
|
8125
|
-
__Pyx_TraceLine(
|
|
8126
|
+
__Pyx_TraceLine(92,0,__PYX_ERR(0, 92, __pyx_L1_error))
|
|
8126
8127
|
|
|
8127
8128
|
|
|
8128
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
8129
|
+
/* "a_sync/asyncio/create_task.pyx":95
|
|
8129
8130
|
* return ccreate_task(coro, "", False, True)
|
|
8130
8131
|
*
|
|
8131
8132
|
* cdef object ccreate_task(object coro, str name, bint skip_gc_until_done, bint log_destroy_pending): # <<<<<<<<<<<<<<
|
|
8132
8133
|
* cdef object loop = get_running_loop()
|
|
8133
8134
|
* cdef object task_factory = loop._task_factory
|
|
8134
8135
|
*/
|
|
8135
|
-
__Pyx_TraceLine(
|
|
8136
|
+
__Pyx_TraceLine(95,0,__PYX_ERR(0, 95, __pyx_L1_error))
|
|
8136
8137
|
|
|
8137
8138
|
|
|
8138
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
8139
|
+
/* "a_sync/asyncio/create_task.pyx":143
|
|
8139
8140
|
*
|
|
8140
8141
|
*
|
|
8141
8142
|
* cdef inline void __set_task_name(object task, str name): # <<<<<<<<<<<<<<
|
|
8142
8143
|
* if set_name := getattr(task, "set_name", None):
|
|
8143
8144
|
* set_name(name)
|
|
8144
8145
|
*/
|
|
8145
|
-
__Pyx_TraceLine(
|
|
8146
|
+
__Pyx_TraceLine(143,0,__PYX_ERR(0, 143, __pyx_L1_error))
|
|
8146
8147
|
|
|
8147
8148
|
|
|
8148
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
8149
|
+
/* "a_sync/asyncio/create_task.pyx":148
|
|
8149
8150
|
*
|
|
8150
8151
|
*
|
|
8151
8152
|
* cdef public set[object] _persisted_tasks = set() # <<<<<<<<<<<<<<
|
|
8152
8153
|
*
|
|
8153
8154
|
* cdef object __await
|
|
8154
8155
|
*/
|
|
8155
|
-
__Pyx_TraceLine(
|
|
8156
|
-
|
|
8157
|
-
__Pyx_GOTREF(
|
|
8156
|
+
__Pyx_TraceLine(148,0,__PYX_ERR(0, 148, __pyx_L1_error))
|
|
8157
|
+
__pyx_t_2 = PySet_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 148, __pyx_L1_error)
|
|
8158
|
+
__Pyx_GOTREF(__pyx_t_2);
|
|
8158
8159
|
__Pyx_XGOTREF(_persisted_tasks);
|
|
8159
|
-
__Pyx_DECREF_SET(_persisted_tasks, ((PyObject*)
|
|
8160
|
-
__Pyx_GIVEREF(
|
|
8161
|
-
|
|
8160
|
+
__Pyx_DECREF_SET(_persisted_tasks, ((PyObject*)__pyx_t_2));
|
|
8161
|
+
__Pyx_GIVEREF(__pyx_t_2);
|
|
8162
|
+
__pyx_t_2 = 0;
|
|
8162
8163
|
|
|
8163
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
8164
|
+
/* "a_sync/asyncio/create_task.pyx":152
|
|
8164
8165
|
* cdef object __await
|
|
8165
8166
|
*
|
|
8166
8167
|
* async def __await(awaitable: Awaitable[T]) -> T: # <<<<<<<<<<<<<<
|
|
8167
8168
|
* """Wait for the completion of a non-coroutine Awaitable.
|
|
8168
8169
|
*
|
|
8169
8170
|
*/
|
|
8170
|
-
__Pyx_TraceLine(
|
|
8171
|
-
|
|
8172
|
-
__Pyx_GOTREF(
|
|
8173
|
-
if (PyDict_SetItem(
|
|
8174
|
-
if (PyDict_SetItem(
|
|
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,
|
|
8171
|
+
__Pyx_TraceLine(152,0,__PYX_ERR(0, 152, __pyx_L1_error))
|
|
8172
|
+
__pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 152, __pyx_L1_error)
|
|
8173
|
+
__Pyx_GOTREF(__pyx_t_2);
|
|
8174
|
+
if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_awaitable, __pyx_kp_s_Awaitable_T) < 0) __PYX_ERR(0, 152, __pyx_L1_error)
|
|
8175
|
+
if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_return, __pyx_n_s_T) < 0) __PYX_ERR(0, 152, __pyx_L1_error)
|
|
8176
|
+
__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, 152, __pyx_L1_error)
|
|
8176
8177
|
__Pyx_GOTREF(__pyx_t_4);
|
|
8177
|
-
__Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4,
|
|
8178
|
-
__Pyx_DECREF(
|
|
8178
|
+
__Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2);
|
|
8179
|
+
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
8179
8180
|
__Pyx_XGOTREF(__pyx_v_6a_sync_7asyncio_11create_task___await);
|
|
8180
8181
|
__Pyx_DECREF_SET(__pyx_v_6a_sync_7asyncio_11create_task___await, __pyx_t_4);
|
|
8181
8182
|
__Pyx_GIVEREF(__pyx_t_4);
|
|
8182
8183
|
__pyx_t_4 = 0;
|
|
8183
8184
|
|
|
8184
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
8185
|
+
/* "a_sync/asyncio/create_task.pyx":180
|
|
8185
8186
|
*
|
|
8186
8187
|
*
|
|
8187
8188
|
* cdef object __log_exception = logger.exception # <<<<<<<<<<<<<<
|
|
8188
8189
|
*
|
|
8189
8190
|
*
|
|
8190
8191
|
*/
|
|
8191
|
-
__Pyx_TraceLine(
|
|
8192
|
-
__pyx_t_4 = __Pyx_PyObject_GetAttrStr(logger, __pyx_n_s_exception); if (unlikely(!__pyx_t_4)) __PYX_ERR(0,
|
|
8192
|
+
__Pyx_TraceLine(180,0,__PYX_ERR(0, 180, __pyx_L1_error))
|
|
8193
|
+
__pyx_t_4 = __Pyx_PyObject_GetAttrStr(logger, __pyx_n_s_exception); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 180, __pyx_L1_error)
|
|
8193
8194
|
__Pyx_GOTREF(__pyx_t_4);
|
|
8194
8195
|
__Pyx_XGOTREF(__pyx_v_6a_sync_7asyncio_11create_task___log_exception);
|
|
8195
8196
|
__Pyx_DECREF_SET(__pyx_v_6a_sync_7asyncio_11create_task___log_exception, __pyx_t_4);
|
|
8196
8197
|
__Pyx_GIVEREF(__pyx_t_4);
|
|
8197
8198
|
__pyx_t_4 = 0;
|
|
8198
8199
|
|
|
8199
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
8200
|
+
/* "a_sync/asyncio/create_task.pyx":183
|
|
8200
8201
|
*
|
|
8201
8202
|
*
|
|
8202
8203
|
* cdef void __prune_persisted_tasks(): # <<<<<<<<<<<<<<
|
|
8203
8204
|
* """Remove completed tasks from the set of persisted tasks.
|
|
8204
8205
|
*
|
|
8205
8206
|
*/
|
|
8206
|
-
__Pyx_TraceLine(
|
|
8207
|
+
__Pyx_TraceLine(183,0,__PYX_ERR(0, 183, __pyx_L1_error))
|
|
8207
8208
|
|
|
8208
8209
|
|
|
8209
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
8210
|
+
/* "a_sync/asyncio/create_task.pyx":219
|
|
8210
8211
|
*
|
|
8211
8212
|
*
|
|
8212
8213
|
* cdef inline bint _is_done(fut: Future): # <<<<<<<<<<<<<<
|
|
8213
8214
|
* return PyUnicode_CompareWithASCIIString(fut._state, b"PENDING") != 0
|
|
8214
8215
|
*
|
|
8215
8216
|
*/
|
|
8216
|
-
__Pyx_TraceLine(
|
|
8217
|
+
__Pyx_TraceLine(219,0,__PYX_ERR(0, 219, __pyx_L1_error))
|
|
8217
8218
|
|
|
8218
8219
|
|
|
8219
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
8220
|
+
/* "a_sync/asyncio/create_task.pyx":223
|
|
8220
8221
|
*
|
|
8221
8222
|
*
|
|
8222
8223
|
* cdef object _get_exception(fut: Future): # <<<<<<<<<<<<<<
|
|
8223
8224
|
* """Return the exception that was set on this future.
|
|
8224
8225
|
*
|
|
8225
8226
|
*/
|
|
8226
|
-
__Pyx_TraceLine(
|
|
8227
|
+
__Pyx_TraceLine(223,0,__PYX_ERR(0, 223, __pyx_L1_error))
|
|
8227
8228
|
|
|
8228
8229
|
|
|
8229
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
8230
|
+
/* "a_sync/asyncio/create_task.pyx":244
|
|
8230
8231
|
*
|
|
8231
8232
|
*
|
|
8232
8233
|
* cdef inline bint _exc_exists(tup: Tuple[Future, Optional[Exception]]): # <<<<<<<<<<<<<<
|
|
8233
8234
|
* return tup[1] is not None
|
|
8234
8235
|
*
|
|
8235
8236
|
*/
|
|
8236
|
-
__Pyx_TraceLine(
|
|
8237
|
+
__Pyx_TraceLine(244,0,__PYX_ERR(0, 244, __pyx_L1_error))
|
|
8237
8238
|
|
|
8238
8239
|
|
|
8239
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
8240
|
+
/* "a_sync/asyncio/create_task.pyx":250
|
|
8240
8241
|
* cdef object __persisted_task_exc_wrap
|
|
8241
8242
|
*
|
|
8242
8243
|
* async def __persisted_task_exc_wrap(task: "Task[T]") -> T: # <<<<<<<<<<<<<<
|
|
8243
8244
|
* """
|
|
8244
8245
|
* Wrap a task to handle its exception in a specialized manner.
|
|
8245
8246
|
*/
|
|
8246
|
-
__Pyx_TraceLine(
|
|
8247
|
-
__pyx_t_4 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0,
|
|
8247
|
+
__Pyx_TraceLine(250,0,__PYX_ERR(0, 250, __pyx_L1_error))
|
|
8248
|
+
__pyx_t_4 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 250, __pyx_L1_error)
|
|
8248
8249
|
__Pyx_GOTREF(__pyx_t_4);
|
|
8249
|
-
if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_task, __pyx_kp_s_Task_T) < 0) __PYX_ERR(0,
|
|
8250
|
-
if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_return, __pyx_n_s_T) < 0) __PYX_ERR(0,
|
|
8251
|
-
|
|
8252
|
-
__Pyx_GOTREF(
|
|
8253
|
-
__Pyx_CyFunction_SetAnnotationsDict(
|
|
8250
|
+
if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_task, __pyx_kp_s_Task_T) < 0) __PYX_ERR(0, 250, __pyx_L1_error)
|
|
8251
|
+
if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_return, __pyx_n_s_T) < 0) __PYX_ERR(0, 250, __pyx_L1_error)
|
|
8252
|
+
__pyx_t_2 = __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_2)) __PYX_ERR(0, 250, __pyx_L1_error)
|
|
8253
|
+
__Pyx_GOTREF(__pyx_t_2);
|
|
8254
|
+
__Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_4);
|
|
8254
8255
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
8255
8256
|
__Pyx_XGOTREF(__pyx_v_6a_sync_7asyncio_11create_task___persisted_task_exc_wrap);
|
|
8256
|
-
__Pyx_DECREF_SET(__pyx_v_6a_sync_7asyncio_11create_task___persisted_task_exc_wrap,
|
|
8257
|
-
__Pyx_GIVEREF(
|
|
8258
|
-
|
|
8257
|
+
__Pyx_DECREF_SET(__pyx_v_6a_sync_7asyncio_11create_task___persisted_task_exc_wrap, __pyx_t_2);
|
|
8258
|
+
__Pyx_GIVEREF(__pyx_t_2);
|
|
8259
|
+
__pyx_t_2 = 0;
|
|
8259
8260
|
|
|
8260
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
8261
|
+
/* "a_sync/asyncio/create_task.pyx":269
|
|
8261
8262
|
*
|
|
8262
8263
|
*
|
|
8263
8264
|
* __all__ = ["create_task"] # <<<<<<<<<<<<<<
|
|
8264
8265
|
*
|
|
8265
8266
|
*
|
|
8266
8267
|
*/
|
|
8267
|
-
__Pyx_TraceLine(
|
|
8268
|
-
|
|
8269
|
-
__Pyx_GOTREF(
|
|
8268
|
+
__Pyx_TraceLine(269,0,__PYX_ERR(0, 269, __pyx_L1_error))
|
|
8269
|
+
__pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 269, __pyx_L1_error)
|
|
8270
|
+
__Pyx_GOTREF(__pyx_t_2);
|
|
8270
8271
|
__Pyx_INCREF(__pyx_n_u_create_task);
|
|
8271
8272
|
__Pyx_GIVEREF(__pyx_n_u_create_task);
|
|
8272
|
-
if (__Pyx_PyList_SET_ITEM(
|
|
8273
|
-
if (PyDict_SetItem(__pyx_d, __pyx_n_s_all,
|
|
8274
|
-
__Pyx_DECREF(
|
|
8273
|
+
if (__Pyx_PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_u_create_task)) __PYX_ERR(0, 269, __pyx_L1_error);
|
|
8274
|
+
if (PyDict_SetItem(__pyx_d, __pyx_n_s_all, __pyx_t_2) < 0) __PYX_ERR(0, 269, __pyx_L1_error)
|
|
8275
|
+
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
8275
8276
|
|
|
8276
|
-
/* "a_sync/asyncio/create_task.pyx":
|
|
8277
|
+
/* "a_sync/asyncio/create_task.pyx":274
|
|
8277
8278
|
* # For testing purposes only
|
|
8278
8279
|
*
|
|
8279
8280
|
* def _get_persisted_tasks() -> Set[Task]: # <<<<<<<<<<<<<<
|
|
8280
8281
|
* # we can't import this directly to the .py test file
|
|
8281
8282
|
* return _persisted_tasks
|
|
8282
8283
|
*/
|
|
8283
|
-
__Pyx_TraceLine(
|
|
8284
|
-
|
|
8285
|
-
__Pyx_GOTREF(
|
|
8286
|
-
if (PyDict_SetItem(
|
|
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,
|
|
8284
|
+
__Pyx_TraceLine(274,0,__PYX_ERR(0, 274, __pyx_L1_error))
|
|
8285
|
+
__pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 274, __pyx_L1_error)
|
|
8286
|
+
__Pyx_GOTREF(__pyx_t_2);
|
|
8287
|
+
if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_return, __pyx_kp_s_Set_Task) < 0) __PYX_ERR(0, 274, __pyx_L1_error)
|
|
8288
|
+
__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, 274, __pyx_L1_error)
|
|
8288
8289
|
__Pyx_GOTREF(__pyx_t_4);
|
|
8289
|
-
__Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4,
|
|
8290
|
-
__Pyx_DECREF(
|
|
8291
|
-
if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_persisted_tasks, __pyx_t_4) < 0) __PYX_ERR(0,
|
|
8290
|
+
__Pyx_CyFunction_SetAnnotationsDict(__pyx_t_4, __pyx_t_2);
|
|
8291
|
+
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
8292
|
+
if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_persisted_tasks, __pyx_t_4) < 0) __PYX_ERR(0, 274, __pyx_L1_error)
|
|
8292
8293
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
8293
8294
|
|
|
8294
8295
|
/* "a_sync/asyncio/create_task.pyx":1
|
|
@@ -8299,8 +8300,8 @@ if (!__Pyx_RefNanny) {
|
|
|
8299
8300
|
__Pyx_TraceLine(1,0,__PYX_ERR(0, 1, __pyx_L1_error))
|
|
8300
8301
|
__pyx_t_4 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
8301
8302
|
__Pyx_GOTREF(__pyx_t_4);
|
|
8302
|
-
if (PyDict_SetItem(__pyx_t_4,
|
|
8303
|
-
if (PyDict_SetItem(__pyx_t_4,
|
|
8303
|
+
if (PyDict_SetItem(__pyx_t_4, __pyx_kp_u_create_task_line_49, __pyx_kp_u_Extends_func_asyncio_create_tas) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
8304
|
+
if (PyDict_SetItem(__pyx_t_4, __pyx_kp_u_await_line_152, __pyx_kp_u_Wait_for_the_completion_of_a_non) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
8304
8305
|
if (PyDict_SetItem(__pyx_d, __pyx_n_s_test, __pyx_t_4) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
8305
8306
|
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
|
|
8306
8307
|
__Pyx_TraceReturn(Py_None, 0);
|
|
@@ -13234,86 +13235,6 @@ static int __Pyx_validate_bases_tuple(const char *type_name, Py_ssize_t dictoffs
|
|
|
13234
13235
|
#endif
|
|
13235
13236
|
}
|
|
13236
13237
|
|
|
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
|
-
|
|
13317
13238
|
/* Import */
|
|
13318
13239
|
static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level) {
|
|
13319
13240
|
PyObject *module = 0;
|