ez-a-sync 0.32.26__cp39-cp39-win_amd64.whl → 0.32.28__cp39-cp39-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.

Files changed (71) hide show
  1. a_sync/_smart.c +63 -43
  2. a_sync/_smart.cp39-win_amd64.pyd +0 -0
  3. a_sync/a_sync/_descriptor.c +83 -63
  4. a_sync/a_sync/_descriptor.cp39-win_amd64.pyd +0 -0
  5. a_sync/a_sync/_flags.c +13 -10
  6. a_sync/a_sync/_flags.cp39-win_amd64.pyd +0 -0
  7. a_sync/a_sync/_helpers.c +76 -56
  8. a_sync/a_sync/_helpers.cp39-win_amd64.pyd +0 -0
  9. a_sync/a_sync/_kwargs.c +45 -25
  10. a_sync/a_sync/_kwargs.cp39-win_amd64.pyd +0 -0
  11. a_sync/a_sync/abstract.c +54 -24
  12. a_sync/a_sync/abstract.cp39-win_amd64.pyd +0 -0
  13. a_sync/a_sync/abstract.pyi +2 -2
  14. a_sync/a_sync/base.c +186 -162
  15. a_sync/a_sync/base.cp39-win_amd64.pyd +0 -0
  16. a_sync/a_sync/flags.c +13 -10
  17. a_sync/a_sync/flags.cp39-win_amd64.pyd +0 -0
  18. a_sync/a_sync/function.c +106 -77
  19. a_sync/a_sync/function.cp39-win_amd64.pyd +0 -0
  20. a_sync/a_sync/method.c +150 -118
  21. a_sync/a_sync/method.cp39-win_amd64.pyd +0 -0
  22. a_sync/a_sync/method.pyi +2 -1
  23. a_sync/a_sync/modifiers/manager.c +60 -40
  24. a_sync/a_sync/modifiers/manager.cp39-win_amd64.pyd +0 -0
  25. a_sync/a_sync/property.c +104 -78
  26. a_sync/a_sync/property.cp39-win_amd64.pyd +0 -0
  27. a_sync/async_property/cached.c +71 -51
  28. a_sync/async_property/cached.cp39-win_amd64.pyd +0 -0
  29. a_sync/async_property/proxy.c +37 -17
  30. a_sync/async_property/proxy.cp39-win_amd64.pyd +0 -0
  31. a_sync/asyncio/as_completed.c +33 -13
  32. a_sync/asyncio/as_completed.cp39-win_amd64.pyd +0 -0
  33. a_sync/asyncio/create_task.c +59 -21
  34. a_sync/asyncio/create_task.cp39-win_amd64.pyd +0 -0
  35. a_sync/asyncio/gather.c +42 -22
  36. a_sync/asyncio/gather.cp39-win_amd64.pyd +0 -0
  37. a_sync/asyncio/igather.c +42 -18
  38. a_sync/asyncio/igather.cp39-win_amd64.pyd +0 -0
  39. a_sync/asyncio/sleep.c +24 -4
  40. a_sync/asyncio/sleep.cp39-win_amd64.pyd +0 -0
  41. a_sync/debugging.c +52 -32
  42. a_sync/debugging.cp39-win_amd64.pyd +0 -0
  43. a_sync/exceptions.c +36 -20
  44. a_sync/exceptions.cp39-win_amd64.pyd +0 -0
  45. a_sync/executor.py +44 -0
  46. a_sync/functools.c +31 -11
  47. a_sync/functools.cp39-win_amd64.pyd +0 -0
  48. a_sync/iter.c +166 -96
  49. a_sync/iter.cp39-win_amd64.pyd +0 -0
  50. a_sync/primitives/_debug.c +61 -41
  51. a_sync/primitives/_debug.cp39-win_amd64.pyd +0 -0
  52. a_sync/primitives/_loggable.c +48 -22
  53. a_sync/primitives/_loggable.cp39-win_amd64.pyd +0 -0
  54. a_sync/primitives/locks/counter.c +93 -63
  55. a_sync/primitives/locks/counter.cp39-win_amd64.pyd +0 -0
  56. a_sync/primitives/locks/event.c +75 -54
  57. a_sync/primitives/locks/event.cp39-win_amd64.pyd +0 -0
  58. a_sync/primitives/locks/prio_semaphore.c +119 -79
  59. a_sync/primitives/locks/prio_semaphore.cp39-win_amd64.pyd +0 -0
  60. a_sync/primitives/locks/prio_semaphore.pyi +2 -2
  61. a_sync/primitives/locks/semaphore.c +91 -64
  62. a_sync/primitives/locks/semaphore.cp39-win_amd64.pyd +0 -0
  63. a_sync/primitives/locks/semaphore.pyi +10 -9
  64. a_sync/primitives/queue.py +5 -1
  65. a_sync/utils/repr.c +55 -35
  66. a_sync/utils/repr.cp39-win_amd64.pyd +0 -0
  67. {ez_a_sync-0.32.26.dist-info → ez_a_sync-0.32.28.dist-info}/METADATA +1 -1
  68. {ez_a_sync-0.32.26.dist-info → ez_a_sync-0.32.28.dist-info}/RECORD +71 -71
  69. {ez_a_sync-0.32.26.dist-info → ez_a_sync-0.32.28.dist-info}/WHEEL +0 -0
  70. {ez_a_sync-0.32.26.dist-info → ez_a_sync-0.32.28.dist-info}/licenses/LICENSE.txt +0 -0
  71. {ez_a_sync-0.32.26.dist-info → ez_a_sync-0.32.28.dist-info}/top_level.txt +0 -0
