ez-a-sync 0.32.26__cp312-cp312-win_amd64.whl → 0.32.27__cp312-cp312-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of ez-a-sync might be problematic. Click here for more details.
- a_sync/_smart.c +44 -29
- a_sync/_smart.cp312-win_amd64.pyd +0 -0
- a_sync/a_sync/_descriptor.c +64 -49
- a_sync/a_sync/_descriptor.cp312-win_amd64.pyd +0 -0
- a_sync/a_sync/_flags.c +13 -10
- a_sync/a_sync/_flags.cp312-win_amd64.pyd +0 -0
- a_sync/a_sync/_helpers.c +62 -47
- a_sync/a_sync/_helpers.cp312-win_amd64.pyd +0 -0
- a_sync/a_sync/_kwargs.c +33 -18
- a_sync/a_sync/_kwargs.cp312-win_amd64.pyd +0 -0
- a_sync/a_sync/abstract.c +18 -11
- a_sync/a_sync/abstract.cp312-win_amd64.pyd +0 -0
- a_sync/a_sync/base.c +168 -153
- a_sync/a_sync/base.cp312-win_amd64.pyd +0 -0
- a_sync/a_sync/flags.c +6 -3
- a_sync/a_sync/flags.cp312-win_amd64.pyd +0 -0
- a_sync/a_sync/function.c +83 -68
- a_sync/a_sync/function.cp312-win_amd64.pyd +0 -0
- a_sync/a_sync/method.c +123 -108
- a_sync/a_sync/method.cp312-win_amd64.pyd +0 -0
- a_sync/a_sync/modifiers/manager.c +46 -31
- a_sync/a_sync/modifiers/manager.cp312-win_amd64.pyd +0 -0
- a_sync/a_sync/property.c +82 -67
- a_sync/a_sync/property.cp312-win_amd64.pyd +0 -0
- a_sync/async_property/cached.c +57 -42
- a_sync/async_property/cached.cp312-win_amd64.pyd +0 -0
- a_sync/async_property/proxy.c +24 -9
- a_sync/async_property/proxy.cp312-win_amd64.pyd +0 -0
- a_sync/asyncio/as_completed.c +21 -6
- a_sync/asyncio/as_completed.cp312-win_amd64.pyd +0 -0
- a_sync/asyncio/create_task.c +23 -8
- a_sync/asyncio/create_task.cp312-win_amd64.pyd +0 -0
- a_sync/asyncio/gather.c +30 -15
- a_sync/asyncio/gather.cp312-win_amd64.pyd +0 -0
- a_sync/asyncio/igather.c +24 -9
- a_sync/asyncio/igather.cp312-win_amd64.pyd +0 -0
- a_sync/asyncio/sleep.c +19 -4
- a_sync/asyncio/sleep.cp312-win_amd64.pyd +0 -0
- a_sync/debugging.c +45 -30
- a_sync/debugging.cp312-win_amd64.pyd +0 -0
- a_sync/exceptions.c +18 -11
- a_sync/exceptions.cp312-win_amd64.pyd +0 -0
- a_sync/executor.py +44 -0
- a_sync/functools.c +24 -9
- a_sync/functools.cp312-win_amd64.pyd +0 -0
- a_sync/iter.c +87 -72
- a_sync/iter.cp312-win_amd64.pyd +0 -0
- a_sync/primitives/_debug.c +55 -40
- a_sync/primitives/_debug.cp312-win_amd64.pyd +0 -0
- a_sync/primitives/_loggable.c +25 -10
- a_sync/primitives/_loggable.cp312-win_amd64.pyd +0 -0
- a_sync/primitives/locks/counter.c +65 -50
- a_sync/primitives/locks/counter.cp312-win_amd64.pyd +0 -0
- a_sync/primitives/locks/event.c +61 -45
- a_sync/primitives/locks/event.cp312-win_amd64.pyd +0 -0
- a_sync/primitives/locks/prio_semaphore.c +80 -65
- a_sync/primitives/locks/prio_semaphore.cp312-win_amd64.pyd +0 -0
- a_sync/primitives/locks/semaphore.c +65 -50
- a_sync/primitives/locks/semaphore.cp312-win_amd64.pyd +0 -0
- a_sync/utils/repr.c +41 -26
- a_sync/utils/repr.cp312-win_amd64.pyd +0 -0
- {ez_a_sync-0.32.26.dist-info → ez_a_sync-0.32.27.dist-info}/METADATA +1 -1
- {ez_a_sync-0.32.26.dist-info → ez_a_sync-0.32.27.dist-info}/RECORD +66 -66
- {ez_a_sync-0.32.26.dist-info → ez_a_sync-0.32.27.dist-info}/WHEEL +0 -0
- {ez_a_sync-0.32.26.dist-info → ez_a_sync-0.32.27.dist-info}/licenses/LICENSE.txt +0 -0
- {ez_a_sync-0.32.26.dist-info → ez_a_sync-0.32.27.dist-info}/top_level.txt +0 -0
a_sync/_smart.c
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Generated by Cython 3.1.
|
|
1
|
+
/* Generated by Cython 3.1.3 */
|
|
2
2
|
|
|
3
3
|
/* BEGIN: Cython Metadata
|
|
4
4
|
{
|
|
@@ -32,8 +32,8 @@ END: Cython Metadata */
|
|
|
32
32
|
#elif PY_VERSION_HEX < 0x03080000
|
|
33
33
|
#error Cython requires Python 3.8+.
|
|
34
34
|
#else
|
|
35
|
-
#define __PYX_ABI_VERSION "
|
|
36
|
-
#define CYTHON_HEX_VERSION
|
|
35
|
+
#define __PYX_ABI_VERSION "3_1_3"
|
|
36
|
+
#define CYTHON_HEX_VERSION 0x030103F0
|
|
37
37
|
#define CYTHON_FUTURE_DIVISION 1
|
|
38
38
|
/* CModulePreamble */
|
|
39
39
|
#include <stddef.h>
|
|
@@ -396,6 +396,9 @@ END: Cython Metadata */
|
|
|
396
396
|
enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P == sizeof(void*)) };
|
|
397
397
|
#endif
|
|
398
398
|
#endif
|
|
399
|
+
#ifndef CYTHON_LOCK_AND_GIL_DEADLOCK_AVOIDANCE_TIME
|
|
400
|
+
#define CYTHON_LOCK_AND_GIL_DEADLOCK_AVOIDANCE_TIME 100
|
|
401
|
+
#endif
|
|
399
402
|
#ifndef __has_attribute
|
|
400
403
|
#define __has_attribute(x) 0
|
|
401
404
|
#endif
|
|
@@ -2845,22 +2848,22 @@ static int __Pyx__DelItemOnTypeDict(PyTypeObject *tp, PyObject *k);
|
|
|
2845
2848
|
static int __Pyx_setup_reduce(PyObject* type_obj);
|
|
2846
2849
|
|
|
2847
2850
|
/* TypeImport.proto */
|
|
2848
|
-
#ifndef
|
|
2849
|
-
#define
|
|
2851
|
+
#ifndef __PYX_HAVE_RT_ImportType_proto_3_1_3
|
|
2852
|
+
#define __PYX_HAVE_RT_ImportType_proto_3_1_3
|
|
2850
2853
|
#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
|
|
2851
2854
|
#include <stdalign.h>
|
|
2852
2855
|
#endif
|
|
2853
2856
|
#if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) || __cplusplus >= 201103L
|
|
2854
|
-
#define
|
|
2857
|
+
#define __PYX_GET_STRUCT_ALIGNMENT_3_1_3(s) alignof(s)
|
|
2855
2858
|
#else
|
|
2856
|
-
#define
|
|
2859
|
+
#define __PYX_GET_STRUCT_ALIGNMENT_3_1_3(s) sizeof(void*)
|
|
2857
2860
|
#endif
|
|
2858
|
-
enum
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2861
|
+
enum __Pyx_ImportType_CheckSize_3_1_3 {
|
|
2862
|
+
__Pyx_ImportType_CheckSize_Error_3_1_3 = 0,
|
|
2863
|
+
__Pyx_ImportType_CheckSize_Warn_3_1_3 = 1,
|
|
2864
|
+
__Pyx_ImportType_CheckSize_Ignore_3_1_3 = 2
|
|
2862
2865
|
};
|
|
2863
|
-
static PyTypeObject *
|
|
2866
|
+
static PyTypeObject *__Pyx_ImportType_3_1_3(PyObject* module, const char *module_name, const char *class_name, size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_1_3 check_size);
|
|
2864
2867
|
#endif
|
|
2865
2868
|
|
|
2866
2869
|
/* ImportDottedModule.proto */
|
|
@@ -7801,9 +7804,9 @@ static PyObject *__pyx_gb_6a_sync_6_smart_11SmartFuture_8generator1(__pyx_Corout
|
|
|
7801
7804
|
__pyx_t_3 = __pyx_f_6a_sync_6_smart_current_task(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 341, __pyx_L1_error)
|
|
7802
7805
|
__Pyx_GOTREF(__pyx_t_3);
|
|
7803
7806
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
7807
|
+
__Pyx_INCREF(__pyx_t_3);
|
|
7804
7808
|
__Pyx_GIVEREF(__pyx_t_3);
|
|
7805
7809
|
__pyx_cur_scope->__pyx_v_task = __pyx_t_3;
|
|
7806
|
-
__Pyx_INCREF(__pyx_t_3);
|
|
7807
7810
|
__pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 341, __pyx_L1_error)
|
|
7808
7811
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
7809
7812
|
if (__pyx_t_1) {
|
|
@@ -7966,9 +7969,9 @@ static PyObject *__pyx_gb_6a_sync_6_smart_11SmartFuture_8generator1(__pyx_Corout
|
|
|
7966
7969
|
__Pyx_TraceLine(354,0,0,__PYX_ERR(0, 354, __pyx_L1_error))
|
|
7967
7970
|
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_cur_scope->__pyx_v_self, __pyx_mstate_global->__pyx_n_u_queue_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 354, __pyx_L1_error)
|
|
7968
7971
|
__Pyx_GOTREF(__pyx_t_3);
|
|
7972
|
+
__Pyx_INCREF(__pyx_t_3);
|
|
7969
7973
|
__Pyx_GIVEREF(__pyx_t_3);
|
|
7970
7974
|
__pyx_cur_scope->__pyx_v_queue = __pyx_t_3;
|
|
7971
|
-
__Pyx_INCREF(__pyx_t_3);
|
|
7972
7975
|
__pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 354, __pyx_L1_error)
|
|
7973
7976
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
7974
7977
|
if (__pyx_t_1) {
|
|
@@ -9115,9 +9118,9 @@ static PyObject *__pyx_gb_6a_sync_6_smart_9SmartTask_4generator2(__pyx_Coroutine
|
|
|
9115
9118
|
__pyx_t_3 = __pyx_f_6a_sync_6_smart_current_task(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 491, __pyx_L1_error)
|
|
9116
9119
|
__Pyx_GOTREF(__pyx_t_3);
|
|
9117
9120
|
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
|
|
9121
|
+
__Pyx_INCREF(__pyx_t_3);
|
|
9118
9122
|
__Pyx_GIVEREF(__pyx_t_3);
|
|
9119
9123
|
__pyx_cur_scope->__pyx_v_task = __pyx_t_3;
|
|
9120
|
-
__Pyx_INCREF(__pyx_t_3);
|
|
9121
9124
|
__pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_1 < 0))) __PYX_ERR(0, 491, __pyx_L1_error)
|
|
9122
9125
|
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
|
|
9123
9126
|
if (__pyx_t_1) {
|
|
@@ -10130,8 +10133,8 @@ static PyObject *__pyx_f_6a_sync_6_smart_shield(PyObject *__pyx_v_arg, CYTHON_UN
|
|
|
10130
10133
|
__Pyx_TraceLine(632,26,0,__PYX_ERR(0, 632, __pyx_L1_error))
|
|
10131
10134
|
__pyx_t_1 = __Pyx_GetAttr3(__pyx_v_inner, __pyx_mstate_global->__pyx_n_u_waiters, Py_None); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 632, __pyx_L1_error)
|
|
10132
10135
|
__Pyx_GOTREF(__pyx_t_1);
|
|
10133
|
-
__pyx_v_waiters = __pyx_t_1;
|
|
10134
10136
|
__Pyx_INCREF(__pyx_t_1);
|
|
10137
|
+
__pyx_v_waiters = __pyx_t_1;
|
|
10135
10138
|
__pyx_t_5 = (__pyx_t_1 != Py_None);
|
|
10136
10139
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
10137
10140
|
if (__pyx_t_5) {
|
|
@@ -12322,15 +12325,15 @@ static int __Pyx_modinit_type_import_code(__pyx_mstatetype *__pyx_mstate) {
|
|
|
12322
12325
|
/*--- Type import code ---*/
|
|
12323
12326
|
__pyx_t_1 = PyImport_ImportModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error)
|
|
12324
12327
|
__Pyx_GOTREF(__pyx_t_1);
|
|
12325
|
-
__pyx_mstate->__pyx_ptype_7cpython_4type_type =
|
|
12328
|
+
__pyx_mstate->__pyx_ptype_7cpython_4type_type = __Pyx_ImportType_3_1_3(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME, "type",
|
|
12326
12329
|
#if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
|
|
12327
|
-
sizeof(PyTypeObject),
|
|
12330
|
+
sizeof(PyTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(PyTypeObject),
|
|
12328
12331
|
#elif CYTHON_COMPILING_IN_LIMITED_API
|
|
12329
12332
|
0, 0,
|
|
12330
12333
|
#else
|
|
12331
|
-
sizeof(PyHeapTypeObject),
|
|
12334
|
+
sizeof(PyHeapTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(PyHeapTypeObject),
|
|
12332
12335
|
#endif
|
|
12333
|
-
|
|
12336
|
+
__Pyx_ImportType_CheckSize_Warn_3_1_3); if (!__pyx_mstate->__pyx_ptype_7cpython_4type_type) __PYX_ERR(2, 9, __pyx_L1_error)
|
|
12334
12337
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
12335
12338
|
__Pyx_RefNannyFinishContext();
|
|
12336
12339
|
return 0;
|
|
@@ -15904,6 +15907,7 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
|
|
|
15904
15907
|
changed = 1;
|
|
15905
15908
|
}
|
|
15906
15909
|
#endif // CYTHON_METH_FASTCALL
|
|
15910
|
+
#if !CYTHON_COMPILING_IN_PYPY
|
|
15907
15911
|
else if (strcmp(memb->name, "__module__") == 0) {
|
|
15908
15912
|
PyObject *descr;
|
|
15909
15913
|
assert(memb->type == T_OBJECT);
|
|
@@ -15918,11 +15922,13 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
|
|
|
15918
15922
|
}
|
|
15919
15923
|
changed = 1;
|
|
15920
15924
|
}
|
|
15925
|
+
#endif // !CYTHON_COMPILING_IN_PYPY
|
|
15921
15926
|
}
|
|
15922
15927
|
memb++;
|
|
15923
15928
|
}
|
|
15924
15929
|
}
|
|
15925
15930
|
#endif // !CYTHON_COMPILING_IN_LIMITED_API
|
|
15931
|
+
#if !CYTHON_COMPILING_IN_PYPY
|
|
15926
15932
|
slot = spec->slots;
|
|
15927
15933
|
while (slot && slot->slot && slot->slot != Py_tp_getset)
|
|
15928
15934
|
slot++;
|
|
@@ -15954,6 +15960,7 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
|
|
|
15954
15960
|
++getset;
|
|
15955
15961
|
}
|
|
15956
15962
|
}
|
|
15963
|
+
#endif // !CYTHON_COMPILING_IN_PYPY
|
|
15957
15964
|
if (changed)
|
|
15958
15965
|
PyType_Modified(type);
|
|
15959
15966
|
#endif // PY_VERSION_HEX > 0x030900B1
|
|
@@ -16086,7 +16093,7 @@ bad:
|
|
|
16086
16093
|
}
|
|
16087
16094
|
|
|
16088
16095
|
/* CommonTypesMetaclass */
|
|
16089
|
-
PyObject* __pyx_CommonTypesMetaclass_get_module(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED void* context) {
|
|
16096
|
+
static PyObject* __pyx_CommonTypesMetaclass_get_module(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED void* context) {
|
|
16090
16097
|
return PyUnicode_FromString(__PYX_ABI_MODULE_NAME);
|
|
16091
16098
|
}
|
|
16092
16099
|
static PyGetSetDef __pyx_CommonTypesMetaclass_getset[] = {
|
|
@@ -17956,6 +17963,13 @@ try_unpack:
|
|
|
17956
17963
|
|
|
17957
17964
|
/* PyObjectCallMethod0 */
|
|
17958
17965
|
static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name) {
|
|
17966
|
+
#if CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000))
|
|
17967
|
+
PyObject *args[1] = {obj};
|
|
17968
|
+
(void) __Pyx_PyObject_GetMethod;
|
|
17969
|
+
(void) __Pyx_PyObject_CallOneArg;
|
|
17970
|
+
(void) __Pyx_PyObject_CallNoArg;
|
|
17971
|
+
return PyObject_VectorcallMethod(method_name, args, 1 | PY_VECTORCALL_ARGUMENTS_OFFSET, NULL);
|
|
17972
|
+
#else
|
|
17959
17973
|
PyObject *method = NULL, *result = NULL;
|
|
17960
17974
|
int is_method = __Pyx_PyObject_GetMethod(obj, method_name, &method);
|
|
17961
17975
|
if (likely(is_method)) {
|
|
@@ -17968,6 +17982,7 @@ static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name
|
|
|
17968
17982
|
Py_DECREF(method);
|
|
17969
17983
|
bad:
|
|
17970
17984
|
return result;
|
|
17985
|
+
#endif
|
|
17971
17986
|
}
|
|
17972
17987
|
|
|
17973
17988
|
/* RaiseNeedMoreValuesToUnpack */
|
|
@@ -19248,10 +19263,10 @@ __PYX_GOOD:
|
|
|
19248
19263
|
}
|
|
19249
19264
|
|
|
19250
19265
|
/* TypeImport */
|
|
19251
|
-
#ifndef
|
|
19252
|
-
#define
|
|
19253
|
-
static PyTypeObject *
|
|
19254
|
-
size_t size, size_t alignment, enum
|
|
19266
|
+
#ifndef __PYX_HAVE_RT_ImportType_3_1_3
|
|
19267
|
+
#define __PYX_HAVE_RT_ImportType_3_1_3
|
|
19268
|
+
static PyTypeObject *__Pyx_ImportType_3_1_3(PyObject *module, const char *module_name, const char *class_name,
|
|
19269
|
+
size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_1_3 check_size)
|
|
19255
19270
|
{
|
|
19256
19271
|
PyObject *result = 0;
|
|
19257
19272
|
Py_ssize_t basicsize;
|
|
@@ -19307,7 +19322,7 @@ static PyTypeObject *__Pyx_ImportType_3_1_2(PyObject *module, const char *module
|
|
|
19307
19322
|
module_name, class_name, size, basicsize+itemsize);
|
|
19308
19323
|
goto bad;
|
|
19309
19324
|
}
|
|
19310
|
-
if (check_size ==
|
|
19325
|
+
if (check_size == __Pyx_ImportType_CheckSize_Error_3_1_3 &&
|
|
19311
19326
|
((size_t)basicsize > size || (size_t)(basicsize + itemsize) < size)) {
|
|
19312
19327
|
PyErr_Format(PyExc_ValueError,
|
|
19313
19328
|
"%.200s.%.200s size changed, may indicate binary incompatibility. "
|
|
@@ -19315,7 +19330,7 @@ static PyTypeObject *__Pyx_ImportType_3_1_2(PyObject *module, const char *module
|
|
|
19315
19330
|
module_name, class_name, size, basicsize, basicsize+itemsize);
|
|
19316
19331
|
goto bad;
|
|
19317
19332
|
}
|
|
19318
|
-
else if (check_size ==
|
|
19333
|
+
else if (check_size == __Pyx_ImportType_CheckSize_Warn_3_1_3 && (size_t)basicsize > size) {
|
|
19319
19334
|
if (PyErr_WarnFormat(NULL, 0,
|
|
19320
19335
|
"%.200s.%.200s size changed, may indicate binary incompatibility. "
|
|
19321
19336
|
"Expected %zd from C header, got %zd from PyObject",
|
|
@@ -20973,7 +20988,7 @@ static CYTHON_INLINE PyObject *__Pyx_PyIter_Next_Plain(PyObject *iterator) {
|
|
|
20973
20988
|
}
|
|
20974
20989
|
|
|
20975
20990
|
/* PyObjectCallMethod1 */
|
|
20976
|
-
#if !(CYTHON_VECTORCALL && __PYX_LIMITED_VERSION_HEX >= 0x030C0000)
|
|
20991
|
+
#if !(CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000)))
|
|
20977
20992
|
static PyObject* __Pyx__PyObject_CallMethod1(PyObject* method, PyObject* arg) {
|
|
20978
20993
|
PyObject *result = __Pyx_PyObject_CallOneArg(method, arg);
|
|
20979
20994
|
Py_DECREF(method);
|
|
@@ -20981,7 +20996,7 @@ static PyObject* __Pyx__PyObject_CallMethod1(PyObject* method, PyObject* arg) {
|
|
|
20981
20996
|
}
|
|
20982
20997
|
#endif
|
|
20983
20998
|
static PyObject* __Pyx_PyObject_CallMethod1(PyObject* obj, PyObject* method_name, PyObject* arg) {
|
|
20984
|
-
#if CYTHON_VECTORCALL && __PYX_LIMITED_VERSION_HEX >= 0x030C0000
|
|
20999
|
+
#if CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000))
|
|
20985
21000
|
PyObject *args[2] = {obj, arg};
|
|
20986
21001
|
(void) __Pyx_PyObject_GetMethod;
|
|
20987
21002
|
(void) __Pyx_PyObject_CallOneArg;
|
|
Binary file
|
a_sync/a_sync/_descriptor.c
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Generated by Cython 3.1.
|
|
1
|
+
/* Generated by Cython 3.1.3 */
|
|
2
2
|
|
|
3
3
|
/* BEGIN: Cython Metadata
|
|
4
4
|
{
|
|
@@ -29,8 +29,8 @@ END: Cython Metadata */
|
|
|
29
29
|
#elif PY_VERSION_HEX < 0x03080000
|
|
30
30
|
#error Cython requires Python 3.8+.
|
|
31
31
|
#else
|
|
32
|
-
#define __PYX_ABI_VERSION "
|
|
33
|
-
#define CYTHON_HEX_VERSION
|
|
32
|
+
#define __PYX_ABI_VERSION "3_1_3"
|
|
33
|
+
#define CYTHON_HEX_VERSION 0x030103F0
|
|
34
34
|
#define CYTHON_FUTURE_DIVISION 1
|
|
35
35
|
/* CModulePreamble */
|
|
36
36
|
#include <stddef.h>
|
|
@@ -393,6 +393,9 @@ END: Cython Metadata */
|
|
|
393
393
|
enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P == sizeof(void*)) };
|
|
394
394
|
#endif
|
|
395
395
|
#endif
|
|
396
|
+
#ifndef CYTHON_LOCK_AND_GIL_DEADLOCK_AVOIDANCE_TIME
|
|
397
|
+
#define CYTHON_LOCK_AND_GIL_DEADLOCK_AVOIDANCE_TIME 100
|
|
398
|
+
#endif
|
|
396
399
|
#ifndef __has_attribute
|
|
397
400
|
#define __has_attribute(x) 0
|
|
398
401
|
#endif
|
|
@@ -2951,22 +2954,22 @@ static int __Pyx_call_next_tp_traverse(PyObject* obj, visitproc v, void *a, trav
|
|
|
2951
2954
|
static void __Pyx_call_next_tp_clear(PyObject* obj, inquiry current_tp_clear);
|
|
2952
2955
|
|
|
2953
2956
|
/* TypeImport.proto */
|
|
2954
|
-
#ifndef
|
|
2955
|
-
#define
|
|
2957
|
+
#ifndef __PYX_HAVE_RT_ImportType_proto_3_1_3
|
|
2958
|
+
#define __PYX_HAVE_RT_ImportType_proto_3_1_3
|
|
2956
2959
|
#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
|
|
2957
2960
|
#include <stdalign.h>
|
|
2958
2961
|
#endif
|
|
2959
2962
|
#if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) || __cplusplus >= 201103L
|
|
2960
|
-
#define
|
|
2963
|
+
#define __PYX_GET_STRUCT_ALIGNMENT_3_1_3(s) alignof(s)
|
|
2961
2964
|
#else
|
|
2962
|
-
#define
|
|
2965
|
+
#define __PYX_GET_STRUCT_ALIGNMENT_3_1_3(s) sizeof(void*)
|
|
2963
2966
|
#endif
|
|
2964
|
-
enum
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2967
|
+
enum __Pyx_ImportType_CheckSize_3_1_3 {
|
|
2968
|
+
__Pyx_ImportType_CheckSize_Error_3_1_3 = 0,
|
|
2969
|
+
__Pyx_ImportType_CheckSize_Warn_3_1_3 = 1,
|
|
2970
|
+
__Pyx_ImportType_CheckSize_Ignore_3_1_3 = 2
|
|
2968
2971
|
};
|
|
2969
|
-
static PyTypeObject *
|
|
2972
|
+
static PyTypeObject *__Pyx_ImportType_3_1_3(PyObject* module, const char *module_name, const char *class_name, size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_1_3 check_size);
|
|
2970
2973
|
#endif
|
|
2971
2974
|
|
|
2972
2975
|
/* GetVTable.proto */
|
|
@@ -3255,7 +3258,7 @@ static unsigned long __Pyx_get_runtime_version(void);
|
|
|
3255
3258
|
static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt_version, int allow_newer);
|
|
3256
3259
|
|
|
3257
3260
|
/* FunctionImport.proto */
|
|
3258
|
-
static int
|
|
3261
|
+
static int __Pyx_ImportFunction_3_1_3(PyObject *module, const char *funcname, void (**f)(void), const char *sig);
|
|
3259
3262
|
|
|
3260
3263
|
/* MultiPhaseInitModuleState.proto */
|
|
3261
3264
|
#if CYTHON_PEP489_MULTI_PHASE_INIT && CYTHON_USE_MODULE_STATE
|
|
@@ -3483,13 +3486,13 @@ static const char __pyx_k_HCy_q_t9D_4q_Kt881IR_3a_uB[] = "\320\004\"\240!\330\01
|
|
|
3483
3486
|
static const char __pyx_k_a_sync_a_sync__descriptor_pyx[] = "a_sync/a_sync/_descriptor.pyx";
|
|
3484
3487
|
static const char __pyx_k_pyx_unpickle__ASyncDescriptor[] = "__pyx_unpickle__ASyncDescriptor";
|
|
3485
3488
|
static const char __pyx_k_This_module_contains_the_class[] = "\nThis module contains the :class:`ASyncDescriptor` class, which is used to create dual-function sync/async methods\nand properties.\n\nThe :class:`ASyncDescriptor` class provides a base for creating descriptors that can handle both synchronous and asynchronous\noperations. It includes utility methods for mapping operations across multiple instances and provides access to common\noperations such as checking if all or any results are truthy, and finding the minimum, maximum, or sum of results of the\nmethod or property mapped across multiple instances through the use of :class:`~a_sync.a_sync.function.ASyncFunction`.\n\nSee Also:\n - :class:`~a_sync.a_sync.function.ASyncFunction`\n - :class:`~a_sync.a_sync.method.ASyncMethodDescriptor`\n - :class:`~a_sync.a_sync.property.ASyncPropertyDescriptor`\n";
|
|
3486
|
-
static const char __pyx_k_hk_A_1_E_E_G_G_H_81A_7_2_3FnTU[] = "\200\001\360\006\000\005\010\200
|
|
3489
|
+
static const char __pyx_k_hk_A_1_E_E_G_G_H_81A_7_2_3FnTU[] = "\200\001\360\006\000\005\010\200\177\220h\230k\250\033\260A\330\010\r\210^\2301\330\010\016\320\016!\360\000\000\"E\003\360\000\000E\003G\003\360\000\000G\003H\003\330\004\023\320\023#\2408\2501\250A\330\004\007\200|\2207\230!\330\0102\260!\3203F\300n\320TU\330\004\013\2101";
|
|
3487
3490
|
static const char __pyx_k_ASyncDescriptor___init_subclass[] = "ASyncDescriptor.__init_subclass__";
|
|
3488
3491
|
static const char __pyx_k_ASyncDescriptor___reduce_cython[] = "_ASyncDescriptor.__reduce_cython__";
|
|
3489
3492
|
static const char __pyx_k_ASyncDescriptor___setstate_cyth[] = "_ASyncDescriptor.__setstate_cython__";
|
|
3490
3493
|
static const char __pyx_k_ASyncFunction_Concatenate_AnyIt[] = "'ASyncFunction[Concatenate[AnyIterable[I], P], bool]'";
|
|
3491
3494
|
static const char __pyx_k_AT_E_kkllpp_L_L_W_W_X_X_h_h_q_q[] = "\200\001\330\004\020\320\020)\250\033\260A\260T\270\034\320E`\320`k\320kl\320lp\320p|\360\000\000}\001L\002\360\000\000L\002W\002\360\000\000W\002X\002\360\000\000X\002\\\002\360\000\000\\\002h\002\360\000\000h\002q\002\360\000\000q\002|\002\360\000\000|\002}\002\360\000\000}\002A\003\360\000\000A\003M\003\360\000\000M\003[\003\360\000\000[\003f\003\360\000\000f\003g\003\360\000\000g\003k\003\360\000\000k\003w\003\360\000\000w\003D\004\360\000\000D\004O\004\360\000\000O\004P\004\360\000\000P\004Q\004\330\004\007\200s\210!\210=\230\002\230\"\230D\240\007\240q\250\016\260a\330\010\024\220I\230W\240A\240[\260\001\260\021";
|
|
3492
|
-
static const char __pyx_k_T_Gt_Y_eeiivvzz_G1F_a_vWA_q_t_2[] = "\200\001\360\010\000\005\016\210T\320\021)\250\024\320-G\300t\310>\320Y]\320]e\320ei\320iv\320vz\320z{\330\004\014\210G\2201\220F\230,\240a\330\004\007\200v\210W\220A\330\010\022\220!\330\010\027\220q\340\010\027\220t\320\0332\260'\270\025\270c\300\024\320E^\320^e\320ej\320jm\320mq\320q~\360\000\000
|
|
3495
|
+
static const char __pyx_k_T_Gt_Y_eeiivvzz_G1F_a_vWA_q_t_2[] = "\200\001\360\010\000\005\016\210T\320\021)\250\024\320-G\300t\310>\320Y]\320]e\320ei\320iv\320vz\320z{\330\004\014\210G\2201\220F\230,\240a\330\004\007\200v\210W\220A\330\010\022\220!\330\010\027\220q\340\010\027\220t\320\0332\260'\270\025\270c\300\024\320E^\320^e\320ej\320jm\320mq\320q~\360\000\000\177\001F\002\360\000\000F\002K\002\360\000\000K\002N\002\360\000\000N\002R\002\360\000\000R\002Y\002\360\000\000Y\002`\002\360\000\000`\002e\002\360\000\000e\002h\002\360\000\000h\002l\002\360\000\000l\002x\002\360\000\000x\002\177\002\360\000\000\177\002D\003\360\000\000D\003G\003\360\000\000G\003K\003\360\000\000K\003V\003\360\000\000V\003]\003\360\000\000]\003^\003\330\004\007\200q\330\010\017\320\0171\260\024\260Q\260g\270[\310\007\310q\340\010\017\320\0171\260\024\260Q\260g\270[\310\001";
|
|
3493
3496
|
static const char __pyx_k_pyx_unpickle__ASyncDescriptor_2[] = "__pyx_unpickle__ASyncDescriptor__set_state";
|
|
3494
3497
|
static const char __pyx_k_A_A_4xq_AR_6a_M_QgQ_WB_fJa_q_t_C[] = "\200A\340\017\020\330\024$\240A\340\t\n\360\030\000\t\014\2104\210x\220q\230\001\330\014\022\220*\230A\230R\320\0376\260a\330\010\014\210M\230\037\250\001\250\021\330\010\013\210:\220Q\220g\230Q\330\014\020\220\n\230+\240W\250B\320.>\270f\300J\310a\340\014\020\220\017\230q\330\r \240\001\240\021\330\014 \240\001\240\021\330\014\020\220\017\230t\240:\320-C\3001\330\020\021\360\006\000\r!\240\001\240\021\330\014\020\220\017\230q\340\010\014\210N\230+\240S\250\005\250Q\330\010\t";
|
|
3495
3498
|
static const char __pyx_k_Incompatible_checksums_0x_x_vs_0[] = "Incompatible checksums (0x%x vs (0x5f5e260, 0x1fb9b39, 0xafdb551) = (_ModifiedMixin__await, _ModifiedMixin__default, __wrapped__, _fget, field_name, modifiers))";
|
|
@@ -10011,15 +10014,15 @@ static int __Pyx_modinit_type_init_code(__pyx_mstatetype *__pyx_mstate) {
|
|
|
10011
10014
|
/*--- Type init code ---*/
|
|
10012
10015
|
__pyx_t_1 = PyImport_ImportModule("a_sync.a_sync.function"); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
10013
10016
|
__Pyx_GOTREF(__pyx_t_1);
|
|
10014
|
-
__pyx_mstate->__pyx_ptype_6a_sync_6a_sync_8function__ModifiedMixin =
|
|
10017
|
+
__pyx_mstate->__pyx_ptype_6a_sync_6a_sync_8function__ModifiedMixin = __Pyx_ImportType_3_1_3(__pyx_t_1, "a_sync.a_sync.function", "_ModifiedMixin",
|
|
10015
10018
|
#if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
|
|
10016
|
-
sizeof(struct __pyx_obj_6a_sync_6a_sync_8function__ModifiedMixin),
|
|
10019
|
+
sizeof(struct __pyx_obj_6a_sync_6a_sync_8function__ModifiedMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_6a_sync_8function__ModifiedMixin),
|
|
10017
10020
|
#elif CYTHON_COMPILING_IN_LIMITED_API
|
|
10018
|
-
sizeof(struct __pyx_obj_6a_sync_6a_sync_8function__ModifiedMixin),
|
|
10021
|
+
sizeof(struct __pyx_obj_6a_sync_6a_sync_8function__ModifiedMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_6a_sync_8function__ModifiedMixin),
|
|
10019
10022
|
#else
|
|
10020
|
-
sizeof(struct __pyx_obj_6a_sync_6a_sync_8function__ModifiedMixin),
|
|
10023
|
+
sizeof(struct __pyx_obj_6a_sync_6a_sync_8function__ModifiedMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_6a_sync_8function__ModifiedMixin),
|
|
10021
10024
|
#endif
|
|
10022
|
-
|
|
10025
|
+
__Pyx_ImportType_CheckSize_Warn_3_1_3); if (!__pyx_mstate->__pyx_ptype_6a_sync_6a_sync_8function__ModifiedMixin) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
10023
10026
|
__pyx_vtabptr_6a_sync_6a_sync_8function__ModifiedMixin = (struct __pyx_vtabstruct_6a_sync_6a_sync_8function__ModifiedMixin*)__Pyx_GetVtable(__pyx_mstate->__pyx_ptype_6a_sync_6a_sync_8function__ModifiedMixin); if (unlikely(!__pyx_vtabptr_6a_sync_6a_sync_8function__ModifiedMixin)) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
10024
10027
|
__pyx_vtabptr_6a_sync_6a_sync_11_descriptor__ASyncDescriptor = &__pyx_vtable_6a_sync_6a_sync_11_descriptor__ASyncDescriptor;
|
|
10025
10028
|
__pyx_vtable_6a_sync_6a_sync_11_descriptor__ASyncDescriptor.__pyx_base = *__pyx_vtabptr_6a_sync_6a_sync_8function__ModifiedMixin;
|
|
@@ -10159,41 +10162,41 @@ static int __Pyx_modinit_type_import_code(__pyx_mstatetype *__pyx_mstate) {
|
|
|
10159
10162
|
/*--- Type import code ---*/
|
|
10160
10163
|
__pyx_t_1 = PyImport_ImportModule("a_sync.a_sync.modifiers.manager"); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1, __pyx_L1_error)
|
|
10161
10164
|
__Pyx_GOTREF(__pyx_t_1);
|
|
10162
|
-
__pyx_mstate->__pyx_ptype_6a_sync_6a_sync_9modifiers_7manager_ModifierManager =
|
|
10165
|
+
__pyx_mstate->__pyx_ptype_6a_sync_6a_sync_9modifiers_7manager_ModifierManager = __Pyx_ImportType_3_1_3(__pyx_t_1, "a_sync.a_sync.modifiers.manager", "ModifierManager",
|
|
10163
10166
|
#if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
|
|
10164
|
-
sizeof(struct __pyx_obj_6a_sync_6a_sync_9modifiers_7manager_ModifierManager),
|
|
10167
|
+
sizeof(struct __pyx_obj_6a_sync_6a_sync_9modifiers_7manager_ModifierManager), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_6a_sync_9modifiers_7manager_ModifierManager),
|
|
10165
10168
|
#elif CYTHON_COMPILING_IN_LIMITED_API
|
|
10166
|
-
sizeof(struct __pyx_obj_6a_sync_6a_sync_9modifiers_7manager_ModifierManager),
|
|
10169
|
+
sizeof(struct __pyx_obj_6a_sync_6a_sync_9modifiers_7manager_ModifierManager), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_6a_sync_9modifiers_7manager_ModifierManager),
|
|
10167
10170
|
#else
|
|
10168
|
-
sizeof(struct __pyx_obj_6a_sync_6a_sync_9modifiers_7manager_ModifierManager),
|
|
10171
|
+
sizeof(struct __pyx_obj_6a_sync_6a_sync_9modifiers_7manager_ModifierManager), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_6a_sync_9modifiers_7manager_ModifierManager),
|
|
10169
10172
|
#endif
|
|
10170
|
-
|
|
10173
|
+
__Pyx_ImportType_CheckSize_Warn_3_1_3); if (!__pyx_mstate->__pyx_ptype_6a_sync_6a_sync_9modifiers_7manager_ModifierManager) __PYX_ERR(2, 1, __pyx_L1_error)
|
|
10171
10174
|
__pyx_vtabptr_6a_sync_6a_sync_9modifiers_7manager_ModifierManager = (struct __pyx_vtabstruct_6a_sync_6a_sync_9modifiers_7manager_ModifierManager*)__Pyx_GetVtable(__pyx_mstate->__pyx_ptype_6a_sync_6a_sync_9modifiers_7manager_ModifierManager); if (unlikely(!__pyx_vtabptr_6a_sync_6a_sync_9modifiers_7manager_ModifierManager)) __PYX_ERR(2, 1, __pyx_L1_error)
|
|
10172
10175
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
10173
10176
|
__pyx_t_1 = PyImport_ImportModule("a_sync.a_sync.function"); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 13, __pyx_L1_error)
|
|
10174
10177
|
__Pyx_GOTREF(__pyx_t_1);
|
|
10175
|
-
__pyx_mstate->__pyx_ptype_6a_sync_6a_sync_8function__ASyncFunction =
|
|
10178
|
+
__pyx_mstate->__pyx_ptype_6a_sync_6a_sync_8function__ASyncFunction = __Pyx_ImportType_3_1_3(__pyx_t_1, "a_sync.a_sync.function", "_ASyncFunction",
|
|
10176
10179
|
#if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
|
|
10177
|
-
sizeof(struct __pyx_obj_6a_sync_6a_sync_8function__ASyncFunction),
|
|
10180
|
+
sizeof(struct __pyx_obj_6a_sync_6a_sync_8function__ASyncFunction), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_6a_sync_8function__ASyncFunction),
|
|
10178
10181
|
#elif CYTHON_COMPILING_IN_LIMITED_API
|
|
10179
|
-
sizeof(struct __pyx_obj_6a_sync_6a_sync_8function__ASyncFunction),
|
|
10182
|
+
sizeof(struct __pyx_obj_6a_sync_6a_sync_8function__ASyncFunction), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_6a_sync_8function__ASyncFunction),
|
|
10180
10183
|
#else
|
|
10181
|
-
sizeof(struct __pyx_obj_6a_sync_6a_sync_8function__ASyncFunction),
|
|
10184
|
+
sizeof(struct __pyx_obj_6a_sync_6a_sync_8function__ASyncFunction), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_6a_sync_8function__ASyncFunction),
|
|
10182
10185
|
#endif
|
|
10183
|
-
|
|
10186
|
+
__Pyx_ImportType_CheckSize_Warn_3_1_3); if (!__pyx_mstate->__pyx_ptype_6a_sync_6a_sync_8function__ASyncFunction) __PYX_ERR(3, 13, __pyx_L1_error)
|
|
10184
10187
|
__pyx_vtabptr_6a_sync_6a_sync_8function__ASyncFunction = (struct __pyx_vtabstruct_6a_sync_6a_sync_8function__ASyncFunction*)__Pyx_GetVtable(__pyx_mstate->__pyx_ptype_6a_sync_6a_sync_8function__ASyncFunction); if (unlikely(!__pyx_vtabptr_6a_sync_6a_sync_8function__ASyncFunction)) __PYX_ERR(3, 13, __pyx_L1_error)
|
|
10185
10188
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
10186
10189
|
__pyx_t_1 = PyImport_ImportModule("a_sync.functools"); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 1, __pyx_L1_error)
|
|
10187
10190
|
__Pyx_GOTREF(__pyx_t_1);
|
|
10188
|
-
__pyx_mstate->__pyx_ptype_6a_sync_9functools_cached_property_unsafe =
|
|
10191
|
+
__pyx_mstate->__pyx_ptype_6a_sync_9functools_cached_property_unsafe = __Pyx_ImportType_3_1_3(__pyx_t_1, "a_sync.functools", "cached_property_unsafe",
|
|
10189
10192
|
#if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
|
|
10190
|
-
sizeof(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe),
|
|
10193
|
+
sizeof(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe),
|
|
10191
10194
|
#elif CYTHON_COMPILING_IN_LIMITED_API
|
|
10192
|
-
sizeof(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe),
|
|
10195
|
+
sizeof(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe),
|
|
10193
10196
|
#else
|
|
10194
|
-
sizeof(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe),
|
|
10197
|
+
sizeof(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe),
|
|
10195
10198
|
#endif
|
|
10196
|
-
|
|
10199
|
+
__Pyx_ImportType_CheckSize_Warn_3_1_3); if (!__pyx_mstate->__pyx_ptype_6a_sync_9functools_cached_property_unsafe) __PYX_ERR(4, 1, __pyx_L1_error)
|
|
10197
10200
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
10198
10201
|
__Pyx_RefNannyFinishContext();
|
|
10199
10202
|
return 0;
|
|
@@ -10223,11 +10226,11 @@ static int __Pyx_modinit_function_import_code(__pyx_mstatetype *__pyx_mstate) {
|
|
|
10223
10226
|
/*--- Function import code ---*/
|
|
10224
10227
|
__pyx_t_1 = PyImport_ImportModule("a_sync.a_sync.function"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
10225
10228
|
__Pyx_GOTREF(__pyx_t_1);
|
|
10226
|
-
if (
|
|
10229
|
+
if (__Pyx_ImportFunction_3_1_3(__pyx_t_1, "_validate_wrapped_fn", (void (**)(void))&__pyx_f_6a_sync_6a_sync_8function__validate_wrapped_fn, "void (PyObject *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
10227
10230
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
10228
10231
|
__pyx_t_1 = PyImport_ImportModule("a_sync.functools"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
10229
10232
|
__Pyx_GOTREF(__pyx_t_1);
|
|
10230
|
-
if (
|
|
10233
|
+
if (__Pyx_ImportFunction_3_1_3(__pyx_t_1, "update_wrapper", (void (**)(void))&__pyx_f_6a_sync_9functools_update_wrapper, "PyObject *(PyObject *, PyObject *, int __pyx_skip_dispatch)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
10231
10234
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
10232
10235
|
__Pyx_RefNannyFinishContext();
|
|
10233
10236
|
return 0;
|
|
@@ -13752,6 +13755,13 @@ try_unpack:
|
|
|
13752
13755
|
|
|
13753
13756
|
/* PyObjectCallMethod0 */
|
|
13754
13757
|
static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name) {
|
|
13758
|
+
#if CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000))
|
|
13759
|
+
PyObject *args[1] = {obj};
|
|
13760
|
+
(void) __Pyx_PyObject_GetMethod;
|
|
13761
|
+
(void) __Pyx_PyObject_CallOneArg;
|
|
13762
|
+
(void) __Pyx_PyObject_CallNoArg;
|
|
13763
|
+
return PyObject_VectorcallMethod(method_name, args, 1 | PY_VECTORCALL_ARGUMENTS_OFFSET, NULL);
|
|
13764
|
+
#else
|
|
13755
13765
|
PyObject *method = NULL, *result = NULL;
|
|
13756
13766
|
int is_method = __Pyx_PyObject_GetMethod(obj, method_name, &method);
|
|
13757
13767
|
if (likely(is_method)) {
|
|
@@ -13764,6 +13774,7 @@ static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name
|
|
|
13764
13774
|
Py_DECREF(method);
|
|
13765
13775
|
bad:
|
|
13766
13776
|
return result;
|
|
13777
|
+
#endif
|
|
13767
13778
|
}
|
|
13768
13779
|
|
|
13769
13780
|
/* RaiseNeedMoreValuesToUnpack */
|
|
@@ -14265,6 +14276,7 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
|
|
|
14265
14276
|
changed = 1;
|
|
14266
14277
|
}
|
|
14267
14278
|
#endif // CYTHON_METH_FASTCALL
|
|
14279
|
+
#if !CYTHON_COMPILING_IN_PYPY
|
|
14268
14280
|
else if (strcmp(memb->name, "__module__") == 0) {
|
|
14269
14281
|
PyObject *descr;
|
|
14270
14282
|
assert(memb->type == T_OBJECT);
|
|
@@ -14279,11 +14291,13 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
|
|
|
14279
14291
|
}
|
|
14280
14292
|
changed = 1;
|
|
14281
14293
|
}
|
|
14294
|
+
#endif // !CYTHON_COMPILING_IN_PYPY
|
|
14282
14295
|
}
|
|
14283
14296
|
memb++;
|
|
14284
14297
|
}
|
|
14285
14298
|
}
|
|
14286
14299
|
#endif // !CYTHON_COMPILING_IN_LIMITED_API
|
|
14300
|
+
#if !CYTHON_COMPILING_IN_PYPY
|
|
14287
14301
|
slot = spec->slots;
|
|
14288
14302
|
while (slot && slot->slot && slot->slot != Py_tp_getset)
|
|
14289
14303
|
slot++;
|
|
@@ -14315,6 +14329,7 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
|
|
|
14315
14329
|
++getset;
|
|
14316
14330
|
}
|
|
14317
14331
|
}
|
|
14332
|
+
#endif // !CYTHON_COMPILING_IN_PYPY
|
|
14318
14333
|
if (changed)
|
|
14319
14334
|
PyType_Modified(type);
|
|
14320
14335
|
#endif // PY_VERSION_HEX > 0x030900B1
|
|
@@ -14447,7 +14462,7 @@ bad:
|
|
|
14447
14462
|
}
|
|
14448
14463
|
|
|
14449
14464
|
/* CommonTypesMetaclass */
|
|
14450
|
-
PyObject* __pyx_CommonTypesMetaclass_get_module(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED void* context) {
|
|
14465
|
+
static PyObject* __pyx_CommonTypesMetaclass_get_module(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED void* context) {
|
|
14451
14466
|
return PyUnicode_FromString(__PYX_ABI_MODULE_NAME);
|
|
14452
14467
|
}
|
|
14453
14468
|
static PyGetSetDef __pyx_CommonTypesMetaclass_getset[] = {
|
|
@@ -14667,7 +14682,7 @@ static CYTHON_INLINE PyObject* __Pyx_PyObject_Call2Args(PyObject* function, PyOb
|
|
|
14667
14682
|
}
|
|
14668
14683
|
|
|
14669
14684
|
/* PyObjectCallMethod1 */
|
|
14670
|
-
#if !(CYTHON_VECTORCALL && __PYX_LIMITED_VERSION_HEX >= 0x030C0000)
|
|
14685
|
+
#if !(CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000)))
|
|
14671
14686
|
static PyObject* __Pyx__PyObject_CallMethod1(PyObject* method, PyObject* arg) {
|
|
14672
14687
|
PyObject *result = __Pyx_PyObject_CallOneArg(method, arg);
|
|
14673
14688
|
Py_DECREF(method);
|
|
@@ -14675,7 +14690,7 @@ static PyObject* __Pyx__PyObject_CallMethod1(PyObject* method, PyObject* arg) {
|
|
|
14675
14690
|
}
|
|
14676
14691
|
#endif
|
|
14677
14692
|
static PyObject* __Pyx_PyObject_CallMethod1(PyObject* obj, PyObject* method_name, PyObject* arg) {
|
|
14678
|
-
#if CYTHON_VECTORCALL && __PYX_LIMITED_VERSION_HEX >= 0x030C0000
|
|
14693
|
+
#if CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000))
|
|
14679
14694
|
PyObject *args[2] = {obj, arg};
|
|
14680
14695
|
(void) __Pyx_PyObject_GetMethod;
|
|
14681
14696
|
(void) __Pyx_PyObject_CallOneArg;
|
|
@@ -16500,10 +16515,10 @@ static CYTHON_INLINE int __Pyx_HasAttr(PyObject *o, PyObject *n) {
|
|
|
16500
16515
|
}
|
|
16501
16516
|
|
|
16502
16517
|
/* TypeImport */
|
|
16503
|
-
#ifndef
|
|
16504
|
-
#define
|
|
16505
|
-
static PyTypeObject *
|
|
16506
|
-
size_t size, size_t alignment, enum
|
|
16518
|
+
#ifndef __PYX_HAVE_RT_ImportType_3_1_3
|
|
16519
|
+
#define __PYX_HAVE_RT_ImportType_3_1_3
|
|
16520
|
+
static PyTypeObject *__Pyx_ImportType_3_1_3(PyObject *module, const char *module_name, const char *class_name,
|
|
16521
|
+
size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_1_3 check_size)
|
|
16507
16522
|
{
|
|
16508
16523
|
PyObject *result = 0;
|
|
16509
16524
|
Py_ssize_t basicsize;
|
|
@@ -16559,7 +16574,7 @@ static PyTypeObject *__Pyx_ImportType_3_1_2(PyObject *module, const char *module
|
|
|
16559
16574
|
module_name, class_name, size, basicsize+itemsize);
|
|
16560
16575
|
goto bad;
|
|
16561
16576
|
}
|
|
16562
|
-
if (check_size ==
|
|
16577
|
+
if (check_size == __Pyx_ImportType_CheckSize_Error_3_1_3 &&
|
|
16563
16578
|
((size_t)basicsize > size || (size_t)(basicsize + itemsize) < size)) {
|
|
16564
16579
|
PyErr_Format(PyExc_ValueError,
|
|
16565
16580
|
"%.200s.%.200s size changed, may indicate binary incompatibility. "
|
|
@@ -16567,7 +16582,7 @@ static PyTypeObject *__Pyx_ImportType_3_1_2(PyObject *module, const char *module
|
|
|
16567
16582
|
module_name, class_name, size, basicsize, basicsize+itemsize);
|
|
16568
16583
|
goto bad;
|
|
16569
16584
|
}
|
|
16570
|
-
else if (check_size ==
|
|
16585
|
+
else if (check_size == __Pyx_ImportType_CheckSize_Warn_3_1_3 && (size_t)basicsize > size) {
|
|
16571
16586
|
if (PyErr_WarnFormat(NULL, 0,
|
|
16572
16587
|
"%.200s.%.200s size changed, may indicate binary incompatibility. "
|
|
16573
16588
|
"Expected %zd from C header, got %zd from PyObject",
|
|
@@ -19751,9 +19766,9 @@ static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObj
|
|
|
19751
19766
|
}
|
|
19752
19767
|
|
|
19753
19768
|
/* FunctionImport */
|
|
19754
|
-
#ifndef
|
|
19755
|
-
#define
|
|
19756
|
-
static int
|
|
19769
|
+
#ifndef __PYX_HAVE_RT_ImportFunction_3_1_3
|
|
19770
|
+
#define __PYX_HAVE_RT_ImportFunction_3_1_3
|
|
19771
|
+
static int __Pyx_ImportFunction_3_1_3(PyObject *module, const char *funcname, void (**f)(void), const char *sig) {
|
|
19757
19772
|
PyObject *d = 0;
|
|
19758
19773
|
PyObject *cobj = 0;
|
|
19759
19774
|
union {
|
|
Binary file
|
a_sync/a_sync/_flags.c
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Generated by Cython 3.1.
|
|
1
|
+
/* Generated by Cython 3.1.3 */
|
|
2
2
|
|
|
3
3
|
/* BEGIN: Cython Metadata
|
|
4
4
|
{
|
|
@@ -29,8 +29,8 @@ END: Cython Metadata */
|
|
|
29
29
|
#elif PY_VERSION_HEX < 0x03080000
|
|
30
30
|
#error Cython requires Python 3.8+.
|
|
31
31
|
#else
|
|
32
|
-
#define __PYX_ABI_VERSION "
|
|
33
|
-
#define CYTHON_HEX_VERSION
|
|
32
|
+
#define __PYX_ABI_VERSION "3_1_3"
|
|
33
|
+
#define CYTHON_HEX_VERSION 0x030103F0
|
|
34
34
|
#define CYTHON_FUTURE_DIVISION 1
|
|
35
35
|
/* CModulePreamble */
|
|
36
36
|
#include <stddef.h>
|
|
@@ -393,6 +393,9 @@ END: Cython Metadata */
|
|
|
393
393
|
enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P == sizeof(void*)) };
|
|
394
394
|
#endif
|
|
395
395
|
#endif
|
|
396
|
+
#ifndef CYTHON_LOCK_AND_GIL_DEADLOCK_AVOIDANCE_TIME
|
|
397
|
+
#define CYTHON_LOCK_AND_GIL_DEADLOCK_AVOIDANCE_TIME 100
|
|
398
|
+
#endif
|
|
396
399
|
#ifndef __has_attribute
|
|
397
400
|
#define __has_attribute(x) 0
|
|
398
401
|
#endif
|
|
@@ -1921,7 +1924,7 @@ static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt
|
|
|
1921
1924
|
static int __Pyx_ExportFunction(const char *name, void (*f)(void), const char *sig);
|
|
1922
1925
|
|
|
1923
1926
|
/* VoidPtrImport.proto */
|
|
1924
|
-
static int
|
|
1927
|
+
static int __Pyx_ImportVoidPtr_3_1_3(PyObject *module, const char *name, void **p, const char *sig);
|
|
1925
1928
|
|
|
1926
1929
|
/* MultiPhaseInitModuleState.proto */
|
|
1927
1930
|
#if CYTHON_PEP489_MULTI_PHASE_INIT && CYTHON_USE_MODULE_STATE
|
|
@@ -2693,9 +2696,9 @@ static int __Pyx_modinit_variable_import_code(__pyx_mstatetype *__pyx_mstate) {
|
|
|
2693
2696
|
/*--- Variable import code ---*/
|
|
2694
2697
|
__pyx_t_1 = PyImport_ImportModule("a_sync.a_sync.flags"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
2695
2698
|
__Pyx_GOTREF(__pyx_t_1);
|
|
2696
|
-
if (
|
|
2697
|
-
if (
|
|
2698
|
-
if (
|
|
2699
|
+
if (__Pyx_ImportVoidPtr_3_1_3(__pyx_t_1, "AFFIRMATIVE_FLAGS", (void **)&__pyx_vp_6a_sync_6a_sync_5flags_AFFIRMATIVE_FLAGS, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
2700
|
+
if (__Pyx_ImportVoidPtr_3_1_3(__pyx_t_1, "NEGATIVE_FLAGS", (void **)&__pyx_vp_6a_sync_6a_sync_5flags_NEGATIVE_FLAGS, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
2701
|
+
if (__Pyx_ImportVoidPtr_3_1_3(__pyx_t_1, "VIABLE_FLAGS", (void **)&__pyx_vp_6a_sync_6a_sync_5flags_VIABLE_FLAGS, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
2699
2702
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
2700
2703
|
__Pyx_RefNannyFinishContext();
|
|
2701
2704
|
return 0;
|
|
@@ -5345,9 +5348,9 @@ bad:
|
|
|
5345
5348
|
}
|
|
5346
5349
|
|
|
5347
5350
|
/* VoidPtrImport */
|
|
5348
|
-
#ifndef
|
|
5349
|
-
#define
|
|
5350
|
-
static int
|
|
5351
|
+
#ifndef __PYX_HAVE_RT_ImportVoidPtr_3_1_3
|
|
5352
|
+
#define __PYX_HAVE_RT_ImportVoidPtr_3_1_3
|
|
5353
|
+
static int __Pyx_ImportVoidPtr_3_1_3(PyObject *module, const char *name, void **p, const char *sig) {
|
|
5351
5354
|
PyObject *d = 0;
|
|
5352
5355
|
PyObject *cobj = 0;
|
|
5353
5356
|
d = PyObject_GetAttrString(module, "__pyx_capi__");
|
|
Binary file
|