ez-a-sync 0.32.26__cp312-cp312-macosx_11_0_arm64.whl → 0.32.27__cp312-cp312-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.

Files changed (66) hide show
  1. a_sync/_smart.c +49 -34
  2. a_sync/_smart.cpython-312-darwin.so +0 -0
  3. a_sync/a_sync/_descriptor.c +70 -55
  4. a_sync/a_sync/_descriptor.cpython-312-darwin.so +0 -0
  5. a_sync/a_sync/_flags.c +13 -10
  6. a_sync/a_sync/_flags.cpython-312-darwin.so +0 -0
  7. a_sync/a_sync/_helpers.c +62 -47
  8. a_sync/a_sync/_helpers.cpython-312-darwin.so +0 -0
  9. a_sync/a_sync/_kwargs.c +33 -18
  10. a_sync/a_sync/_kwargs.cpython-312-darwin.so +0 -0
  11. a_sync/a_sync/abstract.c +18 -11
  12. a_sync/a_sync/abstract.cpython-312-darwin.so +0 -0
  13. a_sync/a_sync/base.c +168 -153
  14. a_sync/a_sync/base.cpython-312-darwin.so +0 -0
  15. a_sync/a_sync/flags.c +6 -3
  16. a_sync/a_sync/flags.cpython-312-darwin.so +0 -0
  17. a_sync/a_sync/function.c +80 -65
  18. a_sync/a_sync/function.cpython-312-darwin.so +0 -0
  19. a_sync/a_sync/method.c +125 -110
  20. a_sync/a_sync/method.cpython-312-darwin.so +0 -0
  21. a_sync/a_sync/modifiers/manager.c +46 -31
  22. a_sync/a_sync/modifiers/manager.cpython-312-darwin.so +0 -0
  23. a_sync/a_sync/property.c +82 -67
  24. a_sync/a_sync/property.cpython-312-darwin.so +0 -0
  25. a_sync/async_property/cached.c +52 -37
  26. a_sync/async_property/cached.cpython-312-darwin.so +0 -0
  27. a_sync/async_property/proxy.c +25 -10
  28. a_sync/async_property/proxy.cpython-312-darwin.so +0 -0
  29. a_sync/asyncio/as_completed.c +21 -6
  30. a_sync/asyncio/as_completed.cpython-312-darwin.so +0 -0
  31. a_sync/asyncio/create_task.c +23 -8
  32. a_sync/asyncio/create_task.cpython-312-darwin.so +0 -0
  33. a_sync/asyncio/gather.c +30 -15
  34. a_sync/asyncio/gather.cpython-312-darwin.so +0 -0
  35. a_sync/asyncio/igather.c +24 -9
  36. a_sync/asyncio/igather.cpython-312-darwin.so +0 -0
  37. a_sync/asyncio/sleep.c +19 -4
  38. a_sync/asyncio/sleep.cpython-312-darwin.so +0 -0
  39. a_sync/debugging.c +45 -30
  40. a_sync/debugging.cpython-312-darwin.so +0 -0
  41. a_sync/exceptions.c +18 -11
  42. a_sync/exceptions.cpython-312-darwin.so +0 -0
  43. a_sync/executor.py +44 -0
  44. a_sync/functools.c +24 -9
  45. a_sync/functools.cpython-312-darwin.so +0 -0
  46. a_sync/iter.c +86 -71
  47. a_sync/iter.cpython-312-darwin.so +0 -0
  48. a_sync/primitives/_debug.c +51 -36
  49. a_sync/primitives/_debug.cpython-312-darwin.so +0 -0
  50. a_sync/primitives/_loggable.c +26 -11
  51. a_sync/primitives/_loggable.cpython-312-darwin.so +0 -0
  52. a_sync/primitives/locks/counter.c +65 -50
  53. a_sync/primitives/locks/counter.cpython-312-darwin.so +0 -0
  54. a_sync/primitives/locks/event.c +56 -40
  55. a_sync/primitives/locks/event.cpython-312-darwin.so +0 -0
  56. a_sync/primitives/locks/prio_semaphore.c +82 -67
  57. a_sync/primitives/locks/prio_semaphore.cpython-312-darwin.so +0 -0
  58. a_sync/primitives/locks/semaphore.c +72 -57
  59. a_sync/primitives/locks/semaphore.cpython-312-darwin.so +0 -0
  60. a_sync/utils/repr.c +41 -26
  61. a_sync/utils/repr.cpython-312-darwin.so +0 -0
  62. {ez_a_sync-0.32.26.dist-info → ez_a_sync-0.32.27.dist-info}/METADATA +1 -1
  63. {ez_a_sync-0.32.26.dist-info → ez_a_sync-0.32.27.dist-info}/RECORD +66 -66
  64. {ez_a_sync-0.32.26.dist-info → ez_a_sync-0.32.27.dist-info}/WHEEL +0 -0
  65. {ez_a_sync-0.32.26.dist-info → ez_a_sync-0.32.27.dist-info}/licenses/LICENSE.txt +0 -0
  66. {ez_a_sync-0.32.26.dist-info → ez_a_sync-0.32.27.dist-info}/top_level.txt +0 -0
@@ -1,4 +1,4 @@
1
- /* Generated by Cython 3.1.2 */
1
+ /* Generated by Cython 3.1.3 */
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 "3_1_2"
34
- #define CYTHON_HEX_VERSION 0x030102F0
33
+ #define __PYX_ABI_VERSION "3_1_3"
34
+ #define CYTHON_HEX_VERSION 0x030103F0
35
35
  #define CYTHON_FUTURE_DIVISION 1
36
36
  /* CModulePreamble */
37
37
  #include <stddef.h>
@@ -394,6 +394,9 @@ END: Cython Metadata */
394
394
  enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P == sizeof(void*)) };
395
395
  #endif
396
396
  #endif
397
+ #ifndef CYTHON_LOCK_AND_GIL_DEADLOCK_AVOIDANCE_TIME
398
+ #define CYTHON_LOCK_AND_GIL_DEADLOCK_AVOIDANCE_TIME 100
399
+ #endif
397
400
  #ifndef __has_attribute
398
401
  #define __has_attribute(x) 0
399
402
  #endif
