ez-a-sync 0.32.27__cp38-cp38-win32.whl → 0.32.28__cp38-cp38-win32.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 +36 -31
- a_sync/_smart.cp38-win32.pyd +0 -0
- a_sync/a_sync/_descriptor.c +63 -58
- a_sync/a_sync/_descriptor.cp38-win32.pyd +0 -0
- a_sync/a_sync/_flags.c +10 -10
- a_sync/a_sync/_flags.cp38-win32.pyd +0 -0
- a_sync/a_sync/_helpers.c +57 -52
- a_sync/a_sync/_helpers.cp38-win32.pyd +0 -0
- a_sync/a_sync/_kwargs.c +27 -22
- a_sync/a_sync/_kwargs.cp38-win32.pyd +0 -0
- a_sync/a_sync/abstract.c +46 -23
- a_sync/a_sync/abstract.cp38-win32.pyd +0 -0
- a_sync/a_sync/abstract.pyi +2 -2
- a_sync/a_sync/base.c +60 -51
- a_sync/a_sync/base.cp38-win32.pyd +0 -0
- a_sync/a_sync/flags.c +10 -10
- a_sync/a_sync/flags.cp38-win32.pyd +0 -0
- a_sync/a_sync/function.c +84 -70
- a_sync/a_sync/function.cp38-win32.pyd +0 -0
- a_sync/a_sync/method.c +80 -63
- a_sync/a_sync/method.cp38-win32.pyd +0 -0
- a_sync/a_sync/method.pyi +2 -1
- a_sync/a_sync/modifiers/manager.c +42 -37
- a_sync/a_sync/modifiers/manager.cp38-win32.pyd +0 -0
- a_sync/a_sync/property.c +86 -75
- a_sync/a_sync/property.cp38-win32.pyd +0 -0
- a_sync/async_property/cached.c +53 -48
- a_sync/async_property/cached.cp38-win32.pyd +0 -0
- a_sync/async_property/proxy.c +15 -10
- a_sync/async_property/proxy.cp38-win32.pyd +0 -0
- a_sync/asyncio/as_completed.c +15 -10
- a_sync/asyncio/as_completed.cp38-win32.pyd +0 -0
- a_sync/asyncio/create_task.c +39 -16
- a_sync/asyncio/create_task.cp38-win32.pyd +0 -0
- a_sync/asyncio/gather.c +24 -19
- a_sync/asyncio/gather.cp38-win32.pyd +0 -0
- a_sync/asyncio/igather.c +26 -17
- a_sync/asyncio/igather.cp38-win32.pyd +0 -0
- a_sync/asyncio/sleep.c +8 -3
- a_sync/asyncio/sleep.cp38-win32.pyd +0 -0
- a_sync/debugging.c +34 -29
- a_sync/debugging.cp38-win32.pyd +0 -0
- a_sync/exceptions.c +28 -19
- a_sync/exceptions.cp38-win32.pyd +0 -0
- a_sync/functools.c +15 -10
- a_sync/functools.cp38-win32.pyd +0 -0
- a_sync/iter.c +143 -88
- a_sync/iter.cp38-win32.pyd +0 -0
- a_sync/primitives/_debug.c +49 -44
- a_sync/primitives/_debug.cp38-win32.pyd +0 -0
- a_sync/primitives/_loggable.c +30 -19
- a_sync/primitives/_loggable.cp38-win32.pyd +0 -0
- a_sync/primitives/locks/counter.c +75 -60
- a_sync/primitives/locks/counter.cp38-win32.pyd +0 -0
- a_sync/primitives/locks/event.c +52 -47
- a_sync/primitives/locks/event.cp38-win32.pyd +0 -0
- a_sync/primitives/locks/prio_semaphore.c +101 -76
- a_sync/primitives/locks/prio_semaphore.cp38-win32.pyd +0 -0
- a_sync/primitives/locks/prio_semaphore.pyi +2 -2
- a_sync/primitives/locks/semaphore.c +71 -59
- a_sync/primitives/locks/semaphore.cp38-win32.pyd +0 -0
- a_sync/primitives/locks/semaphore.pyi +10 -9
- a_sync/primitives/queue.py +5 -1
- a_sync/utils/repr.c +36 -31
- a_sync/utils/repr.cp38-win32.pyd +0 -0
- {ez_a_sync-0.32.27.dist-info → ez_a_sync-0.32.28.dist-info}/METADATA +1 -1
- {ez_a_sync-0.32.27.dist-info → ez_a_sync-0.32.28.dist-info}/RECORD +70 -70
- {ez_a_sync-0.32.27.dist-info → ez_a_sync-0.32.28.dist-info}/LICENSE.txt +0 -0
- {ez_a_sync-0.32.27.dist-info → ez_a_sync-0.32.28.dist-info}/WHEEL +0 -0
- {ez_a_sync-0.32.27.dist-info → ez_a_sync-0.32.28.dist-info}/top_level.txt +0 -0
a_sync/a_sync/method.c
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Generated by Cython 3.1.
|
|
1
|
+
/* Generated by Cython 3.1.4 */
|
|
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_4"
|
|
36
|
+
#define CYTHON_HEX_VERSION 0x030104F0
|
|
37
37
|
#define CYTHON_FUTURE_DIVISION 1
|
|
38
38
|
/* CModulePreamble */
|
|
39
39
|
#include <stddef.h>
|
|
@@ -2038,18 +2038,18 @@ static PyObject *__Pyx_GetBuiltinName(PyObject *name);
|
|
|
2038
2038
|
if (!__Pyx_PyThreadState_Current->tracing) {\
|
|
2039
2039
|
if (likely(__pyx_frame_code)) Py_INCREF(__pyx_frame_code);\
|
|
2040
2040
|
else __pyx_frame_code = (PyObject*) __Pyx_createFrameCodeObject(funcname, srcfile, firstlineno);\
|
|
2041
|
-
if (unlikely(!__pyx_frame_code))
|
|
2042
|
-
ret = __Pyx__TraceStartFunc(__pyx_pymonitoring_state, __pyx_frame_code, offset, skip_event);\
|
|
2043
|
-
}
|
|
2041
|
+
if (unlikely(!__pyx_frame_code)) ret = -1;\
|
|
2042
|
+
else ret = __Pyx__TraceStartFunc(__pyx_pymonitoring_state, __pyx_frame_code, offset, skip_event);\
|
|
2043
|
+
} else __pyx_frame_code = NULL;\
|
|
2044
2044
|
PyGILState_Release(state);\
|
|
2045
|
-
}
|
|
2045
|
+
} else __pyx_frame_code = NULL;\
|
|
2046
2046
|
} else {\
|
|
2047
2047
|
if (!__Pyx_PyThreadState_Current->tracing) {\
|
|
2048
2048
|
if (likely(__pyx_frame_code)) Py_INCREF(__pyx_frame_code);\
|
|
2049
2049
|
else __pyx_frame_code = (PyObject*) __Pyx_createFrameCodeObject(funcname, srcfile, firstlineno);\
|
|
2050
|
-
if (unlikely(!__pyx_frame_code))
|
|
2051
|
-
ret = __Pyx__TraceStartFunc(__pyx_pymonitoring_state, __pyx_frame_code, offset, skip_event);\
|
|
2052
|
-
}
|
|
2050
|
+
if (unlikely(!__pyx_frame_code)) ret = -1;\
|
|
2051
|
+
else ret = __Pyx__TraceStartFunc(__pyx_pymonitoring_state, __pyx_frame_code, offset, skip_event);\
|
|
2052
|
+
} else __pyx_frame_code = NULL;\
|
|
2053
2053
|
}\
|
|
2054
2054
|
if (unlikely(ret == -1)) goto_error;\
|
|
2055
2055
|
}
|
|
@@ -2996,22 +2996,22 @@ static int __Pyx_call_next_tp_traverse(PyObject* obj, visitproc v, void *a, trav
|
|
|
2996
2996
|
static void __Pyx_call_next_tp_clear(PyObject* obj, inquiry current_tp_clear);
|
|
2997
2997
|
|
|
2998
2998
|
/* TypeImport.proto */
|
|
2999
|
-
#ifndef
|
|
3000
|
-
#define
|
|
2999
|
+
#ifndef __PYX_HAVE_RT_ImportType_proto_3_1_4
|
|
3000
|
+
#define __PYX_HAVE_RT_ImportType_proto_3_1_4
|
|
3001
3001
|
#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
|
|
3002
3002
|
#include <stdalign.h>
|
|
3003
3003
|
#endif
|
|
3004
3004
|
#if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) || __cplusplus >= 201103L
|
|
3005
|
-
#define
|
|
3005
|
+
#define __PYX_GET_STRUCT_ALIGNMENT_3_1_4(s) alignof(s)
|
|
3006
3006
|
#else
|
|
3007
|
-
#define
|
|
3007
|
+
#define __PYX_GET_STRUCT_ALIGNMENT_3_1_4(s) sizeof(void*)
|
|
3008
3008
|
#endif
|
|
3009
|
-
enum
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3009
|
+
enum __Pyx_ImportType_CheckSize_3_1_4 {
|
|
3010
|
+
__Pyx_ImportType_CheckSize_Error_3_1_4 = 0,
|
|
3011
|
+
__Pyx_ImportType_CheckSize_Warn_3_1_4 = 1,
|
|
3012
|
+
__Pyx_ImportType_CheckSize_Ignore_3_1_4 = 2
|
|
3013
3013
|
};
|
|
3014
|
-
static PyTypeObject *
|
|
3014
|
+
static PyTypeObject *__Pyx_ImportType_3_1_4(PyObject* module, const char *module_name, const char *class_name, size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_1_4 check_size);
|
|
3015
3015
|
#endif
|
|
3016
3016
|
|
|
3017
3017
|
/* GetVTable.proto */
|
|
@@ -3287,7 +3287,7 @@ static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt
|
|
|
3287
3287
|
static int __Pyx_ExportFunction(const char *name, void (*f)(void), const char *sig);
|
|
3288
3288
|
|
|
3289
3289
|
/* FunctionImport.proto */
|
|
3290
|
-
static int
|
|
3290
|
+
static int __Pyx_ImportFunction_3_1_4(PyObject *module, const char *funcname, void (**f)(void), const char *sig);
|
|
3291
3291
|
|
|
3292
3292
|
/* MultiPhaseInitModuleState.proto */
|
|
3293
3293
|
#if CYTHON_PEP489_MULTI_PHASE_INIT && CYTHON_USE_MODULE_STATE
|
|
@@ -8715,8 +8715,14 @@ static int __pyx_f_6a_sync_6a_sync_6method__should_await(struct __pyx_obj_6a_syn
|
|
|
8715
8715
|
* elif default := self.get_default():
|
|
8716
8716
|
*/
|
|
8717
8717
|
__Pyx_TraceLine(506,7,0,__PYX_ERR(0, 506, __pyx_L1_error))
|
|
8718
|
-
|
|
8719
|
-
|
|
8718
|
+
if (__pyx_v_flag == Py_None) __pyx_t_2 = 0;
|
|
8719
|
+
else
|
|
8720
|
+
{
|
|
8721
|
+
Py_ssize_t __pyx_temp = __Pyx_PyUnicode_IS_TRUE(__pyx_v_flag);
|
|
8722
|
+
if (unlikely(((!CYTHON_ASSUME_SAFE_SIZE) && __pyx_temp < 0))) __PYX_ERR(0, 506, __pyx_L1_error)
|
|
8723
|
+
__pyx_t_2 = (__pyx_temp != 0);
|
|
8724
|
+
}
|
|
8725
|
+
|
|
8720
8726
|
if (__pyx_t_2) {
|
|
8721
8727
|
|
|
8722
8728
|
/* "a_sync/a_sync/method.pyx":507
|
|
@@ -8753,8 +8759,14 @@ static int __pyx_f_6a_sync_6a_sync_6method__should_await(struct __pyx_obj_6a_syn
|
|
|
8753
8759
|
__Pyx_GOTREF(__pyx_t_1);
|
|
8754
8760
|
__Pyx_INCREF(__pyx_t_1);
|
|
8755
8761
|
__pyx_v_default = ((PyObject*)__pyx_t_1);
|
|
8756
|
-
|
|
8757
|
-
|
|
8762
|
+
if (__pyx_t_1 == Py_None) __pyx_t_2 = 0;
|
|
8763
|
+
else
|
|
8764
|
+
{
|
|
8765
|
+
Py_ssize_t __pyx_temp = __Pyx_PyUnicode_IS_TRUE(__pyx_t_1);
|
|
8766
|
+
if (unlikely(((!CYTHON_ASSUME_SAFE_SIZE) && __pyx_temp < 0))) __PYX_ERR(0, 508, __pyx_L1_error)
|
|
8767
|
+
__pyx_t_2 = (__pyx_temp != 0);
|
|
8768
|
+
}
|
|
8769
|
+
|
|
8758
8770
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
8759
8771
|
if (__pyx_t_2) {
|
|
8760
8772
|
|
|
@@ -17620,15 +17632,15 @@ static int __Pyx_modinit_type_init_code(__pyx_mstatetype *__pyx_mstate) {
|
|
|
17620
17632
|
/*--- Type init code ---*/
|
|
17621
17633
|
__pyx_t_1 = PyImport_ImportModule("a_sync.a_sync.function"); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
17622
17634
|
__Pyx_GOTREF(__pyx_t_1);
|
|
17623
|
-
__pyx_mstate->__pyx_ptype_6a_sync_6a_sync_8function__ASyncFunction =
|
|
17635
|
+
__pyx_mstate->__pyx_ptype_6a_sync_6a_sync_8function__ASyncFunction = __Pyx_ImportType_3_1_4(__pyx_t_1, "a_sync.a_sync.function", "_ASyncFunction",
|
|
17624
17636
|
#if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
|
|
17625
|
-
sizeof(struct __pyx_obj_6a_sync_6a_sync_8function__ASyncFunction),
|
|
17637
|
+
sizeof(struct __pyx_obj_6a_sync_6a_sync_8function__ASyncFunction), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_6a_sync_8function__ASyncFunction),
|
|
17626
17638
|
#elif CYTHON_COMPILING_IN_LIMITED_API
|
|
17627
|
-
sizeof(struct __pyx_obj_6a_sync_6a_sync_8function__ASyncFunction),
|
|
17639
|
+
sizeof(struct __pyx_obj_6a_sync_6a_sync_8function__ASyncFunction), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_6a_sync_8function__ASyncFunction),
|
|
17628
17640
|
#else
|
|
17629
|
-
sizeof(struct __pyx_obj_6a_sync_6a_sync_8function__ASyncFunction),
|
|
17641
|
+
sizeof(struct __pyx_obj_6a_sync_6a_sync_8function__ASyncFunction), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_6a_sync_8function__ASyncFunction),
|
|
17630
17642
|
#endif
|
|
17631
|
-
|
|
17643
|
+
__Pyx_ImportType_CheckSize_Warn_3_1_4); if (!__pyx_mstate->__pyx_ptype_6a_sync_6a_sync_8function__ASyncFunction) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
17632
17644
|
__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(0, 1, __pyx_L1_error)
|
|
17633
17645
|
__pyx_vtabptr_6a_sync_6a_sync_6method__ASyncBoundMethod = &__pyx_vtable_6a_sync_6a_sync_6method__ASyncBoundMethod;
|
|
17634
17646
|
__pyx_vtable_6a_sync_6a_sync_6method__ASyncBoundMethod.__pyx_base = *__pyx_vtabptr_6a_sync_6a_sync_8function__ASyncFunction;
|
|
@@ -17806,53 +17818,53 @@ static int __Pyx_modinit_type_import_code(__pyx_mstatetype *__pyx_mstate) {
|
|
|
17806
17818
|
/*--- Type import code ---*/
|
|
17807
17819
|
__pyx_t_1 = PyImport_ImportModule("a_sync.a_sync.modifiers.manager"); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1, __pyx_L1_error)
|
|
17808
17820
|
__Pyx_GOTREF(__pyx_t_1);
|
|
17809
|
-
__pyx_mstate->__pyx_ptype_6a_sync_6a_sync_9modifiers_7manager_ModifierManager =
|
|
17821
|
+
__pyx_mstate->__pyx_ptype_6a_sync_6a_sync_9modifiers_7manager_ModifierManager = __Pyx_ImportType_3_1_4(__pyx_t_1, "a_sync.a_sync.modifiers.manager", "ModifierManager",
|
|
17810
17822
|
#if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
|
|
17811
|
-
sizeof(struct __pyx_obj_6a_sync_6a_sync_9modifiers_7manager_ModifierManager),
|
|
17823
|
+
sizeof(struct __pyx_obj_6a_sync_6a_sync_9modifiers_7manager_ModifierManager), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_6a_sync_9modifiers_7manager_ModifierManager),
|
|
17812
17824
|
#elif CYTHON_COMPILING_IN_LIMITED_API
|
|
17813
|
-
sizeof(struct __pyx_obj_6a_sync_6a_sync_9modifiers_7manager_ModifierManager),
|
|
17825
|
+
sizeof(struct __pyx_obj_6a_sync_6a_sync_9modifiers_7manager_ModifierManager), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_6a_sync_9modifiers_7manager_ModifierManager),
|
|
17814
17826
|
#else
|
|
17815
|
-
sizeof(struct __pyx_obj_6a_sync_6a_sync_9modifiers_7manager_ModifierManager),
|
|
17827
|
+
sizeof(struct __pyx_obj_6a_sync_6a_sync_9modifiers_7manager_ModifierManager), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_6a_sync_9modifiers_7manager_ModifierManager),
|
|
17816
17828
|
#endif
|
|
17817
|
-
|
|
17829
|
+
__Pyx_ImportType_CheckSize_Warn_3_1_4); if (!__pyx_mstate->__pyx_ptype_6a_sync_6a_sync_9modifiers_7manager_ModifierManager) __PYX_ERR(3, 1, __pyx_L1_error)
|
|
17818
17830
|
__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(3, 1, __pyx_L1_error)
|
|
17819
17831
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
17820
17832
|
__pyx_t_1 = PyImport_ImportModule("a_sync.a_sync.function"); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 3, __pyx_L1_error)
|
|
17821
17833
|
__Pyx_GOTREF(__pyx_t_1);
|
|
17822
|
-
__pyx_mstate->__pyx_ptype_6a_sync_6a_sync_8function__ModifiedMixin =
|
|
17834
|
+
__pyx_mstate->__pyx_ptype_6a_sync_6a_sync_8function__ModifiedMixin = __Pyx_ImportType_3_1_4(__pyx_t_1, "a_sync.a_sync.function", "_ModifiedMixin",
|
|
17823
17835
|
#if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
|
|
17824
|
-
sizeof(struct __pyx_obj_6a_sync_6a_sync_8function__ModifiedMixin),
|
|
17836
|
+
sizeof(struct __pyx_obj_6a_sync_6a_sync_8function__ModifiedMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_6a_sync_8function__ModifiedMixin),
|
|
17825
17837
|
#elif CYTHON_COMPILING_IN_LIMITED_API
|
|
17826
|
-
sizeof(struct __pyx_obj_6a_sync_6a_sync_8function__ModifiedMixin),
|
|
17838
|
+
sizeof(struct __pyx_obj_6a_sync_6a_sync_8function__ModifiedMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_6a_sync_8function__ModifiedMixin),
|
|
17827
17839
|
#else
|
|
17828
|
-
sizeof(struct __pyx_obj_6a_sync_6a_sync_8function__ModifiedMixin),
|
|
17840
|
+
sizeof(struct __pyx_obj_6a_sync_6a_sync_8function__ModifiedMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_6a_sync_8function__ModifiedMixin),
|
|
17829
17841
|
#endif
|
|
17830
|
-
|
|
17842
|
+
__Pyx_ImportType_CheckSize_Warn_3_1_4); if (!__pyx_mstate->__pyx_ptype_6a_sync_6a_sync_8function__ModifiedMixin) __PYX_ERR(4, 3, __pyx_L1_error)
|
|
17831
17843
|
__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(4, 3, __pyx_L1_error)
|
|
17832
17844
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
17833
17845
|
__pyx_t_1 = PyImport_ImportModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_t_1)) __PYX_ERR(5, 9, __pyx_L1_error)
|
|
17834
17846
|
__Pyx_GOTREF(__pyx_t_1);
|
|
17835
|
-
__pyx_mstate->__pyx_ptype_7cpython_4type_type =
|
|
17847
|
+
__pyx_mstate->__pyx_ptype_7cpython_4type_type = __Pyx_ImportType_3_1_4(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME, "type",
|
|
17836
17848
|
#if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
|
|
17837
|
-
sizeof(PyTypeObject),
|
|
17849
|
+
sizeof(PyTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(PyTypeObject),
|
|
17838
17850
|
#elif CYTHON_COMPILING_IN_LIMITED_API
|
|
17839
17851
|
0, 0,
|
|
17840
17852
|
#else
|
|
17841
|
-
sizeof(PyHeapTypeObject),
|
|
17853
|
+
sizeof(PyHeapTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(PyHeapTypeObject),
|
|
17842
17854
|
#endif
|
|
17843
|
-
|
|
17855
|
+
__Pyx_ImportType_CheckSize_Warn_3_1_4); if (!__pyx_mstate->__pyx_ptype_7cpython_4type_type) __PYX_ERR(5, 9, __pyx_L1_error)
|
|
17844
17856
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
17845
17857
|
__pyx_t_1 = PyImport_ImportModule("a_sync.functools"); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 1, __pyx_L1_error)
|
|
17846
17858
|
__Pyx_GOTREF(__pyx_t_1);
|
|
17847
|
-
__pyx_mstate->__pyx_ptype_6a_sync_9functools_cached_property_unsafe =
|
|
17859
|
+
__pyx_mstate->__pyx_ptype_6a_sync_9functools_cached_property_unsafe = __Pyx_ImportType_3_1_4(__pyx_t_1, "a_sync.functools", "cached_property_unsafe",
|
|
17848
17860
|
#if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
|
|
17849
|
-
sizeof(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe),
|
|
17861
|
+
sizeof(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe),
|
|
17850
17862
|
#elif CYTHON_COMPILING_IN_LIMITED_API
|
|
17851
|
-
sizeof(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe),
|
|
17863
|
+
sizeof(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe),
|
|
17852
17864
|
#else
|
|
17853
|
-
sizeof(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe),
|
|
17865
|
+
sizeof(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe),
|
|
17854
17866
|
#endif
|
|
17855
|
-
|
|
17867
|
+
__Pyx_ImportType_CheckSize_Warn_3_1_4); if (!__pyx_mstate->__pyx_ptype_6a_sync_9functools_cached_property_unsafe) __PYX_ERR(6, 1, __pyx_L1_error)
|
|
17856
17868
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
17857
17869
|
__Pyx_RefNannyFinishContext();
|
|
17858
17870
|
return 0;
|
|
@@ -17882,16 +17894,16 @@ static int __Pyx_modinit_function_import_code(__pyx_mstatetype *__pyx_mstate) {
|
|
|
17882
17894
|
/*--- Function import code ---*/
|
|
17883
17895
|
__pyx_t_1 = PyImport_ImportModule("a_sync.a_sync._kwargs"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
17884
17896
|
__Pyx_GOTREF(__pyx_t_1);
|
|
17885
|
-
if (
|
|
17886
|
-
if (
|
|
17897
|
+
if (__Pyx_ImportFunction_3_1_4(__pyx_t_1, "get_flag_name", (void (**)(void))&__pyx_f_6a_sync_6a_sync_7_kwargs_get_flag_name, "PyObject *(PyObject *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
17898
|
+
if (__Pyx_ImportFunction_3_1_4(__pyx_t_1, "is_sync", (void (**)(void))&__pyx_f_6a_sync_6a_sync_7_kwargs_is_sync, "int (PyObject *, PyObject *, int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
17887
17899
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
17888
17900
|
__pyx_t_1 = PyImport_ImportModule("a_sync.a_sync._helpers"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
17889
17901
|
__Pyx_GOTREF(__pyx_t_1);
|
|
17890
|
-
if (
|
|
17902
|
+
if (__Pyx_ImportFunction_3_1_4(__pyx_t_1, "_await", (void (**)(void))&__pyx_f_6a_sync_6a_sync_8_helpers__await, "PyObject *(PyObject *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
17891
17903
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
17892
17904
|
__pyx_t_1 = PyImport_ImportModule("a_sync.functools"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
17893
17905
|
__Pyx_GOTREF(__pyx_t_1);
|
|
17894
|
-
if (
|
|
17906
|
+
if (__Pyx_ImportFunction_3_1_4(__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)
|
|
17895
17907
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
17896
17908
|
__Pyx_RefNannyFinishContext();
|
|
17897
17909
|
return 0;
|
|
@@ -23077,6 +23089,7 @@ static int __pyx_CommonTypesMetaclass_init(PyObject *module) {
|
|
|
23077
23089
|
return -1;
|
|
23078
23090
|
}
|
|
23079
23091
|
mstate->__pyx_CommonTypesMetaclassType = __Pyx_FetchCommonTypeFromSpec(NULL, module, &__pyx_CommonTypesMetaclass_spec, bases);
|
|
23092
|
+
Py_DECREF(bases);
|
|
23080
23093
|
if (unlikely(mstate->__pyx_CommonTypesMetaclassType == NULL)) {
|
|
23081
23094
|
return -1;
|
|
23082
23095
|
}
|
|
@@ -26068,15 +26081,15 @@ static CYTHON_INLINE int __Pyx_HasAttr(PyObject *o, PyObject *n) {
|
|
|
26068
26081
|
}
|
|
26069
26082
|
|
|
26070
26083
|
/* TypeImport */
|
|
26071
|
-
#ifndef
|
|
26072
|
-
#define
|
|
26073
|
-
static PyTypeObject *
|
|
26074
|
-
size_t size, size_t alignment, enum
|
|
26084
|
+
#ifndef __PYX_HAVE_RT_ImportType_3_1_4
|
|
26085
|
+
#define __PYX_HAVE_RT_ImportType_3_1_4
|
|
26086
|
+
static PyTypeObject *__Pyx_ImportType_3_1_4(PyObject *module, const char *module_name, const char *class_name,
|
|
26087
|
+
size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_1_4 check_size)
|
|
26075
26088
|
{
|
|
26076
26089
|
PyObject *result = 0;
|
|
26077
26090
|
Py_ssize_t basicsize;
|
|
26078
26091
|
Py_ssize_t itemsize;
|
|
26079
|
-
#
|
|
26092
|
+
#ifdef Py_LIMITED_API
|
|
26080
26093
|
PyObject *py_basicsize;
|
|
26081
26094
|
PyObject *py_itemsize;
|
|
26082
26095
|
#endif
|
|
@@ -26089,7 +26102,7 @@ static PyTypeObject *__Pyx_ImportType_3_1_3(PyObject *module, const char *module
|
|
|
26089
26102
|
module_name, class_name);
|
|
26090
26103
|
goto bad;
|
|
26091
26104
|
}
|
|
26092
|
-
#
|
|
26105
|
+
#ifndef Py_LIMITED_API
|
|
26093
26106
|
basicsize = ((PyTypeObject *)result)->tp_basicsize;
|
|
26094
26107
|
itemsize = ((PyTypeObject *)result)->tp_itemsize;
|
|
26095
26108
|
#else
|
|
@@ -26127,7 +26140,7 @@ static PyTypeObject *__Pyx_ImportType_3_1_3(PyObject *module, const char *module
|
|
|
26127
26140
|
module_name, class_name, size, basicsize+itemsize);
|
|
26128
26141
|
goto bad;
|
|
26129
26142
|
}
|
|
26130
|
-
if (check_size ==
|
|
26143
|
+
if (check_size == __Pyx_ImportType_CheckSize_Error_3_1_4 &&
|
|
26131
26144
|
((size_t)basicsize > size || (size_t)(basicsize + itemsize) < size)) {
|
|
26132
26145
|
PyErr_Format(PyExc_ValueError,
|
|
26133
26146
|
"%.200s.%.200s size changed, may indicate binary incompatibility. "
|
|
@@ -26135,7 +26148,7 @@ static PyTypeObject *__Pyx_ImportType_3_1_3(PyObject *module, const char *module
|
|
|
26135
26148
|
module_name, class_name, size, basicsize, basicsize+itemsize);
|
|
26136
26149
|
goto bad;
|
|
26137
26150
|
}
|
|
26138
|
-
else if (check_size ==
|
|
26151
|
+
else if (check_size == __Pyx_ImportType_CheckSize_Warn_3_1_4 && (size_t)basicsize > size) {
|
|
26139
26152
|
if (PyErr_WarnFormat(NULL, 0,
|
|
26140
26153
|
"%.200s.%.200s size changed, may indicate binary incompatibility. "
|
|
26141
26154
|
"Expected %zd from C header, got %zd from PyObject",
|
|
@@ -29236,9 +29249,9 @@ bad:
|
|
|
29236
29249
|
}
|
|
29237
29250
|
|
|
29238
29251
|
/* FunctionImport */
|
|
29239
|
-
#ifndef
|
|
29240
|
-
#define
|
|
29241
|
-
static int
|
|
29252
|
+
#ifndef __PYX_HAVE_RT_ImportFunction_3_1_4
|
|
29253
|
+
#define __PYX_HAVE_RT_ImportFunction_3_1_4
|
|
29254
|
+
static int __Pyx_ImportFunction_3_1_4(PyObject *module, const char *funcname, void (**f)(void), const char *sig) {
|
|
29242
29255
|
PyObject *d = 0;
|
|
29243
29256
|
PyObject *cobj = 0;
|
|
29244
29257
|
union {
|
|
@@ -29340,6 +29353,10 @@ bad:
|
|
|
29340
29353
|
PyCode_NewWithPosOnlyArgs
|
|
29341
29354
|
#endif
|
|
29342
29355
|
(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, name, fline, lnos, __pyx_mstate_global->__pyx_empty_bytes);
|
|
29356
|
+
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030c00A1
|
|
29357
|
+
if (likely(result))
|
|
29358
|
+
result->_co_firsttraceable = 0;
|
|
29359
|
+
#endif
|
|
29343
29360
|
return result;
|
|
29344
29361
|
}
|
|
29345
29362
|
#elif PY_VERSION_HEX >= 0x030800B2 && !CYTHON_COMPILING_IN_PYPY
|
|
Binary file
|
a_sync/a_sync/method.pyi
CHANGED
|
@@ -8,6 +8,7 @@ asynchronously based on various conditions and configurations.
|
|
|
8
8
|
|
|
9
9
|
from a_sync._typing import *
|
|
10
10
|
import functools
|
|
11
|
+
import logging
|
|
11
12
|
import weakref
|
|
12
13
|
from _typeshed import Incomplete
|
|
13
14
|
from a_sync import TaskMapping as TaskMapping
|
|
@@ -21,7 +22,7 @@ from a_sync.a_sync.function import (
|
|
|
21
22
|
from typing import Any, final
|
|
22
23
|
|
|
23
24
|
METHOD_CACHE_TTL: Literal[3600]
|
|
24
|
-
logger:
|
|
25
|
+
logger: logging.Logger
|
|
25
26
|
|
|
26
27
|
class ASyncMethodDescriptor(ASyncDescriptor[I, P, T]):
|
|
27
28
|
"""
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Generated by Cython 3.1.
|
|
1
|
+
/* Generated by Cython 3.1.4 */
|
|
2
2
|
|
|
3
3
|
/* BEGIN: Cython Metadata
|
|
4
4
|
{
|
|
@@ -30,8 +30,8 @@ END: Cython Metadata */
|
|
|
30
30
|
#elif PY_VERSION_HEX < 0x03080000
|
|
31
31
|
#error Cython requires Python 3.8+.
|
|
32
32
|
#else
|
|
33
|
-
#define __PYX_ABI_VERSION "
|
|
34
|
-
#define CYTHON_HEX_VERSION
|
|
33
|
+
#define __PYX_ABI_VERSION "3_1_4"
|
|
34
|
+
#define CYTHON_HEX_VERSION 0x030104F0
|
|
35
35
|
#define CYTHON_FUTURE_DIVISION 1
|
|
36
36
|
/* CModulePreamble */
|
|
37
37
|
#include <stddef.h>
|
|
@@ -2043,18 +2043,18 @@ static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type, const char *nam
|
|
|
2043
2043
|
if (!__Pyx_PyThreadState_Current->tracing) {\
|
|
2044
2044
|
if (likely(__pyx_frame_code)) Py_INCREF(__pyx_frame_code);\
|
|
2045
2045
|
else __pyx_frame_code = (PyObject*) __Pyx_createFrameCodeObject(funcname, srcfile, firstlineno);\
|
|
2046
|
-
if (unlikely(!__pyx_frame_code))
|
|
2047
|
-
ret = __Pyx__TraceStartFunc(__pyx_pymonitoring_state, __pyx_frame_code, offset, skip_event);\
|
|
2048
|
-
}
|
|
2046
|
+
if (unlikely(!__pyx_frame_code)) ret = -1;\
|
|
2047
|
+
else ret = __Pyx__TraceStartFunc(__pyx_pymonitoring_state, __pyx_frame_code, offset, skip_event);\
|
|
2048
|
+
} else __pyx_frame_code = NULL;\
|
|
2049
2049
|
PyGILState_Release(state);\
|
|
2050
|
-
}
|
|
2050
|
+
} else __pyx_frame_code = NULL;\
|
|
2051
2051
|
} else {\
|
|
2052
2052
|
if (!__Pyx_PyThreadState_Current->tracing) {\
|
|
2053
2053
|
if (likely(__pyx_frame_code)) Py_INCREF(__pyx_frame_code);\
|
|
2054
2054
|
else __pyx_frame_code = (PyObject*) __Pyx_createFrameCodeObject(funcname, srcfile, firstlineno);\
|
|
2055
|
-
if (unlikely(!__pyx_frame_code))
|
|
2056
|
-
ret = __Pyx__TraceStartFunc(__pyx_pymonitoring_state, __pyx_frame_code, offset, skip_event);\
|
|
2057
|
-
}
|
|
2055
|
+
if (unlikely(!__pyx_frame_code)) ret = -1;\
|
|
2056
|
+
else ret = __Pyx__TraceStartFunc(__pyx_pymonitoring_state, __pyx_frame_code, offset, skip_event);\
|
|
2057
|
+
} else __pyx_frame_code = NULL;\
|
|
2058
2058
|
}\
|
|
2059
2059
|
if (unlikely(ret == -1)) goto_error;\
|
|
2060
2060
|
}
|
|
@@ -2699,22 +2699,22 @@ static void* __Pyx_GetVtable(PyTypeObject *type);
|
|
|
2699
2699
|
static int __Pyx_MergeVtables(PyTypeObject *type);
|
|
2700
2700
|
|
|
2701
2701
|
/* TypeImport.proto */
|
|
2702
|
-
#ifndef
|
|
2703
|
-
#define
|
|
2702
|
+
#ifndef __PYX_HAVE_RT_ImportType_proto_3_1_4
|
|
2703
|
+
#define __PYX_HAVE_RT_ImportType_proto_3_1_4
|
|
2704
2704
|
#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
|
|
2705
2705
|
#include <stdalign.h>
|
|
2706
2706
|
#endif
|
|
2707
2707
|
#if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) || __cplusplus >= 201103L
|
|
2708
|
-
#define
|
|
2708
|
+
#define __PYX_GET_STRUCT_ALIGNMENT_3_1_4(s) alignof(s)
|
|
2709
2709
|
#else
|
|
2710
|
-
#define
|
|
2710
|
+
#define __PYX_GET_STRUCT_ALIGNMENT_3_1_4(s) sizeof(void*)
|
|
2711
2711
|
#endif
|
|
2712
|
-
enum
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2712
|
+
enum __Pyx_ImportType_CheckSize_3_1_4 {
|
|
2713
|
+
__Pyx_ImportType_CheckSize_Error_3_1_4 = 0,
|
|
2714
|
+
__Pyx_ImportType_CheckSize_Warn_3_1_4 = 1,
|
|
2715
|
+
__Pyx_ImportType_CheckSize_Ignore_3_1_4 = 2
|
|
2716
2716
|
};
|
|
2717
|
-
static PyTypeObject *
|
|
2717
|
+
static PyTypeObject *__Pyx_ImportType_3_1_4(PyObject* module, const char *module_name, const char *class_name, size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_1_4 check_size);
|
|
2718
2718
|
#endif
|
|
2719
2719
|
|
|
2720
2720
|
/* Import.proto */
|
|
@@ -2989,7 +2989,7 @@ static unsigned long __Pyx_get_runtime_version(void);
|
|
|
2989
2989
|
static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt_version, int allow_newer);
|
|
2990
2990
|
|
|
2991
2991
|
/* FunctionImport.proto */
|
|
2992
|
-
static int
|
|
2992
|
+
static int __Pyx_ImportFunction_3_1_4(PyObject *module, const char *funcname, void (**f)(void), const char *sig);
|
|
2993
2993
|
|
|
2994
2994
|
/* MultiPhaseInitModuleState.proto */
|
|
2995
2995
|
#if CYTHON_PEP489_MULTI_PHASE_INIT && CYTHON_USE_MODULE_STATE
|
|
@@ -7395,15 +7395,15 @@ static int __Pyx_modinit_type_import_code(__pyx_mstatetype *__pyx_mstate) {
|
|
|
7395
7395
|
/*--- Type import code ---*/
|
|
7396
7396
|
__pyx_t_1 = PyImport_ImportModule("a_sync.functools"); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1, __pyx_L1_error)
|
|
7397
7397
|
__Pyx_GOTREF(__pyx_t_1);
|
|
7398
|
-
__pyx_mstate->__pyx_ptype_6a_sync_9functools_cached_property_unsafe =
|
|
7398
|
+
__pyx_mstate->__pyx_ptype_6a_sync_9functools_cached_property_unsafe = __Pyx_ImportType_3_1_4(__pyx_t_1, "a_sync.functools", "cached_property_unsafe",
|
|
7399
7399
|
#if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
|
|
7400
|
-
sizeof(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe),
|
|
7400
|
+
sizeof(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe),
|
|
7401
7401
|
#elif CYTHON_COMPILING_IN_LIMITED_API
|
|
7402
|
-
sizeof(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe),
|
|
7402
|
+
sizeof(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe),
|
|
7403
7403
|
#else
|
|
7404
|
-
sizeof(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe),
|
|
7404
|
+
sizeof(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe),
|
|
7405
7405
|
#endif
|
|
7406
|
-
|
|
7406
|
+
__Pyx_ImportType_CheckSize_Warn_3_1_4); if (!__pyx_mstate->__pyx_ptype_6a_sync_9functools_cached_property_unsafe) __PYX_ERR(2, 1, __pyx_L1_error)
|
|
7407
7407
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
7408
7408
|
__Pyx_RefNannyFinishContext();
|
|
7409
7409
|
return 0;
|
|
@@ -7433,7 +7433,7 @@ static int __Pyx_modinit_function_import_code(__pyx_mstatetype *__pyx_mstate) {
|
|
|
7433
7433
|
/*--- Function import code ---*/
|
|
7434
7434
|
__pyx_t_1 = PyImport_ImportModule("a_sync.functools"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
7435
7435
|
__Pyx_GOTREF(__pyx_t_1);
|
|
7436
|
-
if (
|
|
7436
|
+
if (__Pyx_ImportFunction_3_1_4(__pyx_t_1, "wraps", (void (**)(void))&__pyx_f_6a_sync_9functools_wraps, "PyObject *(PyObject *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
|
|
7437
7437
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
7438
7438
|
__Pyx_RefNannyFinishContext();
|
|
7439
7439
|
return 0;
|
|
@@ -11222,6 +11222,7 @@ static int __pyx_CommonTypesMetaclass_init(PyObject *module) {
|
|
|
11222
11222
|
return -1;
|
|
11223
11223
|
}
|
|
11224
11224
|
mstate->__pyx_CommonTypesMetaclassType = __Pyx_FetchCommonTypeFromSpec(NULL, module, &__pyx_CommonTypesMetaclass_spec, bases);
|
|
11225
|
+
Py_DECREF(bases);
|
|
11225
11226
|
if (unlikely(mstate->__pyx_CommonTypesMetaclassType == NULL)) {
|
|
11226
11227
|
return -1;
|
|
11227
11228
|
}
|
|
@@ -12746,15 +12747,15 @@ other_failure:
|
|
|
12746
12747
|
}
|
|
12747
12748
|
|
|
12748
12749
|
/* TypeImport */
|
|
12749
|
-
#ifndef
|
|
12750
|
-
#define
|
|
12751
|
-
static PyTypeObject *
|
|
12752
|
-
size_t size, size_t alignment, enum
|
|
12750
|
+
#ifndef __PYX_HAVE_RT_ImportType_3_1_4
|
|
12751
|
+
#define __PYX_HAVE_RT_ImportType_3_1_4
|
|
12752
|
+
static PyTypeObject *__Pyx_ImportType_3_1_4(PyObject *module, const char *module_name, const char *class_name,
|
|
12753
|
+
size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_1_4 check_size)
|
|
12753
12754
|
{
|
|
12754
12755
|
PyObject *result = 0;
|
|
12755
12756
|
Py_ssize_t basicsize;
|
|
12756
12757
|
Py_ssize_t itemsize;
|
|
12757
|
-
#
|
|
12758
|
+
#ifdef Py_LIMITED_API
|
|
12758
12759
|
PyObject *py_basicsize;
|
|
12759
12760
|
PyObject *py_itemsize;
|
|
12760
12761
|
#endif
|
|
@@ -12767,7 +12768,7 @@ static PyTypeObject *__Pyx_ImportType_3_1_3(PyObject *module, const char *module
|
|
|
12767
12768
|
module_name, class_name);
|
|
12768
12769
|
goto bad;
|
|
12769
12770
|
}
|
|
12770
|
-
#
|
|
12771
|
+
#ifndef Py_LIMITED_API
|
|
12771
12772
|
basicsize = ((PyTypeObject *)result)->tp_basicsize;
|
|
12772
12773
|
itemsize = ((PyTypeObject *)result)->tp_itemsize;
|
|
12773
12774
|
#else
|
|
@@ -12805,7 +12806,7 @@ static PyTypeObject *__Pyx_ImportType_3_1_3(PyObject *module, const char *module
|
|
|
12805
12806
|
module_name, class_name, size, basicsize+itemsize);
|
|
12806
12807
|
goto bad;
|
|
12807
12808
|
}
|
|
12808
|
-
if (check_size ==
|
|
12809
|
+
if (check_size == __Pyx_ImportType_CheckSize_Error_3_1_4 &&
|
|
12809
12810
|
((size_t)basicsize > size || (size_t)(basicsize + itemsize) < size)) {
|
|
12810
12811
|
PyErr_Format(PyExc_ValueError,
|
|
12811
12812
|
"%.200s.%.200s size changed, may indicate binary incompatibility. "
|
|
@@ -12813,7 +12814,7 @@ static PyTypeObject *__Pyx_ImportType_3_1_3(PyObject *module, const char *module
|
|
|
12813
12814
|
module_name, class_name, size, basicsize, basicsize+itemsize);
|
|
12814
12815
|
goto bad;
|
|
12815
12816
|
}
|
|
12816
|
-
else if (check_size ==
|
|
12817
|
+
else if (check_size == __Pyx_ImportType_CheckSize_Warn_3_1_4 && (size_t)basicsize > size) {
|
|
12817
12818
|
if (PyErr_WarnFormat(NULL, 0,
|
|
12818
12819
|
"%.200s.%.200s size changed, may indicate binary incompatibility. "
|
|
12819
12820
|
"Expected %zd from C header, got %zd from PyObject",
|
|
@@ -15520,9 +15521,9 @@ static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt
|
|
|
15520
15521
|
}
|
|
15521
15522
|
|
|
15522
15523
|
/* FunctionImport */
|
|
15523
|
-
#ifndef
|
|
15524
|
-
#define
|
|
15525
|
-
static int
|
|
15524
|
+
#ifndef __PYX_HAVE_RT_ImportFunction_3_1_4
|
|
15525
|
+
#define __PYX_HAVE_RT_ImportFunction_3_1_4
|
|
15526
|
+
static int __Pyx_ImportFunction_3_1_4(PyObject *module, const char *funcname, void (**f)(void), const char *sig) {
|
|
15526
15527
|
PyObject *d = 0;
|
|
15527
15528
|
PyObject *cobj = 0;
|
|
15528
15529
|
union {
|
|
@@ -15624,6 +15625,10 @@ bad:
|
|
|
15624
15625
|
PyCode_NewWithPosOnlyArgs
|
|
15625
15626
|
#endif
|
|
15626
15627
|
(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, name, fline, lnos, __pyx_mstate_global->__pyx_empty_bytes);
|
|
15628
|
+
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030c00A1
|
|
15629
|
+
if (likely(result))
|
|
15630
|
+
result->_co_firsttraceable = 0;
|
|
15631
|
+
#endif
|
|
15627
15632
|
return result;
|
|
15628
15633
|
}
|
|
15629
15634
|
#elif PY_VERSION_HEX >= 0x030800B2 && !CYTHON_COMPILING_IN_PYPY
|
|
Binary file
|