@@ -1,4 +1,4 @@
1
- /* Generated by Cython 3.1.2 */
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 "3_1_2"
34
- #define CYTHON_HEX_VERSION 0x030102F0
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>
@@ -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
@@ -2072,18 +2075,18 @@ static void __Pyx_RejectKeywords(const char* function_name, PyObject *kwds);
2072
2075
  if (!__Pyx_PyThreadState_Current->tracing) {\
2073
2076
  if (likely(__pyx_frame_code)) Py_INCREF(__pyx_frame_code);\
2074
2077
  else __pyx_frame_code = (PyObject*) __Pyx_createFrameCodeObject(funcname, srcfile, firstlineno);\
2075
- if (unlikely(!__pyx_frame_code)) goto_error;\
2076
- ret = __Pyx__TraceStartFunc(__pyx_pymonitoring_state, __pyx_frame_code, offset, skip_event);\
2077
- }\
2078
+ if (unlikely(!__pyx_frame_code)) ret = -1;\
2079
+ else ret = __Pyx__TraceStartFunc(__pyx_pymonitoring_state, __pyx_frame_code, offset, skip_event);\
2080
+ } else __pyx_frame_code = NULL;\
2078
2081
  PyGILState_Release(state);\
2079
- }\
2082
+ } else __pyx_frame_code = NULL;\
2080
2083
  } else {\
2081
2084
  if (!__Pyx_PyThreadState_Current->tracing) {\
2082
2085
  if (likely(__pyx_frame_code)) Py_INCREF(__pyx_frame_code);\
2083
2086
  else __pyx_frame_code = (PyObject*) __Pyx_createFrameCodeObject(funcname, srcfile, firstlineno);\
2084
- if (unlikely(!__pyx_frame_code)) goto_error;\
2085
- ret = __Pyx__TraceStartFunc(__pyx_pymonitoring_state, __pyx_frame_code, offset, skip_event);\
2086
- }\
2087
+ if (unlikely(!__pyx_frame_code)) ret = -1;\
2088
+ else ret = __Pyx__TraceStartFunc(__pyx_pymonitoring_state, __pyx_frame_code, offset, skip_event);\
2089
+ } else __pyx_frame_code = NULL;\
2087
2090
  }\
2088
2091
  if (unlikely(ret == -1)) goto_error;\
2089
2092
  }
@@ -2873,22 +2876,22 @@ static int __Pyx_call_next_tp_traverse(PyObject* obj, visitproc v, void *a, trav
2873
2876
  static void __Pyx_call_next_tp_clear(PyObject* obj, inquiry current_tp_clear);
2874
2877
 
2875
2878
  /* TypeImport.proto */
2876
- #ifndef __PYX_HAVE_RT_ImportType_proto_3_1_2
2877
- #define __PYX_HAVE_RT_ImportType_proto_3_1_2
2879
+ #ifndef __PYX_HAVE_RT_ImportType_proto_3_1_4
2880
+ #define __PYX_HAVE_RT_ImportType_proto_3_1_4
2878
2881
  #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
2879
2882
  #include <stdalign.h>
2880
2883
  #endif
2881
2884
  #if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) || __cplusplus >= 201103L
2882
- #define __PYX_GET_STRUCT_ALIGNMENT_3_1_2(s) alignof(s)
2885
+ #define __PYX_GET_STRUCT_ALIGNMENT_3_1_4(s) alignof(s)
2883
2886
  #else
2884
- #define __PYX_GET_STRUCT_ALIGNMENT_3_1_2(s) sizeof(void*)
2887
+ #define __PYX_GET_STRUCT_ALIGNMENT_3_1_4(s) sizeof(void*)
2885
2888
  #endif
2886
- enum __Pyx_ImportType_CheckSize_3_1_2 {
2887
- __Pyx_ImportType_CheckSize_Error_3_1_2 = 0,
2888
- __Pyx_ImportType_CheckSize_Warn_3_1_2 = 1,
2889
- __Pyx_ImportType_CheckSize_Ignore_3_1_2 = 2
2889
+ enum __Pyx_ImportType_CheckSize_3_1_4 {
2890
+ __Pyx_ImportType_CheckSize_Error_3_1_4 = 0,
2891
+ __Pyx_ImportType_CheckSize_Warn_3_1_4 = 1,
2892
+ __Pyx_ImportType_CheckSize_Ignore_3_1_4 = 2
2890
2893
  };
2891
- 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);
2894
+ 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);
2892
2895
  #endif