@@ -3290,22 +3293,22 @@ static int __Pyx_call_next_tp_traverse(PyObject* obj, visitproc v, void *a, trav
3290
3293
  static void __Pyx_call_next_tp_clear(PyObject* obj, inquiry current_tp_clear);
3291
3294
 
3292
3295
  /* TypeImport.proto */
3293
- #ifndef __PYX_HAVE_RT_ImportType_proto_3_1_2
3294
- #define __PYX_HAVE_RT_ImportType_proto_3_1_2
3296
+ #ifndef __PYX_HAVE_RT_ImportType_proto_3_1_3
3297
+ #define __PYX_HAVE_RT_ImportType_proto_3_1_3
3295
3298
  #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
3296
3299
  #include <stdalign.h>
3297
3300
  #endif
3298
3301
  #if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) || __cplusplus >= 201103L
3299
- #define __PYX_GET_STRUCT_ALIGNMENT_3_1_2(s) alignof(s)
3302
+ #define __PYX_GET_STRUCT_ALIGNMENT_3_1_3(s) alignof(s)
3300
3303
  #else
3301
- #define __PYX_GET_STRUCT_ALIGNMENT_3_1_2(s) sizeof(void*)
3304
+ #define __PYX_GET_STRUCT_ALIGNMENT_3_1_3(s) sizeof(void*)
3302
3305
  #endif
3303
- enum __Pyx_ImportType_CheckSize_3_1_2 {
3304
- __Pyx_ImportType_CheckSize_Error_3_1_2 = 0,
3305
- __Pyx_ImportType_CheckSize_Warn_3_1_2 = 1,
3306
- __Pyx_ImportType_CheckSize_Ignore_3_1_2 = 2
3306
+ enum __Pyx_ImportType_CheckSize_3_1_3 {
3307
+ __Pyx_ImportType_CheckSize_Error_3_1_3 = 0,
3308
+ __Pyx_ImportType_CheckSize_Warn_3_1_3 = 1,
3309
+ __Pyx_ImportType_CheckSize_Ignore_3_1_3 = 2
3307
3310
  };
3308
- static PyTypeObject *__Pyx_ImportType_3_1_2(PyObject* module, const char *module_name, const char *class_name, size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_1_2 check_size);
3311
+ 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);
3309
3312
  #endif
3310
3313
 
3311
3314
  /* GetVTable.proto */
@@ -3460,7 +3463,7 @@ static unsigned long __Pyx_get_runtime_version(void);
3460
3463
  static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt_version, int allow_newer);
3461
3464
 
3462
3465
  /* FunctionImport.proto */
3463
- static int __Pyx_ImportFunction_3_1_2(PyObject *module, const char *funcname, void (**f)(void), const char *sig);
3466
+ static int __Pyx_ImportFunction_3_1_3(PyObject *module, const char *funcname, void (**f)(void), const char *sig);
3464
3467
 
3465
3468
  /* MultiPhaseInitModuleState.proto */
3466
3469
  #if CYTHON_PEP489_MULTI_PHASE_INIT && CYTHON_USE_MODULE_STATE
@@ -3766,7 +3769,7 @@ static const char __pyx_k_ThreadsafeSemaphore___aenter[] = "ThreadsafeSemaphore.
3766
3769
  static const char __pyx_k_must_be_a_coroutine_function[] = " must be a coroutine function";
3767
3770
  static const char __pyx_k_s_has_s_waiters_for_any_of_s[] = "%s has %s waiters for any of: %s";
3768
3771
  static const char __pyx_k_Failed_to_allocate_memory_for[] = "Failed to allocate memory for __name.";
3769
- static const char __pyx_k_5_J_t_Z_A_4q_T_a_c_Ct_PSSZZ_Rt[] = "\320\004\032\230!\330\010\031\230\022\2305\240\004\240J\320.?\270t\300<\310{\320Z^\320^{\320{~\320~\360\000\000@\002A\002\330\010\013\2104\210q\330\014\025\220T\230\021\230$\230a\230\250c\260\021\260*\270C\270t\300=\320PS\320SZ\320Z[\330\014\035\230R\230t\240>\260\023\260O\3001\330\010\017\210q";
3772
+ static const char __pyx_k_5_J_t_Z_A_4q_T_a_c_Ct_PSSZZ_Rt[] = "\320\004\032\230!\330\010\031\230\022\2305\240\004\240J\320.?\270t\300<\310{\320Z^\320^{\320{~\320~\177\360\000\000@\002A\002\330\010\013\2104\210q\330\014\025\220T\230\021\230$\230a\230\177\250c\260\021\260*\270C\270t\300=\320PS\320SZ\320Z[\330\014\035\230R\230t\240>\260\023\260O\3001\330\010\017\210q";
3770
3773
  static const char __pyx_k_DummySemaphore___reduce_cython[] = "DummySemaphore.__reduce_cython__";
3771
3774
  static const char __pyx_k_33C9A_z_r_Q_6_Q_M_t1_4q_a_q_Q_k[] = "\320\004\036\320\0363\3203C\3009\310A\360\020\000\t\020\210z\230\021\230'\240\026\240r\250\024\250Q\330\010\021\220\031\230!\2306\240\027\250\005\250Q\340\010\014\210M\230\026\230t\2401\330\010\013\2104\210q\330\014\020\220\016\230a\330\014\020\220\t\230\036\240q\250\005\250Q\340\014\020\320\020>\270k\310\021\310!\330\014\020\220\t\230\021";
3772
3775
  static const char __pyx_k_Q_5_7_6_t7RSST_AQ_IWF_7_A_4wc_Q[] = "\320\004\035\320\035-\250Q\360\022\000\t$\2405\250\003\2507\260!\2606\270\036\300t\3107\320RS\320ST\330\010!\240\023\240A\240Q\360\006\000\t\r\210I\220W\230F\240!\2407\250\"\250A\330\010\t\340\010\013\2104\210w\220c\230\021\330\014\022\220+\230Q\230a\360\006\000\t\017\210a\210t\2208\2301";
@@ -5701,8 +5704,8 @@ static PyObject *__pyx_pf_6a_sync_10primitives_5locks_9semaphore_9Semaphore_8__r
5701
5704
  __Pyx_TraceLine(146,30,0,__PYX_ERR(0, 146, __pyx_L1_error))
5702
5705
  __pyx_t_5 = __pyx_v_self->_decorated;
5703
5706
  __Pyx_INCREF(__pyx_t_5);
5704
- __pyx_v_decorated = ((PyObject*)__pyx_t_5);
5705
5707
  __Pyx_INCREF(__pyx_t_5);
5708
+ __pyx_v_decorated = ((PyObject*)__pyx_t_5);
5706
5709
  __pyx_t_2 = __pyx_t_5;
5707
5710
  __Pyx_INCREF(__pyx_t_2);
5708
5711
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
@@ -15734,15 +15737,15 @@ static int __Pyx_modinit_type_init_code(__pyx_mstatetype *__pyx_mstate) {
15734
15737
  /*--- Type init code ---*/
15735
15738
  __pyx_t_1 = PyImport_ImportModule("a_sync.primitives._debug"); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error)
15736
15739
  __Pyx_GOTREF(__pyx_t_1);
15737
- __pyx_mstate->__pyx_ptype_6a_sync_10primitives_6_debug__DebugDaemonMixin = __Pyx_ImportType_3_1_2(__pyx_t_1, "a_sync.primitives._debug", "_DebugDaemonMixin",
15740
+ __pyx_mstate->__pyx_ptype_6a_sync_10primitives_6_debug__DebugDaemonMixin = __Pyx_ImportType_3_1_3(__pyx_t_1, "a_sync.primitives._debug", "_DebugDaemonMixin",
15738
15741
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
15739
- sizeof(struct __pyx_obj_6a_sync_10primitives_6_debug__DebugDaemonMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_2(struct __pyx_obj_6a_sync_10primitives_6_debug__DebugDaemonMixin),
15742
+ sizeof(struct __pyx_obj_6a_sync_10primitives_6_debug__DebugDaemonMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_10primitives_6_debug__DebugDaemonMixin),
15740
15743
  #elif CYTHON_COMPILING_IN_LIMITED_API
15741
- sizeof(struct __pyx_obj_6a_sync_10primitives_6_debug__DebugDaemonMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_2(struct __pyx_obj_6a_sync_10primitives_6_debug__DebugDaemonMixin),
15744
+ sizeof(struct __pyx_obj_6a_sync_10primitives_6_debug__DebugDaemonMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_10primitives_6_debug__DebugDaemonMixin),
15742
15745
  #else
15743
- sizeof(struct __pyx_obj_6a_sync_10primitives_6_debug__DebugDaemonMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_2(struct __pyx_obj_6a_sync_10primitives_6_debug__DebugDaemonMixin),
15746
+ sizeof(struct __pyx_obj_6a_sync_10primitives_6_debug__DebugDaemonMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_10primitives_6_debug__DebugDaemonMixin),
15744
15747
  #endif
15745
- __Pyx_ImportType_CheckSize_Warn_3_1_2); if (!__pyx_mstate->__pyx_ptype_6a_sync_10primitives_6_debug__DebugDaemonMixin) __PYX_ERR(0, 1, __pyx_L1_error)
15748
+ __Pyx_ImportType_CheckSize_Warn_3_1_3); if (!__pyx_mstate->__pyx_ptype_6a_sync_10primitives_6_debug__DebugDaemonMixin) __PYX_ERR(0, 1, __pyx_L1_error)
15746
15749
  __pyx_vtabptr_6a_sync_10primitives_6_debug__DebugDaemonMixin = (struct __pyx_vtabstruct_6a_sync_10primitives_6_debug__DebugDaemonMixin*)__Pyx_GetVtable(__pyx_mstate->__pyx_ptype_6a_sync_10primitives_6_debug__DebugDaemonMixin); if (unlikely(!__pyx_vtabptr_6a_sync_10primitives_6_debug__DebugDaemonMixin)) __PYX_ERR(0, 1, __pyx_L1_error)
15747
15750
  __pyx_vtabptr_6a_sync_10primitives_5locks_9semaphore_Semaphore = &__pyx_vtable_6a_sync_10primitives_5locks_9semaphore_Semaphore;
15748
15751
  __pyx_vtable_6a_sync_10primitives_5locks_9semaphore_Semaphore.__pyx_base = *__pyx_vtabptr_6a_sync_10primitives_6_debug__DebugDaemonMixin;
@@ -16086,41 +16089,41 @@ static int __Pyx_modinit_type_import_code(__pyx_mstatetype *__pyx_mstate) {
16086
16089
  /*--- Type import code ---*/
16087
16090
  __pyx_t_1 = PyImport_ImportModule("a_sync.primitives._loggable"); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1, __pyx_L1_error)
16088
16091
  __Pyx_GOTREF(__pyx_t_1);
16089
- __pyx_mstate->__pyx_ptype_6a_sync_10primitives_9_loggable__LoggerMixin = __Pyx_ImportType_3_1_2(__pyx_t_1, "a_sync.primitives._loggable", "_LoggerMixin",
16092
+ __pyx_mstate->__pyx_ptype_6a_sync_10primitives_9_loggable__LoggerMixin = __Pyx_ImportType_3_1_3(__pyx_t_1, "a_sync.primitives._loggable", "_LoggerMixin",
16090
16093
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
16091
- sizeof(struct __pyx_obj_6a_sync_10primitives_9_loggable__LoggerMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_2(struct __pyx_obj_6a_sync_10primitives_9_loggable__LoggerMixin),
16094
+ sizeof(struct __pyx_obj_6a_sync_10primitives_9_loggable__LoggerMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_10primitives_9_loggable__LoggerMixin),
16092
16095
  #elif CYTHON_COMPILING_IN_LIMITED_API
16093
- sizeof(struct __pyx_obj_6a_sync_10primitives_9_loggable__LoggerMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_2(struct __pyx_obj_6a_sync_10primitives_9_loggable__LoggerMixin),
16096
+ sizeof(struct __pyx_obj_6a_sync_10primitives_9_loggable__LoggerMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_10primitives_9_loggable__LoggerMixin),
16094
16097
  #else
16095
- sizeof(struct __pyx_obj_6a_sync_10primitives_9_loggable__LoggerMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_2(struct __pyx_obj_6a_sync_10primitives_9_loggable__LoggerMixin),
16098
+ sizeof(struct __pyx_obj_6a_sync_10primitives_9_loggable__LoggerMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_10primitives_9_loggable__LoggerMixin),
16096
16099
  #endif
16097
- __Pyx_ImportType_CheckSize_Warn_3_1_2); if (!__pyx_mstate->__pyx_ptype_6a_sync_10primitives_9_loggable__LoggerMixin) __PYX_ERR(2, 1, __pyx_L1_error)
16100
+ __Pyx_ImportType_CheckSize_Warn_3_1_3); if (!__pyx_mstate->__pyx_ptype_6a_sync_10primitives_9_loggable__LoggerMixin) __PYX_ERR(2, 1, __pyx_L1_error)
16098
16101
  __pyx_vtabptr_6a_sync_10primitives_9_loggable__LoggerMixin = (struct __pyx_vtabstruct_6a_sync_10primitives_9_loggable__LoggerMixin*)__Pyx_GetVtable(__pyx_mstate->__pyx_ptype_6a_sync_10primitives_9_loggable__LoggerMixin); if (unlikely(!__pyx_vtabptr_6a_sync_10primitives_9_loggable__LoggerMixin)) __PYX_ERR(2, 1, __pyx_L1_error)
16099
16102
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16100
16103
  __pyx_t_1 = PyImport_ImportModule("a_sync.primitives._debug"); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3, __pyx_L1_error)
16101
16104
  __Pyx_GOTREF(__pyx_t_1);
16102
- __pyx_mstate->__pyx_ptype_6a_sync_10primitives_6_debug__LoopBoundMixin = __Pyx_ImportType_3_1_2(__pyx_t_1, "a_sync.primitives._debug", "_LoopBoundMixin",
16105
+ __pyx_mstate->__pyx_ptype_6a_sync_10primitives_6_debug__LoopBoundMixin = __Pyx_ImportType_3_1_3(__pyx_t_1, "a_sync.primitives._debug", "_LoopBoundMixin",
16103
16106
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
16104
- sizeof(struct __pyx_obj_6a_sync_10primitives_6_debug__LoopBoundMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_2(struct __pyx_obj_6a_sync_10primitives_6_debug__LoopBoundMixin),
16107
+ sizeof(struct __pyx_obj_6a_sync_10primitives_6_debug__LoopBoundMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_10primitives_6_debug__LoopBoundMixin),
16105
16108
  #elif CYTHON_COMPILING_IN_LIMITED_API
16106
- sizeof(struct __pyx_obj_6a_sync_10primitives_6_debug__LoopBoundMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_2(struct __pyx_obj_6a_sync_10primitives_6_debug__LoopBoundMixin),
16109
+ sizeof(struct __pyx_obj_6a_sync_10primitives_6_debug__LoopBoundMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_10primitives_6_debug__LoopBoundMixin),
16107
16110
  #else
16108
- sizeof(struct __pyx_obj_6a_sync_10primitives_6_debug__LoopBoundMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_2(struct __pyx_obj_6a_sync_10primitives_6_debug__LoopBoundMixin),
16111
+ sizeof(struct __pyx_obj_6a_sync_10primitives_6_debug__LoopBoundMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_10primitives_6_debug__LoopBoundMixin),
16109
16112
  #endif
16110
- __Pyx_ImportType_CheckSize_Warn_3_1_2); if (!__pyx_mstate->__pyx_ptype_6a_sync_10primitives_6_debug__LoopBoundMixin) __PYX_ERR(3, 3, __pyx_L1_error)
16113
+ __Pyx_ImportType_CheckSize_Warn_3_1_3); if (!__pyx_mstate->__pyx_ptype_6a_sync_10primitives_6_debug__LoopBoundMixin) __PYX_ERR(3, 3, __pyx_L1_error)
16111
16114
  __pyx_vtabptr_6a_sync_10primitives_6_debug__LoopBoundMixin = (struct __pyx_vtabstruct_6a_sync_10primitives_6_debug__LoopBoundMixin*)__Pyx_GetVtable(__pyx_mstate->__pyx_ptype_6a_sync_10primitives_6_debug__LoopBoundMixin); if (unlikely(!__pyx_vtabptr_6a_sync_10primitives_6_debug__LoopBoundMixin)) __PYX_ERR(3, 3, __pyx_L1_error)
16112
16115
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16113
16116
  __pyx_t_1 = PyImport_ImportModule("a_sync.functools"); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 1, __pyx_L1_error)
16114
16117
  __Pyx_GOTREF(__pyx_t_1);
16115
- __pyx_mstate->__pyx_ptype_6a_sync_9functools_cached_property_unsafe = __Pyx_ImportType_3_1_2(__pyx_t_1, "a_sync.functools", "cached_property_unsafe",
16118
+ __pyx_mstate->__pyx_ptype_6a_sync_9functools_cached_property_unsafe = __Pyx_ImportType_3_1_3(__pyx_t_1, "a_sync.functools", "cached_property_unsafe",
16116
16119
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
16117
- sizeof(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe), __PYX_GET_STRUCT_ALIGNMENT_3_1_2(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe),
16120
+ 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),
16118
16121
  #elif CYTHON_COMPILING_IN_LIMITED_API
16119
- sizeof(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe), __PYX_GET_STRUCT_ALIGNMENT_3_1_2(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe),
16122
+ 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),
16120
16123
  #else
16121
- sizeof(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe), __PYX_GET_STRUCT_ALIGNMENT_3_1_2(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe),
16124
+ 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),
16122
16125
  #endif
16123
- __Pyx_ImportType_CheckSize_Warn_3_1_2); if (!__pyx_mstate->__pyx_ptype_6a_sync_9functools_cached_property_unsafe) __PYX_ERR(4, 1, __pyx_L1_error)
16126
+ __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)
16124
16127
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16125
16128
  __Pyx_RefNannyFinishContext();
16126
16129
  return 0;
@@ -16150,7 +16153,7 @@ static int __Pyx_modinit_function_import_code(__pyx_mstatetype *__pyx_mstate) {
16150
16153
  /*--- Function import code ---*/
16151
16154
  __pyx_t_1 = PyImport_ImportModule("a_sync.functools"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
16152
16155
  __Pyx_GOTREF(__pyx_t_1);
16153
- if (__Pyx_ImportFunction_3_1_2(__pyx_t_1, "wraps", (void (**)(void))&__pyx_f_6a_sync_9functools_wraps, "PyObject *(PyObject *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
16156
+ if (__Pyx_ImportFunction_3_1_3(__pyx_t_1, "wraps", (void (**)(void))&__pyx_f_6a_sync_9functools_wraps, "PyObject *(PyObject *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
16154
16157
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
16155
16158
  __Pyx_RefNannyFinishContext();
16156
16159
  return 0;
@@ -16443,7 +16446,7 @@ __Pyx_RefNannySetupContext("PyInit_semaphore", 0);
16443
16446
  (void)__Pyx_modinit_variable_import_code(__pyx_mstate);
16444
16447
  if (unlikely((__Pyx_modinit_function_import_code(__pyx_mstate) < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
16445
16448
  /*--- Execution code ---*/
16446
- __Pyx_TraceStartFunc("PyInit_semaphore", __pyx_f[0], 1, 1, 0, 0, __PYX_ERR(0, 1, __pyx_L1_error));
16449
+ __Pyx_TraceStartFunc("PyInit_semaphore", __pyx_f[0], 1, 0, 0, 0, __PYX_ERR(0, 1, __pyx_L1_error));
16447
16450
 
16448
16451
  /* "a_sync/primitives/locks/semaphore.pyx":6
16449
16452
  * """
@@ -16890,7 +16893,7 @@ __Pyx_RefNannySetupContext("PyInit_semaphore", 0);
16890
16893
  * raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
16891
16894
  * def __setstate_cython__(self, __pyx_state):
16892
16895
  */
16893
- __Pyx_TraceLine(1,0,0,__PYX_ERR(1, 1, __pyx_L1_error))
16896
+ __Pyx_TraceLine(1,1,0,__PYX_ERR(1, 1, __pyx_L1_error))
16894
16897
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_10primitives_5locks_9semaphore_9Semaphore_35__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Semaphore___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_a_sync_primitives_locks_semaphor, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[23])); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 1, __pyx_L1_error)
16895
16898
  __Pyx_GOTREF(__pyx_t_2);
16896
16899
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_2) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
@@ -16902,7 +16905,7 @@ __Pyx_RefNannySetupContext("PyInit_semaphore", 0);
16902
16905
  * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<<
16903
16906
  * raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
16904
16907
  */
16905
- __Pyx_TraceLine(3,4,0,__PYX_ERR(1, 3, __pyx_L1_error))
16908
+ __Pyx_TraceLine(3,5,0,__PYX_ERR(1, 3, __pyx_L1_error))
16906
16909
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_10primitives_5locks_9semaphore_9Semaphore_37__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_Semaphore___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_a_sync_primitives_locks_semaphor, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[24])); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 3, __pyx_L1_error)
16907
16910
  __Pyx_GOTREF(__pyx_t_2);
16908
16911
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_2) < 0) __PYX_ERR(1, 3, __pyx_L1_error)
@@ -16991,7 +16994,7 @@ __Pyx_RefNannySetupContext("PyInit_semaphore", 0);
16991
16994
  * raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
16992
16995
  * def __setstate_cython__(self, __pyx_state):
16993
16996
  */
16994
- __Pyx_TraceLine(1,2,0,__PYX_ERR(1, 1, __pyx_L1_error))
16997
+ __Pyx_TraceLine(1,3,0,__PYX_ERR(1, 1, __pyx_L1_error))
16995
16998
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_10primitives_5locks_9semaphore_14DummySemaphore_18__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_DummySemaphore___reduce_cython, NULL, __pyx_mstate_global->__pyx_n_u_a_sync_primitives_locks_semaphor, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[34])); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1, __pyx_L1_error)
16996
16999
  __Pyx_GOTREF(__pyx_t_3);
16997
17000
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
@@ -17003,7 +17006,7 @@ __Pyx_RefNannySetupContext("PyInit_semaphore", 0);
17003
17006
  * def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<<
17004
17007
  * raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
17005
17008
  */
17006
- __Pyx_TraceLine(3,5,0,__PYX_ERR(1, 3, __pyx_L1_error))
17009
+ __Pyx_TraceLine(3,4,0,__PYX_ERR(1, 3, __pyx_L1_error))
17007
17010
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_10primitives_5locks_9semaphore_14DummySemaphore_20__setstate_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_DummySemaphore___setstate_cython, NULL, __pyx_mstate_global->__pyx_n_u_a_sync_primitives_locks_semaphor, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[35])); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 3, __pyx_L1_error)
17008
17011
  __Pyx_GOTREF(__pyx_t_3);