2893
2896
 
2894
2897
  /* GetVTable.proto */
@@ -3189,7 +3192,7 @@ static unsigned long __Pyx_get_runtime_version(void);
3189
3192
  static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt_version, int allow_newer);
3190
3193
 
3191
3194
  /* FunctionImport.proto */
3192
- static int __Pyx_ImportFunction_3_1_2(PyObject *module, const char *funcname, void (**f)(void), const char *sig);
3195
+ static int __Pyx_ImportFunction_3_1_4(PyObject *module, const char *funcname, void (**f)(void), const char *sig);
3193
3196
 
3194
3197
  /* MultiPhaseInitModuleState.proto */
3195
3198
  #if CYTHON_PEP489_MULTI_PHASE_INIT && CYTHON_USE_MODULE_STATE
@@ -4381,8 +4384,12 @@ static PyObject *__pyx_pf_6a_sync_10primitives_5locks_7counter_11CounterLock_6__
4381
4384
  * else:
4382
4385
  */
4383
4386
  __Pyx_TraceLine(89,26,0,__PYX_ERR(0, 89, __pyx_L1_error))
4384
- __pyx_t_8 = (__Pyx_PyUnicode_IS_TRUE(__pyx_v_name) != 0);
4385
- if (unlikely(((!CYTHON_ASSUME_SAFE_MACROS) && __pyx_t_8 < 0))) __PYX_ERR(0, 89, __pyx_L1_error)
4387
+ {
4388
+ Py_ssize_t __pyx_temp = __Pyx_PyUnicode_IS_TRUE(__pyx_v_name);
4389
+ if (unlikely(((!CYTHON_ASSUME_SAFE_SIZE) && __pyx_temp < 0))) __PYX_ERR(0, 89, __pyx_L1_error)
4390
+ __pyx_t_8 = (__pyx_temp != 0);
4391
+ }
4392
+
4386
4393
  if (__pyx_t_8) {
4387
4394
 
4388
4395
  /* "a_sync/primitives/locks/counter.pyx":90
@@ -5327,8 +5334,14 @@ static void __pyx_f_6a_sync_10primitives_5locks_7counter_11CounterLock_set(struc
5327
5334
  */
5328
5335
  __Pyx_TraceLine(152,9,0,__PYX_ERR(0, 152, __pyx_L1_error))
5329
5336
  while (1) {
5330
- __pyx_t_7 = (__pyx_v_self->_heap != Py_None)&&(__Pyx_PyList_GET_SIZE(__pyx_v_self->_heap) != 0);
5331
- if (unlikely(((!CYTHON_ASSUME_SAFE_MACROS) && __pyx_t_7 < 0))) __PYX_ERR(0, 152, __pyx_L1_error)
5337
+ if (__pyx_v_self->_heap == Py_None) __pyx_t_7 = 0;
5338
+ else
5339
+ {
5340
+ Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_v_self->_heap);
5341
+ if (unlikely(((!CYTHON_ASSUME_SAFE_SIZE) && __pyx_temp < 0))) __PYX_ERR(0, 152, __pyx_L1_error)
5342
+ __pyx_t_7 = (__pyx_temp != 0);
5343
+ }
5344
+
5332
5345
  if (!__pyx_t_7) break;
5333
5346
 
5334
5347
  /* "a_sync/primitives/locks/counter.pyx":153
@@ -8008,15 +8021,15 @@ static int __Pyx_modinit_type_init_code(__pyx_mstatetype *__pyx_mstate) {
8008
8021
  /*--- Type init code ---*/
8009
8022
  __pyx_t_1 = PyImport_ImportModule("a_sync.primitives._debug"); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error)