17009
17012
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_setstate_cython, __pyx_t_3) < 0) __PYX_ERR(1, 3, __pyx_L1_error)
@@ -17049,7 +17052,7 @@ __Pyx_RefNannySetupContext("PyInit_semaphore", 0);
17049
17052
  * raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
17050
17053
  * def __setstate_cython__(self, __pyx_state):
17051
17054
  */
17052
- __Pyx_TraceLine(1,3,0,__PYX_ERR(1, 1, __pyx_L1_error))
17055
+ __Pyx_TraceLine(1,2,0,__PYX_ERR(1, 1, __pyx_L1_error))
17053
17056
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_10primitives_5locks_9semaphore_19ThreadsafeSemaphore_11__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_ThreadsafeSemaphore___reduce_cyt, NULL, __pyx_mstate_global->__pyx_n_u_a_sync_primitives_locks_semaphor, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[43])); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 1, __pyx_L1_error)
17054
17057
  __Pyx_GOTREF(__pyx_t_3);
17055
17058
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(1, 1, __pyx_L1_error)
@@ -17072,12 +17075,12 @@ __Pyx_RefNannySetupContext("PyInit_semaphore", 0);
17072
17075
  * This module provides various semaphore implementations, including a debug-enabled semaphore,
17073
17076
  * a dummy semaphore that does nothing, and a threadsafe semaphore for use in multi-threaded applications.
17074
17077
  */
17075
- __Pyx_TraceLine(1,1,0,__PYX_ERR(0, 1, __pyx_L1_error))
17078
+ __Pyx_TraceLine(1,0,0,__PYX_ERR(0, 1, __pyx_L1_error))
17076
17079
  __pyx_t_3 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1, __pyx_L1_error)
17077
17080
  __Pyx_GOTREF(__pyx_t_3);
17078
17081
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_test, __pyx_t_3) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
17079
17082
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
17080
- __Pyx_TraceReturnValue(Py_None, 1, 0, __PYX_ERR(0, 1, __pyx_L1_error));
17083
+ __Pyx_TraceReturnValue(Py_None, 0, 0, __PYX_ERR(0, 1, __pyx_L1_error));
17081
17084
  __Pyx_PyMonitoring_ExitScope(0);
17082
17085
 
17083
17086
  /*--- Wrapped vars code ---*/
@@ -17087,7 +17090,7 @@ __Pyx_RefNannySetupContext("PyInit_semaphore", 0);
17087
17090
  __Pyx_XDECREF(__pyx_t_2);
17088
17091
  __Pyx_XDECREF(__pyx_t_3);
17089
17092
  __Pyx_TraceException(__pyx_lineno, 0, 0);
17090
- __Pyx_TraceExceptionUnwind(1, 0);
17093
+ __Pyx_TraceExceptionUnwind(0, 0);
17091
17094
  if (__pyx_m) {
17092
17095
  if (__pyx_mstate->__pyx_d && stringtab_initialized) {
17093
17096
  __Pyx_AddTraceback("init a_sync.primitives.locks.semaphore", __pyx_clineno, __pyx_lineno, __pyx_filename);
@@ -20233,6 +20236,7 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
20233
20236
  changed = 1;
20234
20237
  }
20235
20238
  #endif // CYTHON_METH_FASTCALL
20239
+ #if !CYTHON_COMPILING_IN_PYPY
20236
20240
  else if (strcmp(memb->name, "__module__") == 0) {
20237
20241
  PyObject *descr;
20238
20242
  assert(memb->type == T_OBJECT);
@@ -20247,11 +20251,13 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
20247
20251
  }
20248
20252
  changed = 1;
20249
20253
  }
20254
+ #endif // !CYTHON_COMPILING_IN_PYPY
20250
20255
  }
20251
20256
  memb++;
20252
20257
  }
20253
20258
  }
20254
20259
  #endif // !CYTHON_COMPILING_IN_LIMITED_API
20260
+ #if !CYTHON_COMPILING_IN_PYPY
20255
20261
  slot = spec->slots;
20256
20262
  while (slot && slot->slot && slot->slot != Py_tp_getset)
20257
20263
  slot++;
@@ -20283,6 +20289,7 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
20283
20289
  ++getset;
20284
20290
  }
20285
20291
  }
20292
+ #endif // !CYTHON_COMPILING_IN_PYPY
20286
20293
  if (changed)
20287
20294
  PyType_Modified(type);
20288
20295
  #endif // PY_VERSION_HEX > 0x030900B1