8010
8023
  __Pyx_GOTREF(__pyx_t_1);
8011
- __pyx_mstate->__pyx_ptype_6a_sync_10primitives_6_debug__DebugDaemonMixin = __Pyx_ImportType_3_1_2(__pyx_t_1, "a_sync.primitives._debug", "_DebugDaemonMixin",
8024
+ __pyx_mstate->__pyx_ptype_6a_sync_10primitives_6_debug__DebugDaemonMixin = __Pyx_ImportType_3_1_4(__pyx_t_1, "a_sync.primitives._debug", "_DebugDaemonMixin",
8012
8025
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
8013
- 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),
8026
+ sizeof(struct __pyx_obj_6a_sync_10primitives_6_debug__DebugDaemonMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_10primitives_6_debug__DebugDaemonMixin),
8014
8027
  #elif CYTHON_COMPILING_IN_LIMITED_API
8015
- 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),
8028
+ sizeof(struct __pyx_obj_6a_sync_10primitives_6_debug__DebugDaemonMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_10primitives_6_debug__DebugDaemonMixin),
8016
8029
  #else
8017
- 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),
8030
+ sizeof(struct __pyx_obj_6a_sync_10primitives_6_debug__DebugDaemonMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_10primitives_6_debug__DebugDaemonMixin),
8018
8031
  #endif
8019
- __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)
8032
+ __Pyx_ImportType_CheckSize_Warn_3_1_4); if (!__pyx_mstate->__pyx_ptype_6a_sync_10primitives_6_debug__DebugDaemonMixin) __PYX_ERR(0, 1, __pyx_L1_error)
8020
8033
  __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)
8021
8034
  __pyx_vtabptr_6a_sync_10primitives_5locks_7counter_CounterLock = &__pyx_vtable_6a_sync_10primitives_5locks_7counter_CounterLock;
8022
8035
  __pyx_vtable_6a_sync_10primitives_5locks_7counter_CounterLock.__pyx_base = *__pyx_vtabptr_6a_sync_10primitives_6_debug__DebugDaemonMixin;
@@ -8153,41 +8166,41 @@ static int __Pyx_modinit_type_import_code(__pyx_mstatetype *__pyx_mstate) {
8153
8166
  /*--- Type import code ---*/
8154
8167
  __pyx_t_1 = PyImport_ImportModule("a_sync.primitives._loggable"); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1, __pyx_L1_error)
8155
8168
  __Pyx_GOTREF(__pyx_t_1);
8156
- __pyx_mstate->__pyx_ptype_6a_sync_10primitives_9_loggable__LoggerMixin = __Pyx_ImportType_3_1_2(__pyx_t_1, "a_sync.primitives._loggable", "_LoggerMixin",
8169
+ __pyx_mstate->__pyx_ptype_6a_sync_10primitives_9_loggable__LoggerMixin = __Pyx_ImportType_3_1_4(__pyx_t_1, "a_sync.primitives._loggable", "_LoggerMixin",
8157
8170
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
8158
- 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),
8171
+ sizeof(struct __pyx_obj_6a_sync_10primitives_9_loggable__LoggerMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_10primitives_9_loggable__LoggerMixin),
8159
8172
  #elif CYTHON_COMPILING_IN_LIMITED_API
8160
- 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),
8173
+ sizeof(struct __pyx_obj_6a_sync_10primitives_9_loggable__LoggerMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_10primitives_9_loggable__LoggerMixin),
8161
8174
  #else
8162
- 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),
8175
+ sizeof(struct __pyx_obj_6a_sync_10primitives_9_loggable__LoggerMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_10primitives_9_loggable__LoggerMixin),
8163
8176
  #endif
8164
- __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)
8177
+ __Pyx_ImportType_CheckSize_Warn_3_1_4); if (!__pyx_mstate->__pyx_ptype_6a_sync_10primitives_9_loggable__LoggerMixin) __PYX_ERR(2, 1, __pyx_L1_error)
8165
8178
  __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)
8166
8179
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
8167
8180
  __pyx_t_1 = PyImport_ImportModule("a_sync.primitives._debug"); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3, __pyx_L1_error)
8168
8181
  __Pyx_GOTREF(__pyx_t_1);
8169
- __pyx_mstate->__pyx_ptype_6a_sync_10primitives_6_debug__LoopBoundMixin = __Pyx_ImportType_3_1_2(__pyx_t_1, "a_sync.primitives._debug", "_LoopBoundMixin",
8182
+ __pyx_mstate->__pyx_ptype_6a_sync_10primitives_6_debug__LoopBoundMixin = __Pyx_ImportType_3_1_4(__pyx_t_1, "a_sync.primitives._debug", "_LoopBoundMixin",
8170
8183
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
8171
- 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),
8184
+ sizeof(struct __pyx_obj_6a_sync_10primitives_6_debug__LoopBoundMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_10primitives_6_debug__LoopBoundMixin),
8172
8185
  #elif CYTHON_COMPILING_IN_LIMITED_API
8173
- 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),
8186
+ sizeof(struct __pyx_obj_6a_sync_10primitives_6_debug__LoopBoundMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_10primitives_6_debug__LoopBoundMixin),
8174
8187
  #else
8175
- 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),
8188
+ sizeof(struct __pyx_obj_6a_sync_10primitives_6_debug__LoopBoundMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_10primitives_6_debug__LoopBoundMixin),
8176
8189
  #endif
8177
- __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)
8190
+ __Pyx_ImportType_CheckSize_Warn_3_1_4); if (!__pyx_mstate->__pyx_ptype_6a_sync_10primitives_6_debug__LoopBoundMixin) __PYX_ERR(3, 3, __pyx_L1_error)
8178
8191
  __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)
8179
8192
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
8180
8193
  __pyx_t_1 = PyImport_ImportModule("a_sync.primitives.locks.event"); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 5, __pyx_L1_error)
8181
8194
  __Pyx_GOTREF(__pyx_t_1);
8182
- __pyx_mstate->__pyx_ptype_6a_sync_10primitives_5locks_5event_CythonEvent = __Pyx_ImportType_3_1_2(__pyx_t_1, "a_sync.primitives.locks.event", "CythonEvent",
8195
+ __pyx_mstate->__pyx_ptype_6a_sync_10primitives_5locks_5event_CythonEvent = __Pyx_ImportType_3_1_4(__pyx_t_1, "a_sync.primitives.locks.event", "CythonEvent",
8183
8196
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
8184
- sizeof(struct __pyx_obj_6a_sync_10primitives_5locks_5event_CythonEvent), __PYX_GET_STRUCT_ALIGNMENT_3_1_2(struct __pyx_obj_6a_sync_10primitives_5locks_5event_CythonEvent),
8197
+ sizeof(struct __pyx_obj_6a_sync_10primitives_5locks_5event_CythonEvent), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_10primitives_5locks_5event_CythonEvent),
8185
8198
  #elif CYTHON_COMPILING_IN_LIMITED_API
8186
- sizeof(struct __pyx_obj_6a_sync_10primitives_5locks_5event_CythonEvent), __PYX_GET_STRUCT_ALIGNMENT_3_1_2(struct __pyx_obj_6a_sync_10primitives_5locks_5event_CythonEvent),
8199
+ sizeof(struct __pyx_obj_6a_sync_10primitives_5locks_5event_CythonEvent), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_10primitives_5locks_5event_CythonEvent),
8187
8200
  #else
8188
- sizeof(struct __pyx_obj_6a_sync_10primitives_5locks_5event_CythonEvent), __PYX_GET_STRUCT_ALIGNMENT_3_1_2(struct __pyx_obj_6a_sync_10primitives_5locks_5event_CythonEvent),
8201
+ sizeof(struct __pyx_obj_6a_sync_10primitives_5locks_5event_CythonEvent), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_10primitives_5locks_5event_CythonEvent),
8189
8202
  #endif
8190
- __Pyx_ImportType_CheckSize_Warn_3_1_2); if (!__pyx_mstate->__pyx_ptype_6a_sync_10primitives_5locks_5event_CythonEvent) __PYX_ERR(4, 5, __pyx_L1_error)
8203
+ __Pyx_ImportType_CheckSize_Warn_3_1_4); if (!__pyx_mstate->__pyx_ptype_6a_sync_10primitives_5locks_5event_CythonEvent) __PYX_ERR(4, 5, __pyx_L1_error)
8191
8204
  __pyx_vtabptr_6a_sync_10primitives_5locks_5event_CythonEvent = (struct __pyx_vtabstruct_6a_sync_10primitives_5locks_5event_CythonEvent*)__Pyx_GetVtable(__pyx_mstate->__pyx_ptype_6a_sync_10primitives_5locks_5event_CythonEvent); if (unlikely(!__pyx_vtabptr_6a_sync_10primitives_5locks_5event_CythonEvent)) __PYX_ERR(4, 5, __pyx_L1_error)
8192
8205
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
8193
8206
  __Pyx_RefNannyFinishContext();