@@ -20415,7 +20422,7 @@ bad:
20415
20422
  }
20416
20423
 
20417
20424
  /* CommonTypesMetaclass */
20418
- PyObject* __pyx_CommonTypesMetaclass_get_module(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED void* context) {
20425
+ static PyObject* __pyx_CommonTypesMetaclass_get_module(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED void* context) {
20419
20426
  return PyUnicode_FromString(__PYX_ABI_MODULE_NAME);
20420
20427
  }
20421
20428
  static PyGetSetDef __pyx_CommonTypesMetaclass_getset[] = {
@@ -20572,7 +20579,7 @@ try_unpack:
20572
20579
  }
20573
20580
 
20574
20581
  /* PyObjectCallMethod1 */
20575
- #if !(CYTHON_VECTORCALL && __PYX_LIMITED_VERSION_HEX >= 0x030C0000)
20582
+ #if !(CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000)))
20576
20583
  static PyObject* __Pyx__PyObject_CallMethod1(PyObject* method, PyObject* arg) {
20577
20584
  PyObject *result = __Pyx_PyObject_CallOneArg(method, arg);
20578
20585
  Py_DECREF(method);
@@ -20580,7 +20587,7 @@ static PyObject* __Pyx__PyObject_CallMethod1(PyObject* method, PyObject* arg) {
20580
20587
  }
20581
20588
  #endif
20582
20589
  static PyObject* __Pyx_PyObject_CallMethod1(PyObject* obj, PyObject* method_name, PyObject* arg) {
20583
- #if CYTHON_VECTORCALL && __PYX_LIMITED_VERSION_HEX >= 0x030C0000
20590
+ #if CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000))
20584
20591
  PyObject *args[2] = {obj, arg};
20585
20592
  (void) __Pyx_PyObject_GetMethod;
20586
20593
  (void) __Pyx_PyObject_CallOneArg;
@@ -23590,10 +23597,10 @@ static PyObject *__Pyx_PyObject_GetItem(PyObject *obj, PyObject *key) {
23590
23597
  }
23591
23598
 
23592
23599
  /* TypeImport */
23593
- #ifndef __PYX_HAVE_RT_ImportType_3_1_2
23594
- #define __PYX_HAVE_RT_ImportType_3_1_2
23595
- static PyTypeObject *__Pyx_ImportType_3_1_2(PyObject *module, const char *module_name, const char *class_name,
23596
- size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_1_2 check_size)
23600
+ #ifndef __PYX_HAVE_RT_ImportType_3_1_3
23601
+ #define __PYX_HAVE_RT_ImportType_3_1_3
23602
+ static PyTypeObject *__Pyx_ImportType_3_1_3(PyObject *module, const char *module_name, const char *class_name,
23603
+ size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_1_3 check_size)
23597
23604
  {
23598
23605
  PyObject *result = 0;
23599
23606
  Py_ssize_t basicsize;
@@ -23649,7 +23656,7 @@ static PyTypeObject *__Pyx_ImportType_3_1_2(PyObject *module, const char *module
23649
23656
  module_name, class_name, size, basicsize+itemsize);
23650
23657
  goto bad;
23651
23658
  }
23652
- if (check_size == __Pyx_ImportType_CheckSize_Error_3_1_2 &&
23659
+ if (check_size == __Pyx_ImportType_CheckSize_Error_3_1_3 &&
23653
23660
  ((size_t)basicsize > size || (size_t)(basicsize + itemsize) < size)) {
23654
23661
  PyErr_Format(PyExc_ValueError,
23655
23662
  "%.200s.%.200s size changed, may indicate binary incompatibility. "
@@ -23657,7 +23664,7 @@ static PyTypeObject *__Pyx_ImportType_3_1_2(PyObject *module, const char *module
23657
23664
  module_name, class_name, size, basicsize, basicsize+itemsize);
23658
23665
  goto bad;
23659
23666
  }
23660
- else if (check_size == __Pyx_ImportType_CheckSize_Warn_3_1_2 && (size_t)basicsize > size) {
23667
+ else if (check_size == __Pyx_ImportType_CheckSize_Warn_3_1_3 && (size_t)basicsize > size) {
23661
23668
  if (PyErr_WarnFormat(NULL, 0,
23662
23669
  "%.200s.%.200s size changed, may indicate binary incompatibility. "
23663
23670
  "Expected %zd from C header, got %zd from PyObject",
@@ -23694,6 +23701,13 @@ bad:
23694
23701
 
23695
23702
  /* PyObjectCallMethod0 */
23696
23703
  static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name) {
23704
+ #if CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000))
23705
+ PyObject *args[1] = {obj};
23706
+ (void) __Pyx_PyObject_GetMethod;
23707
+ (void) __Pyx_PyObject_CallOneArg;
23708
+ (void) __Pyx_PyObject_CallNoArg;
23709
+ return PyObject_VectorcallMethod(method_name, args, 1 | PY_VECTORCALL_ARGUMENTS_OFFSET, NULL);
23710
+ #else
23697
23711
  PyObject *method = NULL, *result = NULL;
23698
23712
  int is_method = __Pyx_PyObject_GetMethod(obj, method_name, &method);
23699
23713
  if (likely(is_method)) {
@@ -23706,6 +23720,7 @@ bad:
23706
23720
  Py_DECREF(method);
23707
23721
  bad:
23708
23722
  return result;
23723
+ #endif
23709
23724
  }
23710
23725
 
23711
23726
  /* ValidateBasesTuple */
@@ -25735,9 +25750,9 @@ static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObj
25735
25750
  }
25736
25751
 
25737
25752
  /* FunctionImport */
25738
- #ifndef __PYX_HAVE_RT_ImportFunction_3_1_2
25739
- #define __PYX_HAVE_RT_ImportFunction_3_1_2
25740
- static int __Pyx_ImportFunction_3_1_2(PyObject *module, const char *funcname, void (**f)(void), const char *sig) {
25753
+ #ifndef __PYX_HAVE_RT_ImportFunction_3_1_3
25754
+ #define __PYX_HAVE_RT_ImportFunction_3_1_3
25755
+ static int __Pyx_ImportFunction_3_1_3(PyObject *module, const char *funcname, void (**f)(void), const char *sig) {
25741
25756
  PyObject *d = 0;
25742
25757
  PyObject *cobj = 0;
25743
25758
  union {
a_sync/utils/repr.c CHANGED
@@ -1,4 +1,4 @@
1
- /* Generated by Cython 3.1.2 */
1
+ /* Generated by Cython 3.1.3 */
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 "3_1_2"
34
- #define CYTHON_HEX_VERSION 0x030102F0
33
+ #define __PYX_ABI_VERSION "3_1_3"
34
+ #define CYTHON_HEX_VERSION 0x030103F0
35
35
  #define CYTHON_FUTURE_DIVISION 1
36
36
  /* CModulePreamble */
37
37
  #include <stddef.h>
@@ -394,6 +394,9 @@ END: Cython Metadata */
394
394
  enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P == sizeof(void*)) };
395
395
  #endif
396
396
  #endif
397
+ #ifndef CYTHON_LOCK_AND_GIL_DEADLOCK_AVOIDANCE_TIME
398
+ #define CYTHON_LOCK_AND_GIL_DEADLOCK_AVOIDANCE_TIME 100
399
+ #endif
397
400
  #ifndef __has_attribute
398
401
  #define __has_attribute(x) 0
399
402
  #endif
@@ -2632,22 +2635,22 @@ static int __Pyx_validate_bases_tuple(const char *type_name, Py_ssize_t dictoffs
2632
2635
  CYTHON_UNUSED static int __Pyx_PyType_Ready(PyTypeObject *t);
2633
2636
 
2634
2637
  /* TypeImport.proto */
2635
- #ifndef __PYX_HAVE_RT_ImportType_proto_3_1_2
2636
- #define __PYX_HAVE_RT_ImportType_proto_3_1_2
2638
+ #ifndef __PYX_HAVE_RT_ImportType_proto_3_1_3
2639
+ #define __PYX_HAVE_RT_ImportType_proto_3_1_3
2637
2640
  #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
2638
2641
  #include <stdalign.h>
2639
2642
  #endif
2640
2643
  #if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) || __cplusplus >= 201103L
2641
- #define __PYX_GET_STRUCT_ALIGNMENT_3_1_2(s) alignof(s)
2644
+ #define __PYX_GET_STRUCT_ALIGNMENT_3_1_3(s) alignof(s)
2642
2645
  #else
2643
- #define __PYX_GET_STRUCT_ALIGNMENT_3_1_2(s) sizeof(void*)
2646
+ #define __PYX_GET_STRUCT_ALIGNMENT_3_1_3(s) sizeof(void*)
2644
2647
  #endif
2645
- enum __Pyx_ImportType_CheckSize_3_1_2 {
2646
- __Pyx_ImportType_CheckSize_Error_3_1_2 = 0,
2647
- __Pyx_ImportType_CheckSize_Warn_3_1_2 = 1,
2648
- __Pyx_ImportType_CheckSize_Ignore_3_1_2 = 2
2648
+ enum __Pyx_ImportType_CheckSize_3_1_3 {
2649
+ __Pyx_ImportType_CheckSize_Error_3_1_3 = 0,
2650
+ __Pyx_ImportType_CheckSize_Warn_3_1_3 = 1,
2651
+ __Pyx_ImportType_CheckSize_Ignore_3_1_3 = 2
2649
2652
  };
2650
- static PyTypeObject *__Pyx_ImportType_3_1_2(PyObject* module, const char *module_name, const char *class_name, size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_1_2 check_size);
2653
+ 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);
2651
2654
  #endif
2652
2655
 
2653
2656
  /* ListPack.proto */
@@ -3191,7 +3194,7 @@ static const char __pyx_k_DictItems_ptr[] = "DictItems_ptr";
3191
3194
  static const char __pyx_k_class_getitem[] = "__class_getitem__";
3192
3195
  static const char __pyx_k_DictValues_ptr[] = "DictValues_ptr";
3193
3196
  static const char __pyx_k_q_S_r_d_Q_r_d_Q[] = "\200\001\330\004\007\320\007\027\220q\230\005\230S\240\001\330\010\017\210r\220\025\220d\230%\230~\250Q\340\010\017\210r\220\025\220d\230%\230~\250Q";
3194
- static const char __pyx_k_auCq_r_d_Q_r_d_Q[] = "\200\001\330\004\007\200\220a\220u\230C\230q\330\010\017\210r\220\025\220d\230%\230~\250Q\340\010\017\210r\220\025\220d\230%\230~\250Q";
3197
+ static const char __pyx_k_auCq_r_d_Q_r_d_Q[] = "\200\001\330\004\007\200\177\220a\220u\230C\230q\330\010\017\210r\220\025\220d\230%\230~\250Q\340\010\017\210r\220\025\220d\230%\230~\250Q";
3195
3198
  static const char __pyx_k_a_sync_utils_repr[] = "a_sync.utils.repr";
3196
3199
  static const char __pyx_k_q_s_S_t5_a_r_T_nA[] = "\320\000/\250q\330\004\007\200s\210!\210:\220S\230\001\330\010\017\210t\2205\230\016\240a\340\010\017\210r\220\024\220T\230\025\230n\250A";
3197
3200
  static const char __pyx_k_asyncio_coroutines[] = "asyncio.coroutines";
@@ -7578,15 +7581,15 @@ static int __Pyx_modinit_type_import_code(__pyx_mstatetype *__pyx_mstate) {
7578
7581
  /*--- Type import code ---*/
7579
7582
  __pyx_t_1 = PyImport_ImportModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 9, __pyx_L1_error)
7580
7583
  __Pyx_GOTREF(__pyx_t_1);
7581
- __pyx_mstate->__pyx_ptype_7cpython_4type_type = __Pyx_ImportType_3_1_2(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME, "type",
7584
+ __pyx_mstate->__pyx_ptype_7cpython_4type_type = __Pyx_ImportType_3_1_3(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME, "type",
7582
7585
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
7583
- sizeof(PyTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_1_2(PyTypeObject),
7586
+ sizeof(PyTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(PyTypeObject),
7584
7587
  #elif CYTHON_COMPILING_IN_LIMITED_API
7585
7588
  0, 0,
7586
7589
  #else
7587
- sizeof(PyHeapTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_1_2(PyHeapTypeObject),
7590
+ sizeof(PyHeapTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(PyHeapTypeObject),
7588
7591
  #endif
7589
- __Pyx_ImportType_CheckSize_Warn_3_1_2); if (!__pyx_mstate->__pyx_ptype_7cpython_4type_type) __PYX_ERR(1, 9, __pyx_L1_error)
7592
+ __Pyx_ImportType_CheckSize_Warn_3_1_3); if (!__pyx_mstate->__pyx_ptype_7cpython_4type_type) __PYX_ERR(1, 9, __pyx_L1_error)
7590
7593
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7591
7594
  __Pyx_RefNannyFinishContext();
7592
7595
  return 0;
@@ -10462,6 +10465,7 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
10462
10465
  changed = 1;
10463
10466
  }
10464
10467
  #endif // CYTHON_METH_FASTCALL
10468
+ #if !CYTHON_COMPILING_IN_PYPY
10465
10469
  else if (strcmp(memb->name, "__module__") == 0) {
10466
10470
  PyObject *descr;
10467
10471
  assert(memb->type == T_OBJECT);
@@ -10476,11 +10480,13 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
10476
10480
  }
10477
10481
  changed = 1;
10478
10482
  }
10483
+ #endif // !CYTHON_COMPILING_IN_PYPY
10479
10484
  }
10480
10485
  memb++;
10481
10486
  }
10482
10487
  }
10483
10488
  #endif // !CYTHON_COMPILING_IN_LIMITED_API
10489
+ #if !CYTHON_COMPILING_IN_PYPY
10484
10490
  slot = spec->slots;
10485
10491
  while (slot && slot->slot && slot->slot != Py_tp_getset)
10486
10492
  slot++;
@@ -10512,6 +10518,7 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
10512
10518
  ++getset;
10513
10519
  }
10514
10520
  }
10521
+ #endif // !CYTHON_COMPILING_IN_PYPY
10515
10522
  if (changed)
10516
10523
  PyType_Modified(type);
10517
10524
  #endif // PY_VERSION_HEX > 0x030900B1
@@ -10616,6 +10623,13 @@ try_unpack:
10616
10623
 
10617
10624
  /* PyObjectCallMethod0 */
10618
10625
  static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name) {
10626
+ #if CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000))
10627
+ PyObject *args[1] = {obj};
10628
+ (void) __Pyx_PyObject_GetMethod;
10629
+ (void) __Pyx_PyObject_CallOneArg;
10630
+ (void) __Pyx_PyObject_CallNoArg;
10631
+ return PyObject_VectorcallMethod(method_name, args, 1 | PY_VECTORCALL_ARGUMENTS_OFFSET, NULL);
10632
+ #else
10619
10633
  PyObject *method = NULL, *result = NULL;
10620
10634
  int is_method = __Pyx_PyObject_GetMethod(obj, method_name, &method);
10621
10635
  if (likely(is_method)) {
@@ -10628,6 +10642,7 @@ static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name
10628
10642
  Py_DECREF(method);
10629
10643
  bad:
10630
10644
  return result;
10645
+ #endif
10631
10646
  }
10632
10647
 
10633
10648
  /* ValidateBasesTuple */
@@ -10801,10 +10816,10 @@ static int __Pyx_PyType_Ready(PyTypeObject *t) {
10801
10816
  }
10802
10817
 
10803
10818
  /* TypeImport */
10804
- #ifndef __PYX_HAVE_RT_ImportType_3_1_2
10805
- #define __PYX_HAVE_RT_ImportType_3_1_2
10806
- static PyTypeObject *__Pyx_ImportType_3_1_2(PyObject *module, const char *module_name, const char *class_name,
10807
- size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_1_2 check_size)
10819
+ #ifndef __PYX_HAVE_RT_ImportType_3_1_3
10820
+ #define __PYX_HAVE_RT_ImportType_3_1_3
10821
+ static PyTypeObject *__Pyx_ImportType_3_1_3(PyObject *module, const char *module_name, const char *class_name,
10822
+ size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_1_3 check_size)
10808
10823
  {
10809
10824
  PyObject *result = 0;
10810
10825
  Py_ssize_t basicsize;
@@ -10860,7 +10875,7 @@ static PyTypeObject *__Pyx_ImportType_3_1_2(PyObject *module, const char *module
10860
10875
  module_name, class_name, size, basicsize+itemsize);
10861
10876
  goto bad;
10862
10877
  }
10863
- if (check_size == __Pyx_ImportType_CheckSize_Error_3_1_2 &&
10878
+ if (check_size == __Pyx_ImportType_CheckSize_Error_3_1_3 &&
10864
10879
  ((size_t)basicsize > size || (size_t)(basicsize + itemsize) < size)) {
10865
10880
  PyErr_Format(PyExc_ValueError,
10866
10881
  "%.200s.%.200s size changed, may indicate binary incompatibility. "
@@ -10868,7 +10883,7 @@ static PyTypeObject *__Pyx_ImportType_3_1_2(PyObject *module, const char *module
10868
10883
  module_name, class_name, size, basicsize, basicsize+itemsize);
10869
10884
  goto bad;
10870
10885
  }
10871
- else if (check_size == __Pyx_ImportType_CheckSize_Warn_3_1_2 && (size_t)basicsize > size) {
10886
+ else if (check_size == __Pyx_ImportType_CheckSize_Warn_3_1_3 && (size_t)basicsize > size) {
10872
10887
  if (PyErr_WarnFormat(NULL, 0,
10873
10888
  "%.200s.%.200s size changed, may indicate binary incompatibility. "
10874
10889
  "Expected %zd from C header, got %zd from PyObject",
@@ -11108,7 +11123,7 @@ bad:
11108
11123
  }
11109
11124
 
11110
11125
  /* CommonTypesMetaclass */
11111
- PyObject* __pyx_CommonTypesMetaclass_get_module(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED void* context) {
11126
+ static PyObject* __pyx_CommonTypesMetaclass_get_module(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED void* context) {
11112
11127
  return PyUnicode_FromString(__PYX_ABI_MODULE_NAME);
11113
11128
  }
11114
11129
  static PyGetSetDef __pyx_CommonTypesMetaclass_getset[] = {
@@ -13618,7 +13633,7 @@ static CYTHON_INLINE PyObject* __Pyx_PyObject_Call2Args(PyObject* function, PyOb
13618
13633
  }
13619
13634
 
13620
13635
  /* PyObjectCallMethod1 */
13621
- #if !(CYTHON_VECTORCALL && __PYX_LIMITED_VERSION_HEX >= 0x030C0000)
13636
+ #if !(CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000)))
13622
13637
  static PyObject* __Pyx__PyObject_CallMethod1(PyObject* method, PyObject* arg) {
13623
13638
  PyObject *result = __Pyx_PyObject_CallOneArg(method, arg);
13624
13639
  Py_DECREF(method);
@@ -13626,7 +13641,7 @@ static PyObject* __Pyx__PyObject_CallMethod1(PyObject* method, PyObject* arg) {
13626
13641
  }
13627
13642
  #endif
13628
13643
  static PyObject* __Pyx_PyObject_CallMethod1(PyObject* obj, PyObject* method_name, PyObject* arg) {
13629
- #if CYTHON_VECTORCALL && __PYX_LIMITED_VERSION_HEX >= 0x030C0000
13644
+ #if CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000))
13630
13645
  PyObject *args[2] = {obj, arg};
13631
13646
  (void) __Pyx_PyObject_GetMethod;
13632
13647
  (void) __Pyx_PyObject_CallOneArg;
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ez_a_sync
3
- Version: 0.32.26
3
+ Version: 0.32.27
4
4
  Summary: A library that makes it easy to define objects that can be used for both sync and async use cases.
5
5
  Home-page: https://github.com/BobTheBuidler/a-sync
6
6
  Author: BobTheBuidler