@@ -8218,20 +8231,20 @@ static int __Pyx_modinit_function_import_code(__pyx_mstatetype *__pyx_mstate) {
8218
8231
  /*--- Function import code ---*/
8219
8232
  __pyx_t_1 = PyImport_ImportModule("a_sync.a_sync._helpers"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
8220
8233
  __Pyx_GOTREF(__pyx_t_1);
8221
- if (__Pyx_ImportFunction_3_1_2(__pyx_t_1, "get_event_loop", (void (**)(void))&__pyx_f_6a_sync_6a_sync_8_helpers_get_event_loop, "PyObject *(int __pyx_skip_dispatch)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
8234
+ if (__Pyx_ImportFunction_3_1_4(__pyx_t_1, "get_event_loop", (void (**)(void))&__pyx_f_6a_sync_6a_sync_8_helpers_get_event_loop, "PyObject *(int __pyx_skip_dispatch)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
8222
8235
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
8223
8236
  __pyx_t_1 = PyImport_ImportModule("a_sync.asyncio.as_completed"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
8224
8237
  __Pyx_GOTREF(__pyx_t_1);
8225
- if (__Pyx_ImportFunction_3_1_2(__pyx_t_1, "as_completed_mapping", (void (**)(void))&__pyx_f_6a_sync_7asyncio_12as_completed_as_completed_mapping, "PyObject *(PyObject *, unsigned int, int, int, int, PyObject *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
8238
+ if (__Pyx_ImportFunction_3_1_4(__pyx_t_1, "as_completed_mapping", (void (**)(void))&__pyx_f_6a_sync_7asyncio_12as_completed_as_completed_mapping, "PyObject *(PyObject *, unsigned int, int, int, int, PyObject *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
8226
8239
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
8227
8240
  __pyx_t_1 = PyImport_ImportModule("a_sync.asyncio.create_task"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
8228
8241
  __Pyx_GOTREF(__pyx_t_1);
8229
- if (__Pyx_ImportFunction_3_1_2(__pyx_t_1, "ccreate_task_simple", (void (**)(void))&__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task_simple, "PyObject *(PyObject *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
8230
- if (__Pyx_ImportFunction_3_1_2(__pyx_t_1, "ccreate_task", (void (**)(void))&__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task, "PyObject *(PyObject *, PyObject *, int, int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
8242
+ if (__Pyx_ImportFunction_3_1_4(__pyx_t_1, "ccreate_task_simple", (void (**)(void))&__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task_simple, "PyObject *(PyObject *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
8243
+ if (__Pyx_ImportFunction_3_1_4(__pyx_t_1, "ccreate_task", (void (**)(void))&__pyx_f_6a_sync_7asyncio_11create_task_ccreate_task, "PyObject *(PyObject *, PyObject *, int, int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
8231
8244
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
8232
8245
  __pyx_t_1 = PyImport_ImportModule("a_sync.asyncio.igather"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
8233
8246
  __Pyx_GOTREF(__pyx_t_1);
8234
- if (__Pyx_ImportFunction_3_1_2(__pyx_t_1, "cigather", (void (**)(void))&__pyx_f_6a_sync_7asyncio_7igather_cigather, "PyObject *(PyObject *, struct __pyx_opt_args_6a_sync_7asyncio_7igather_cigather *__pyx_optional_args)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
8247
+ if (__Pyx_ImportFunction_3_1_4(__pyx_t_1, "cigather", (void (**)(void))&__pyx_f_6a_sync_7asyncio_7igather_cigather, "PyObject *(PyObject *, struct __pyx_opt_args_6a_sync_7asyncio_7igather_cigather *__pyx_optional_args)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
8235
8248
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
8236
8249
  __Pyx_RefNannyFinishContext();
8237
8250
  return 0;
@@ -11057,6 +11070,7 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
11057
11070
  changed = 1;
11058
11071
  }
11059
11072
  #endif // CYTHON_METH_FASTCALL
11073
+ #if !CYTHON_COMPILING_IN_PYPY
11060
11074
  else if (strcmp(memb->name, "__module__") == 0) {
11061
11075
  PyObject *descr;
11062
11076
  assert(memb->type == T_OBJECT);
@@ -11071,11 +11085,13 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
11071
11085
  }
11072
11086
  changed = 1;
11073
11087
  }
11088
+ #endif // !CYTHON_COMPILING_IN_PYPY
11074
11089
  }
11075
11090
  memb++;
11076
11091
  }
11077
11092
  }
11078
11093
  #endif // !CYTHON_COMPILING_IN_LIMITED_API
11094
+ #if !CYTHON_COMPILING_IN_PYPY
11079
11095
  slot = spec->slots;
11080
11096
  while (slot && slot->slot && slot->slot != Py_tp_getset)
11081
11097
  slot++;
@@ -11107,6 +11123,7 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
11107
11123
  ++getset;
11108
11124
  }
11109
11125
  }
11126
+ #endif // !CYTHON_COMPILING_IN_PYPY
11110
11127
  if (changed)
11111
11128
  PyType_Modified(type);
11112
11129
  #endif // PY_VERSION_HEX > 0x030900B1
@@ -11239,7 +11256,7 @@ bad:
11239
11256
  }
11240
11257
 
11241
11258
  /* CommonTypesMetaclass */
11242
- PyObject* __pyx_CommonTypesMetaclass_get_module(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED void* context) {
11259
+ static PyObject* __pyx_CommonTypesMetaclass_get_module(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED void* context) {
11243
11260
  return PyUnicode_FromString(__PYX_ABI_MODULE_NAME);
11244
11261
  }
11245
11262
  static PyGetSetDef __pyx_CommonTypesMetaclass_getset[] = {
@@ -11268,6 +11285,7 @@ static int __pyx_CommonTypesMetaclass_init(PyObject *module) {
11268
11285
  return -1;
11269
11286
  }
11270
11287
  mstate->__pyx_CommonTypesMetaclassType = __Pyx_FetchCommonTypeFromSpec(NULL, module, &__pyx_CommonTypesMetaclass_spec, bases);
11288
+ Py_DECREF(bases);
11271
11289
  if (unlikely(mstate->__pyx_CommonTypesMetaclassType == NULL)) {
11272
11290
  return -1;
11273
11291
  }
@@ -11549,7 +11567,7 @@ try_unpack:
11549
11567
  }
11550
11568
 
11551
11569
  /* PyObjectCallMethod1 */
11552
- #if !(CYTHON_VECTORCALL && __PYX_LIMITED_VERSION_HEX >= 0x030C0000)
11570
+ #if !(CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000)))
11553
11571
  static PyObject* __Pyx__PyObject_CallMethod1(PyObject* method, PyObject* arg) {
11554
11572
  PyObject *result = __Pyx_PyObject_CallOneArg(method, arg);
11555
11573
  Py_DECREF(method);
@@ -11557,7 +11575,7 @@ static PyObject* __Pyx__PyObject_CallMethod1(PyObject* method, PyObject* arg) {
11557
11575
  }
11558
11576
  #endif
11559
11577
  static PyObject* __Pyx_PyObject_CallMethod1(PyObject* obj, PyObject* method_name, PyObject* arg) {
11560
- #if CYTHON_VECTORCALL && __PYX_LIMITED_VERSION_HEX >= 0x030C0000
11578
+ #if CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000))
11561
11579
  PyObject *args[2] = {obj, arg};
11562
11580
  (void) __Pyx_PyObject_GetMethod;
11563
11581
  (void) __Pyx_PyObject_CallOneArg;
@@ -13188,15 +13206,15 @@ static CYTHON_INLINE int __Pyx_PyObject_SetAttrStr(PyObject* obj, PyObject* attr
13188
13206
  }
13189
13207
 
13190
13208
  /* TypeImport */
13191
- #ifndef __PYX_HAVE_RT_ImportType_3_1_2
13192
- #define __PYX_HAVE_RT_ImportType_3_1_2
13193
- static PyTypeObject *__Pyx_ImportType_3_1_2(PyObject *module, const char *module_name, const char *class_name,
13194
- size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_1_2 check_size)
13209
+ #ifndef __PYX_HAVE_RT_ImportType_3_1_4
13210
+ #define __PYX_HAVE_RT_ImportType_3_1_4
13211
+ static PyTypeObject *__Pyx_ImportType_3_1_4(PyObject *module, const char *module_name, const char *class_name,
13212
+ size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_1_4 check_size)
13195
13213
  {
13196
13214
  PyObject *result = 0;
13197
13215
  Py_ssize_t basicsize;
13198
13216
  Py_ssize_t itemsize;
13199
- #if CYTHON_COMPILING_IN_LIMITED_API
13217
+ #ifdef Py_LIMITED_API
13200
13218
  PyObject *py_basicsize;
13201
13219
  PyObject *py_itemsize;
13202
13220
  #endif
@@ -13209,7 +13227,7 @@ static PyTypeObject *__Pyx_ImportType_3_1_2(PyObject *module, const char *module
13209
13227
  module_name, class_name);
13210
13228
  goto bad;
13211
13229
  }
13212
- #if !CYTHON_COMPILING_IN_LIMITED_API
13230
+ #ifndef Py_LIMITED_API
13213
13231
  basicsize = ((PyTypeObject *)result)->tp_basicsize;
13214
13232
  itemsize = ((PyTypeObject *)result)->tp_itemsize;
13215
13233
  #else
@@ -13247,7 +13265,7 @@ static PyTypeObject *__Pyx_ImportType_3_1_2(PyObject *module, const char *module
13247
13265
  module_name, class_name, size, basicsize+itemsize);
13248
13266
  goto bad;
13249
13267
  }
13250
- if (check_size == __Pyx_ImportType_CheckSize_Error_3_1_2 &&
13268
+ if (check_size == __Pyx_ImportType_CheckSize_Error_3_1_4 &&
13251
13269
  ((size_t)basicsize > size || (size_t)(basicsize + itemsize) < size)) {
13252
13270
  PyErr_Format(PyExc_ValueError,
13253
13271
  "%.200s.%.200s size changed, may indicate binary incompatibility. "
@@ -13255,7 +13273,7 @@ static PyTypeObject *__Pyx_ImportType_3_1_2(PyObject *module, const char *module
13255
13273
  module_name, class_name, size, basicsize, basicsize+itemsize);
13256
13274
  goto bad;
13257
13275
  }
13258
- else if (check_size == __Pyx_ImportType_CheckSize_Warn_3_1_2 && (size_t)basicsize > size) {
13276
+ else if (check_size == __Pyx_ImportType_CheckSize_Warn_3_1_4 && (size_t)basicsize > size) {
13259
13277
  if (PyErr_WarnFormat(NULL, 0,
13260
13278
  "%.200s.%.200s size changed, may indicate binary incompatibility. "
13261
13279
  "Expected %zd from C header, got %zd from PyObject",
@@ -13292,6 +13310,13 @@ bad:
13292
13310
 
13293
13311
  /* PyObjectCallMethod0 */
13294
13312
  static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name) {
13313
+ #if CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000))
13314
+ PyObject *args[1] = {obj};
13315
+ (void) __Pyx_PyObject_GetMethod;
13316
+ (void) __Pyx_PyObject_CallOneArg;
13317
+ (void) __Pyx_PyObject_CallNoArg;
13318
+ return PyObject_VectorcallMethod(method_name, args, 1 | PY_VECTORCALL_ARGUMENTS_OFFSET, NULL);
13319
+ #else
13295
13320
  PyObject *method = NULL, *result = NULL;
13296
13321
  int is_method = __Pyx_PyObject_GetMethod(obj, method_name, &method);
13297
13322
  if (likely(is_method)) {
@@ -13304,6 +13329,7 @@ bad:
13304
13329
  Py_DECREF(method);
13305
13330
  bad:
13306
13331
  return result;
13332
+ #endif
13307
13333
  }
13308
13334
 
13309
13335
  /* ValidateBasesTuple */
@@ -16585,9 +16611,9 @@ static PyObject *__Pyx_Generator_GetInlinedResult(PyObject *self) {
16585
16611
  }
16586
16612
 
16587
16613
  /* FunctionImport */
16588
- #ifndef __PYX_HAVE_RT_ImportFunction_3_1_2
16589
- #define __PYX_HAVE_RT_ImportFunction_3_1_2
16590
- static int __Pyx_ImportFunction_3_1_2(PyObject *module, const char *funcname, void (**f)(void), const char *sig) {
16614
+ #ifndef __PYX_HAVE_RT_ImportFunction_3_1_4
16615
+ #define __PYX_HAVE_RT_ImportFunction_3_1_4
16616
+ static int __Pyx_ImportFunction_3_1_4(PyObject *module, const char *funcname, void (**f)(void), const char *sig) {
16591
16617
  PyObject *d = 0;
16592
16618
  PyObject *cobj = 0;
16593
16619
  union {
@@ -16689,6 +16715,10 @@ bad:
16689
16715
  PyCode_NewWithPosOnlyArgs
16690
16716
  #endif
16691
16717
  (a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, name, fline, lnos, __pyx_mstate_global->__pyx_empty_bytes);
16718
+ #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030c00A1
16719
+ if (likely(result))
16720
+ result->_co_firsttraceable = 0;
16721
+ #endif
16692
16722
  return result;
16693
16723
  }
16694
16724
  #elif PY_VERSION_HEX >= 0x030800B2 && !CYTHON_COMPILING_IN_PYPY