ez-a-sync 0.32.26__cp39-cp39-macosx_11_0_arm64.whl → 0.32.27__cp39-cp39-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-39-darwin.so +0 -0
  3. a_sync/a_sync/_descriptor.c +70 -55
  4. a_sync/a_sync/_descriptor.cpython-39-darwin.so +0 -0
  5. a_sync/a_sync/_flags.c +13 -10
  6. a_sync/a_sync/_flags.cpython-39-darwin.so +0 -0
  7. a_sync/a_sync/_helpers.c +62 -47
  8. a_sync/a_sync/_helpers.cpython-39-darwin.so +0 -0
  9. a_sync/a_sync/_kwargs.c +33 -18
  10. a_sync/a_sync/_kwargs.cpython-39-darwin.so +0 -0
  11. a_sync/a_sync/abstract.c +18 -11
  12. a_sync/a_sync/abstract.cpython-39-darwin.so +0 -0
  13. a_sync/a_sync/base.c +168 -153
  14. a_sync/a_sync/base.cpython-39-darwin.so +0 -0
  15. a_sync/a_sync/flags.c +6 -3
  16. a_sync/a_sync/flags.cpython-39-darwin.so +0 -0
  17. a_sync/a_sync/function.c +84 -69
  18. a_sync/a_sync/function.cpython-39-darwin.so +0 -0
  19. a_sync/a_sync/method.c +126 -111
  20. a_sync/a_sync/method.cpython-39-darwin.so +0 -0
  21. a_sync/a_sync/modifiers/manager.c +46 -31
  22. a_sync/a_sync/modifiers/manager.cpython-39-darwin.so +0 -0
  23. a_sync/a_sync/property.c +82 -67
  24. a_sync/a_sync/property.cpython-39-darwin.so +0 -0
  25. a_sync/async_property/cached.c +52 -37
  26. a_sync/async_property/cached.cpython-39-darwin.so +0 -0
  27. a_sync/async_property/proxy.c +25 -10
  28. a_sync/async_property/proxy.cpython-39-darwin.so +0 -0
  29. a_sync/asyncio/as_completed.c +21 -6
  30. a_sync/asyncio/as_completed.cpython-39-darwin.so +0 -0
  31. a_sync/asyncio/create_task.c +23 -8
  32. a_sync/asyncio/create_task.cpython-39-darwin.so +0 -0
  33. a_sync/asyncio/gather.c +30 -15
  34. a_sync/asyncio/gather.cpython-39-darwin.so +0 -0
  35. a_sync/asyncio/igather.c +24 -9
  36. a_sync/asyncio/igather.cpython-39-darwin.so +0 -0
  37. a_sync/asyncio/sleep.c +19 -4
  38. a_sync/asyncio/sleep.cpython-39-darwin.so +0 -0
  39. a_sync/debugging.c +45 -30
  40. a_sync/debugging.cpython-39-darwin.so +0 -0
  41. a_sync/exceptions.c +18 -11
  42. a_sync/exceptions.cpython-39-darwin.so +0 -0
  43. a_sync/executor.py +44 -0
  44. a_sync/functools.c +24 -9
  45. a_sync/functools.cpython-39-darwin.so +0 -0
  46. a_sync/iter.c +87 -72
  47. a_sync/iter.cpython-39-darwin.so +0 -0
  48. a_sync/primitives/_debug.c +51 -36
  49. a_sync/primitives/_debug.cpython-39-darwin.so +0 -0
  50. a_sync/primitives/_loggable.c +26 -11
  51. a_sync/primitives/_loggable.cpython-39-darwin.so +0 -0
  52. a_sync/primitives/locks/counter.c +65 -50
  53. a_sync/primitives/locks/counter.cpython-39-darwin.so +0 -0
  54. a_sync/primitives/locks/event.c +56 -40
  55. a_sync/primitives/locks/event.cpython-39-darwin.so +0 -0
  56. a_sync/primitives/locks/prio_semaphore.c +82 -67
  57. a_sync/primitives/locks/prio_semaphore.cpython-39-darwin.so +0 -0
  58. a_sync/primitives/locks/semaphore.c +67 -52
  59. a_sync/primitives/locks/semaphore.cpython-39-darwin.so +0 -0
  60. a_sync/utils/repr.c +41 -26
  61. a_sync/utils/repr.cpython-39-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
a_sync/a_sync/_flags.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
  {
@@ -29,8 +29,8 @@ END: Cython Metadata */
29
29
  #elif PY_VERSION_HEX < 0x03080000
30
30
  #error Cython requires Python 3.8+.
31
31
  #else
32
- #define __PYX_ABI_VERSION "3_1_2"
33
- #define CYTHON_HEX_VERSION 0x030102F0
32
+ #define __PYX_ABI_VERSION "3_1_3"
33
+ #define CYTHON_HEX_VERSION 0x030103F0
34
34
  #define CYTHON_FUTURE_DIVISION 1
35
35
  /* CModulePreamble */
36
36
  #include <stddef.h>
@@ -393,6 +393,9 @@ END: Cython Metadata */
393
393
  enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P == sizeof(void*)) };
394
394
  #endif
395
395
  #endif
396
+ #ifndef CYTHON_LOCK_AND_GIL_DEADLOCK_AVOIDANCE_TIME
397
+ #define CYTHON_LOCK_AND_GIL_DEADLOCK_AVOIDANCE_TIME 100
398
+ #endif
396
399
  #ifndef __has_attribute
397
400
  #define __has_attribute(x) 0
398
401
  #endif
@@ -1921,7 +1924,7 @@ static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt
1921
1924
  static int __Pyx_ExportFunction(const char *name, void (*f)(void), const char *sig);
1922
1925
 
1923
1926
  /* VoidPtrImport.proto */
1924
- static int __Pyx_ImportVoidPtr_3_1_2(PyObject *module, const char *name, void **p, const char *sig);
1927
+ static int __Pyx_ImportVoidPtr_3_1_3(PyObject *module, const char *name, void **p, const char *sig);
1925
1928
 
1926
1929
  /* MultiPhaseInitModuleState.proto */
1927
1930
  #if CYTHON_PEP489_MULTI_PHASE_INIT && CYTHON_USE_MODULE_STATE
@@ -2693,9 +2696,9 @@ static int __Pyx_modinit_variable_import_code(__pyx_mstatetype *__pyx_mstate) {
2693
2696
  /*--- Variable import code ---*/
2694
2697
  __pyx_t_1 = PyImport_ImportModule("a_sync.a_sync.flags"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
2695
2698
  __Pyx_GOTREF(__pyx_t_1);
2696
- if (__Pyx_ImportVoidPtr_3_1_2(__pyx_t_1, "AFFIRMATIVE_FLAGS", (void **)&__pyx_vp_6a_sync_6a_sync_5flags_AFFIRMATIVE_FLAGS, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
2697
- if (__Pyx_ImportVoidPtr_3_1_2(__pyx_t_1, "NEGATIVE_FLAGS", (void **)&__pyx_vp_6a_sync_6a_sync_5flags_NEGATIVE_FLAGS, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
2698
- if (__Pyx_ImportVoidPtr_3_1_2(__pyx_t_1, "VIABLE_FLAGS", (void **)&__pyx_vp_6a_sync_6a_sync_5flags_VIABLE_FLAGS, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
2699
+ if (__Pyx_ImportVoidPtr_3_1_3(__pyx_t_1, "AFFIRMATIVE_FLAGS", (void **)&__pyx_vp_6a_sync_6a_sync_5flags_AFFIRMATIVE_FLAGS, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
2700
+ if (__Pyx_ImportVoidPtr_3_1_3(__pyx_t_1, "NEGATIVE_FLAGS", (void **)&__pyx_vp_6a_sync_6a_sync_5flags_NEGATIVE_FLAGS, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
2701
+ if (__Pyx_ImportVoidPtr_3_1_3(__pyx_t_1, "VIABLE_FLAGS", (void **)&__pyx_vp_6a_sync_6a_sync_5flags_VIABLE_FLAGS, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
2699
2702
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
2700
2703
  __Pyx_RefNannyFinishContext();
2701
2704
  return 0;
@@ -5345,9 +5348,9 @@ bad:
5345
5348
  }
5346
5349
 
5347
5350
  /* VoidPtrImport */
5348
- #ifndef __PYX_HAVE_RT_ImportVoidPtr_3_1_2
5349
- #define __PYX_HAVE_RT_ImportVoidPtr_3_1_2
5350
- static int __Pyx_ImportVoidPtr_3_1_2(PyObject *module, const char *name, void **p, const char *sig) {
5351
+ #ifndef __PYX_HAVE_RT_ImportVoidPtr_3_1_3
5352
+ #define __PYX_HAVE_RT_ImportVoidPtr_3_1_3
5353
+ static int __Pyx_ImportVoidPtr_3_1_3(PyObject *module, const char *name, void **p, const char *sig) {
5351
5354
  PyObject *d = 0;
5352
5355
  PyObject *cobj = 0;
5353
5356
  d = PyObject_GetAttrString(module, "__pyx_capi__");
Binary file
a_sync/a_sync/_helpers.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
  {
@@ -29,8 +29,8 @@ END: Cython Metadata */
29
29
  #elif PY_VERSION_HEX < 0x03080000
30
30
  #error Cython requires Python 3.8+.
31
31
  #else
32
- #define __PYX_ABI_VERSION "3_1_2"
33
- #define CYTHON_HEX_VERSION 0x030102F0
32
+ #define __PYX_ABI_VERSION "3_1_3"
33
+ #define CYTHON_HEX_VERSION 0x030103F0
34
34
  #define CYTHON_FUTURE_DIVISION 1
35
35
  /* CModulePreamble */
36
36
  #include <stddef.h>
@@ -393,6 +393,9 @@ END: Cython Metadata */
393
393
  enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P == sizeof(void*)) };
394
394
  #endif
395
395
  #endif
396
+ #ifndef CYTHON_LOCK_AND_GIL_DEADLOCK_AVOIDANCE_TIME
397
+ #define CYTHON_LOCK_AND_GIL_DEADLOCK_AVOIDANCE_TIME 100
398
+ #endif
396
399
  #ifndef __has_attribute
397
400
  #define __has_attribute(x) 0
398
401
  #endif
@@ -2798,22 +2801,22 @@ static int __Pyx_validate_bases_tuple(const char *type_name, Py_ssize_t dictoffs
2798
2801
  CYTHON_UNUSED static int __Pyx_PyType_Ready(PyTypeObject *t);
2799
2802
 
2800
2803
  /* TypeImport.proto */
2801
- #ifndef __PYX_HAVE_RT_ImportType_proto_3_1_2
2802
- #define __PYX_HAVE_RT_ImportType_proto_3_1_2
2804
+ #ifndef __PYX_HAVE_RT_ImportType_proto_3_1_3
2805
+ #define __PYX_HAVE_RT_ImportType_proto_3_1_3
2803
2806
  #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
2804
2807
  #include <stdalign.h>
2805
2808
  #endif
2806
2809
  #if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) || __cplusplus >= 201103L
2807
- #define __PYX_GET_STRUCT_ALIGNMENT_3_1_2(s) alignof(s)
2810
+ #define __PYX_GET_STRUCT_ALIGNMENT_3_1_3(s) alignof(s)
2808
2811
  #else
2809
- #define __PYX_GET_STRUCT_ALIGNMENT_3_1_2(s) sizeof(void*)
2812
+ #define __PYX_GET_STRUCT_ALIGNMENT_3_1_3(s) sizeof(void*)
2810
2813
  #endif
2811
- enum __Pyx_ImportType_CheckSize_3_1_2 {
2812
- __Pyx_ImportType_CheckSize_Error_3_1_2 = 0,
2813
- __Pyx_ImportType_CheckSize_Warn_3_1_2 = 1,
2814
- __Pyx_ImportType_CheckSize_Ignore_3_1_2 = 2
2814
+ enum __Pyx_ImportType_CheckSize_3_1_3 {
2815
+ __Pyx_ImportType_CheckSize_Error_3_1_3 = 0,
2816
+ __Pyx_ImportType_CheckSize_Warn_3_1_3 = 1,
2817
+ __Pyx_ImportType_CheckSize_Ignore_3_1_3 = 2
2815
2818
  };
2816
- 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);
2819
+ 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);
2817
2820
  #endif
2818
2821
 
2819
2822
  /* GetVTable.proto */
@@ -2964,7 +2967,7 @@ static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt
2964
2967
  static int __Pyx_ExportFunction(const char *name, void (*f)(void), const char *sig);
2965
2968
 
2966
2969
  /* FunctionImport.proto */
2967
- static int __Pyx_ImportFunction_3_1_2(PyObject *module, const char *funcname, void (**f)(void), const char *sig);
2970
+ static int __Pyx_ImportFunction_3_1_3(PyObject *module, const char *funcname, void (**f)(void), const char *sig);
2968
2971
 
2969
2972
  /* MultiPhaseInitModuleState.proto */
2970
2973
  #if CYTHON_PEP489_MULTI_PHASE_INIT && CYTHON_USE_MODULE_STATE
@@ -3098,7 +3101,7 @@ static const char __pyx_k_get_event_loop[] = "get_event_loop";
3098
3101
  static const char __pyx_k_new_event_loop[] = "new_event_loop";
3099
3102
  static const char __pyx_k_set_event_loop[] = "set_event_loop";
3100
3103
  static const char __pyx_k_FunctionNotSync[] = "FunctionNotSync";
3101
- static const char __pyx_k_a_1_4s_2_Q_aq_1[] = "\200\001\360\010\000\005\006\330\010\017\210\230a\330\004\013\320\013\033\2301\330\010\013\2104\210s\220!\2202\220[\240\001\240\021\330\014\r\330\010\017\210~\230Q\330\010\026\220a\220q\330\004\013\2101";
3104
+ static const char __pyx_k_a_1_4s_2_Q_aq_1[] = "\200\001\360\010\000\005\006\330\010\017\210\177\230a\330\004\013\320\013\033\2301\330\010\013\2104\210s\220!\2202\220[\240\001\240\021\330\014\r\330\010\017\210~\230Q\330\010\026\220a\220q\330\004\013\2101";
3102
3105
  static const char __pyx_k_a_sync_executor[] = "a_sync.executor";
3103
3106
  static const char __pyx_k_asyncio_futures[] = "asyncio.futures";
3104
3107
  static const char __pyx_k_get_event_loop_2[] = "_get_event_loop";
@@ -6520,51 +6523,51 @@ static int __Pyx_modinit_type_import_code(__pyx_mstatetype *__pyx_mstate) {
6520
6523
  /*--- Type import code ---*/
6521
6524
  __pyx_t_1 = PyImport_ImportModule("a_sync.a_sync.modifiers.manager"); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1, __pyx_L1_error)
6522
6525
  __Pyx_GOTREF(__pyx_t_1);
6523
- __pyx_mstate->__pyx_ptype_6a_sync_6a_sync_9modifiers_7manager_ModifierManager = __Pyx_ImportType_3_1_2(__pyx_t_1, "a_sync.a_sync.modifiers.manager", "ModifierManager",
6526
+ __pyx_mstate->__pyx_ptype_6a_sync_6a_sync_9modifiers_7manager_ModifierManager = __Pyx_ImportType_3_1_3(__pyx_t_1, "a_sync.a_sync.modifiers.manager", "ModifierManager",
6524
6527
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
6525
- sizeof(struct __pyx_obj_6a_sync_6a_sync_9modifiers_7manager_ModifierManager), __PYX_GET_STRUCT_ALIGNMENT_3_1_2(struct __pyx_obj_6a_sync_6a_sync_9modifiers_7manager_ModifierManager),
6528
+ sizeof(struct __pyx_obj_6a_sync_6a_sync_9modifiers_7manager_ModifierManager), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_6a_sync_9modifiers_7manager_ModifierManager),
6526
6529
  #elif CYTHON_COMPILING_IN_LIMITED_API
6527
- sizeof(struct __pyx_obj_6a_sync_6a_sync_9modifiers_7manager_ModifierManager), __PYX_GET_STRUCT_ALIGNMENT_3_1_2(struct __pyx_obj_6a_sync_6a_sync_9modifiers_7manager_ModifierManager),
6530
+ sizeof(struct __pyx_obj_6a_sync_6a_sync_9modifiers_7manager_ModifierManager), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_6a_sync_9modifiers_7manager_ModifierManager),
6528
6531
  #else
6529
- sizeof(struct __pyx_obj_6a_sync_6a_sync_9modifiers_7manager_ModifierManager), __PYX_GET_STRUCT_ALIGNMENT_3_1_2(struct __pyx_obj_6a_sync_6a_sync_9modifiers_7manager_ModifierManager),
6532
+ sizeof(struct __pyx_obj_6a_sync_6a_sync_9modifiers_7manager_ModifierManager), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_6a_sync_9modifiers_7manager_ModifierManager),
6530
6533
  #endif
6531
- __Pyx_ImportType_CheckSize_Warn_3_1_2); if (!__pyx_mstate->__pyx_ptype_6a_sync_6a_sync_9modifiers_7manager_ModifierManager) __PYX_ERR(1, 1, __pyx_L1_error)
6534
+ __Pyx_ImportType_CheckSize_Warn_3_1_3); if (!__pyx_mstate->__pyx_ptype_6a_sync_6a_sync_9modifiers_7manager_ModifierManager) __PYX_ERR(1, 1, __pyx_L1_error)
6532
6535
  __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(1, 1, __pyx_L1_error)
6533
6536
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6534
6537
  __pyx_t_1 = PyImport_ImportModule("a_sync.a_sync.function"); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 3, __pyx_L1_error)
6535
6538
  __Pyx_GOTREF(__pyx_t_1);
6536
- __pyx_mstate->__pyx_ptype_6a_sync_6a_sync_8function__ModifiedMixin = __Pyx_ImportType_3_1_2(__pyx_t_1, "a_sync.a_sync.function", "_ModifiedMixin",
6539
+ __pyx_mstate->__pyx_ptype_6a_sync_6a_sync_8function__ModifiedMixin = __Pyx_ImportType_3_1_3(__pyx_t_1, "a_sync.a_sync.function", "_ModifiedMixin",
6537
6540
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
6538
- sizeof(struct __pyx_obj_6a_sync_6a_sync_8function__ModifiedMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_2(struct __pyx_obj_6a_sync_6a_sync_8function__ModifiedMixin),
6541
+ sizeof(struct __pyx_obj_6a_sync_6a_sync_8function__ModifiedMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_6a_sync_8function__ModifiedMixin),
6539
6542
  #elif CYTHON_COMPILING_IN_LIMITED_API
6540
- sizeof(struct __pyx_obj_6a_sync_6a_sync_8function__ModifiedMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_2(struct __pyx_obj_6a_sync_6a_sync_8function__ModifiedMixin),
6543
+ sizeof(struct __pyx_obj_6a_sync_6a_sync_8function__ModifiedMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_6a_sync_8function__ModifiedMixin),
6541
6544
  #else
6542
- sizeof(struct __pyx_obj_6a_sync_6a_sync_8function__ModifiedMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_2(struct __pyx_obj_6a_sync_6a_sync_8function__ModifiedMixin),
6545
+ sizeof(struct __pyx_obj_6a_sync_6a_sync_8function__ModifiedMixin), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_6a_sync_8function__ModifiedMixin),
6543
6546
  #endif
6544
- __Pyx_ImportType_CheckSize_Warn_3_1_2); if (!__pyx_mstate->__pyx_ptype_6a_sync_6a_sync_8function__ModifiedMixin) __PYX_ERR(2, 3, __pyx_L1_error)
6547
+ __Pyx_ImportType_CheckSize_Warn_3_1_3); if (!__pyx_mstate->__pyx_ptype_6a_sync_6a_sync_8function__ModifiedMixin) __PYX_ERR(2, 3, __pyx_L1_error)
6545
6548
  __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(2, 3, __pyx_L1_error)
6546
- __pyx_mstate->__pyx_ptype_6a_sync_6a_sync_8function__ASyncFunction = __Pyx_ImportType_3_1_2(__pyx_t_1, "a_sync.a_sync.function", "_ASyncFunction",
6549
+ __pyx_mstate->__pyx_ptype_6a_sync_6a_sync_8function__ASyncFunction = __Pyx_ImportType_3_1_3(__pyx_t_1, "a_sync.a_sync.function", "_ASyncFunction",
6547
6550
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
6548
- sizeof(struct __pyx_obj_6a_sync_6a_sync_8function__ASyncFunction), __PYX_GET_STRUCT_ALIGNMENT_3_1_2(struct __pyx_obj_6a_sync_6a_sync_8function__ASyncFunction),
6551
+ sizeof(struct __pyx_obj_6a_sync_6a_sync_8function__ASyncFunction), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_6a_sync_8function__ASyncFunction),
6549
6552
  #elif CYTHON_COMPILING_IN_LIMITED_API
6550
- sizeof(struct __pyx_obj_6a_sync_6a_sync_8function__ASyncFunction), __PYX_GET_STRUCT_ALIGNMENT_3_1_2(struct __pyx_obj_6a_sync_6a_sync_8function__ASyncFunction),
6553
+ sizeof(struct __pyx_obj_6a_sync_6a_sync_8function__ASyncFunction), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_6a_sync_8function__ASyncFunction),
6551
6554
  #else
6552
- sizeof(struct __pyx_obj_6a_sync_6a_sync_8function__ASyncFunction), __PYX_GET_STRUCT_ALIGNMENT_3_1_2(struct __pyx_obj_6a_sync_6a_sync_8function__ASyncFunction),
6555
+ sizeof(struct __pyx_obj_6a_sync_6a_sync_8function__ASyncFunction), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(struct __pyx_obj_6a_sync_6a_sync_8function__ASyncFunction),
6553
6556
  #endif
6554
- __Pyx_ImportType_CheckSize_Warn_3_1_2); if (!__pyx_mstate->__pyx_ptype_6a_sync_6a_sync_8function__ASyncFunction) __PYX_ERR(2, 13, __pyx_L1_error)
6557
+ __Pyx_ImportType_CheckSize_Warn_3_1_3); if (!__pyx_mstate->__pyx_ptype_6a_sync_6a_sync_8function__ASyncFunction) __PYX_ERR(2, 13, __pyx_L1_error)
6555
6558
  __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(2, 13, __pyx_L1_error)
6556
6559
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6557
6560
  __pyx_t_1 = PyImport_ImportModule("a_sync.functools"); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1, __pyx_L1_error)
6558
6561
  __Pyx_GOTREF(__pyx_t_1);
6559
- __pyx_mstate->__pyx_ptype_6a_sync_9functools_cached_property_unsafe = __Pyx_ImportType_3_1_2(__pyx_t_1, "a_sync.functools", "cached_property_unsafe",
6562
+ __pyx_mstate->__pyx_ptype_6a_sync_9functools_cached_property_unsafe = __Pyx_ImportType_3_1_3(__pyx_t_1, "a_sync.functools", "cached_property_unsafe",
6560
6563
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
6561
- 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),
6564
+ 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),
6562
6565
  #elif CYTHON_COMPILING_IN_LIMITED_API
6563
- 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),
6566
+ 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),
6564
6567
  #else
6565
- 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),
6568
+ 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),
6566
6569
  #endif
6567
- __Pyx_ImportType_CheckSize_Warn_3_1_2); if (!__pyx_mstate->__pyx_ptype_6a_sync_9functools_cached_property_unsafe) __PYX_ERR(3, 1, __pyx_L1_error)
6570
+ __Pyx_ImportType_CheckSize_Warn_3_1_3); if (!__pyx_mstate->__pyx_ptype_6a_sync_9functools_cached_property_unsafe) __PYX_ERR(3, 1, __pyx_L1_error)
6568
6571
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6569
6572
  __Pyx_RefNannyFinishContext();
6570
6573
  return 0;
@@ -6594,7 +6597,7 @@ static int __Pyx_modinit_function_import_code(__pyx_mstatetype *__pyx_mstate) {
6594
6597
  /*--- Function import code ---*/
6595
6598
  __pyx_t_1 = PyImport_ImportModule("a_sync.functools"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
6596
6599
  __Pyx_GOTREF(__pyx_t_1);
6597
- 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)
6600
+ 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)
6598
6601
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
6599
6602
  __Pyx_RefNannyFinishContext();
6600
6603
  return 0;
@@ -8885,6 +8888,7 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
8885
8888
  changed = 1;
8886
8889
  }
8887
8890
  #endif // CYTHON_METH_FASTCALL
8891
+ #if !CYTHON_COMPILING_IN_PYPY
8888
8892
  else if (strcmp(memb->name, "__module__") == 0) {
8889
8893
  PyObject *descr;
8890
8894
  assert(memb->type == T_OBJECT);
@@ -8899,11 +8903,13 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
8899
8903
  }
8900
8904
  changed = 1;
8901
8905
  }
8906
+ #endif // !CYTHON_COMPILING_IN_PYPY
8902
8907
  }
8903
8908
  memb++;
8904
8909
  }
8905
8910
  }
8906
8911
  #endif // !CYTHON_COMPILING_IN_LIMITED_API
8912
+ #if !CYTHON_COMPILING_IN_PYPY
8907
8913
  slot = spec->slots;
8908
8914
  while (slot && slot->slot && slot->slot != Py_tp_getset)
8909
8915
  slot++;
@@ -8935,6 +8941,7 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
8935
8941
  ++getset;
8936
8942
  }
8937
8943
  }
8944
+ #endif // !CYTHON_COMPILING_IN_PYPY
8938
8945
  if (changed)
8939
8946
  PyType_Modified(type);
8940
8947
  #endif // PY_VERSION_HEX > 0x030900B1
@@ -9067,7 +9074,7 @@ bad:
9067
9074
  }
9068
9075
 
9069
9076
  /* CommonTypesMetaclass */
9070
- PyObject* __pyx_CommonTypesMetaclass_get_module(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED void* context) {
9077
+ static PyObject* __pyx_CommonTypesMetaclass_get_module(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED void* context) {
9071
9078
  return PyUnicode_FromString(__PYX_ABI_MODULE_NAME);
9072
9079
  }
9073
9080
  static PyGetSetDef __pyx_CommonTypesMetaclass_getset[] = {
@@ -9247,7 +9254,7 @@ try_unpack:
9247
9254
  }
9248
9255
 
9249
9256
  /* PyObjectCallMethod1 */
9250
- #if !(CYTHON_VECTORCALL && __PYX_LIMITED_VERSION_HEX >= 0x030C0000)
9257
+ #if !(CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000)))
9251
9258
  static PyObject* __Pyx__PyObject_CallMethod1(PyObject* method, PyObject* arg) {
9252
9259
  PyObject *result = __Pyx_PyObject_CallOneArg(method, arg);
9253
9260
  Py_DECREF(method);
@@ -9255,7 +9262,7 @@ static PyObject* __Pyx__PyObject_CallMethod1(PyObject* method, PyObject* arg) {
9255
9262
  }
9256
9263
  #endif
9257
9264
  static PyObject* __Pyx_PyObject_CallMethod1(PyObject* obj, PyObject* method_name, PyObject* arg) {
9258
- #if CYTHON_VECTORCALL && __PYX_LIMITED_VERSION_HEX >= 0x030C0000
9265
+ #if CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000))
9259
9266
  PyObject *args[2] = {obj, arg};
9260
9267
  (void) __Pyx_PyObject_GetMethod;
9261
9268
  (void) __Pyx_PyObject_CallOneArg;
@@ -11843,6 +11850,13 @@ static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *func, Py
11843
11850
 
11844
11851
  /* PyObjectCallMethod0 */
11845
11852
  static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name) {
11853
+ #if CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000))
11854
+ PyObject *args[1] = {obj};
11855
+ (void) __Pyx_PyObject_GetMethod;
11856
+ (void) __Pyx_PyObject_CallOneArg;
11857
+ (void) __Pyx_PyObject_CallNoArg;
11858
+ return PyObject_VectorcallMethod(method_name, args, 1 | PY_VECTORCALL_ARGUMENTS_OFFSET, NULL);
11859
+ #else
11846
11860
  PyObject *method = NULL, *result = NULL;
11847
11861
  int is_method = __Pyx_PyObject_GetMethod(obj, method_name, &method);
11848
11862
  if (likely(is_method)) {
@@ -11855,6 +11869,7 @@ static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *func, Py
11855
11869
  Py_DECREF(method);
11856
11870
  bad:
11857
11871
  return result;
11872
+ #endif
11858
11873
  }
11859
11874
 
11860
11875
  /* ValidateBasesTuple */
@@ -12028,10 +12043,10 @@ static int __Pyx_PyType_Ready(PyTypeObject *t) {
12028
12043
  }
12029
12044
 
12030
12045
  /* TypeImport */
12031
- #ifndef __PYX_HAVE_RT_ImportType_3_1_2
12032
- #define __PYX_HAVE_RT_ImportType_3_1_2
12033
- static PyTypeObject *__Pyx_ImportType_3_1_2(PyObject *module, const char *module_name, const char *class_name,
12034
- size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_1_2 check_size)
12046
+ #ifndef __PYX_HAVE_RT_ImportType_3_1_3
12047
+ #define __PYX_HAVE_RT_ImportType_3_1_3
12048
+ static PyTypeObject *__Pyx_ImportType_3_1_3(PyObject *module, const char *module_name, const char *class_name,
12049
+ size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_1_3 check_size)
12035
12050
  {
12036
12051
  PyObject *result = 0;
12037
12052
  Py_ssize_t basicsize;
@@ -12087,7 +12102,7 @@ static PyTypeObject *__Pyx_ImportType_3_1_2(PyObject *module, const char *module
12087
12102
  module_name, class_name, size, basicsize+itemsize);
12088
12103
  goto bad;
12089
12104
  }
12090
- if (check_size == __Pyx_ImportType_CheckSize_Error_3_1_2 &&
12105
+ if (check_size == __Pyx_ImportType_CheckSize_Error_3_1_3 &&
12091
12106
  ((size_t)basicsize > size || (size_t)(basicsize + itemsize) < size)) {
12092
12107
  PyErr_Format(PyExc_ValueError,
12093
12108
  "%.200s.%.200s size changed, may indicate binary incompatibility. "
@@ -12095,7 +12110,7 @@ static PyTypeObject *__Pyx_ImportType_3_1_2(PyObject *module, const char *module
12095
12110
  module_name, class_name, size, basicsize, basicsize+itemsize);
12096
12111
  goto bad;
12097
12112
  }
12098
- else if (check_size == __Pyx_ImportType_CheckSize_Warn_3_1_2 && (size_t)basicsize > size) {
12113
+ else if (check_size == __Pyx_ImportType_CheckSize_Warn_3_1_3 && (size_t)basicsize > size) {
12099
12114
  if (PyErr_WarnFormat(NULL, 0,
12100
12115
  "%.200s.%.200s size changed, may indicate binary incompatibility. "
12101
12116
  "Expected %zd from C header, got %zd from PyObject",
@@ -13491,9 +13506,9 @@ bad:
13491
13506
  }
13492
13507
 
13493
13508
  /* FunctionImport */
13494
- #ifndef __PYX_HAVE_RT_ImportFunction_3_1_2
13495
- #define __PYX_HAVE_RT_ImportFunction_3_1_2
13496
- static int __Pyx_ImportFunction_3_1_2(PyObject *module, const char *funcname, void (**f)(void), const char *sig) {
13509
+ #ifndef __PYX_HAVE_RT_ImportFunction_3_1_3
13510
+ #define __PYX_HAVE_RT_ImportFunction_3_1_3
13511
+ static int __Pyx_ImportFunction_3_1_3(PyObject *module, const char *funcname, void (**f)(void), const char *sig) {
13497
13512
  PyObject *d = 0;
13498
13513
  PyObject *cobj = 0;
13499
13514
  union {
Binary file
a_sync/a_sync/_kwargs.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
  {
@@ -29,8 +29,8 @@ END: Cython Metadata */
29
29
  #elif PY_VERSION_HEX < 0x03080000
30
30
  #error Cython requires Python 3.8+.
31
31
  #else
32
- #define __PYX_ABI_VERSION "3_1_2"
33
- #define CYTHON_HEX_VERSION 0x030102F0
32
+ #define __PYX_ABI_VERSION "3_1_3"
33
+ #define CYTHON_HEX_VERSION 0x030103F0
34
34
  #define CYTHON_FUTURE_DIVISION 1
35
35
  /* CModulePreamble */
36
36
  #include <stddef.h>
@@ -393,6 +393,9 @@ END: Cython Metadata */
393
393
  enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P == sizeof(void*)) };
394
394
  #endif
395
395
  #endif
396
+ #ifndef CYTHON_LOCK_AND_GIL_DEADLOCK_AVOIDANCE_TIME
397
+ #define CYTHON_LOCK_AND_GIL_DEADLOCK_AVOIDANCE_TIME 100
398
+ #endif
396
399
  #ifndef __has_attribute
397
400
  #define __has_attribute(x) 0
398
401
  #endif
@@ -2856,10 +2859,10 @@ static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt
2856
2859
  static int __Pyx_ExportFunction(const char *name, void (*f)(void), const char *sig);
2857
2860
 
2858
2861
  /* VoidPtrImport.proto */
2859
- static int __Pyx_ImportVoidPtr_3_1_2(PyObject *module, const char *name, void **p, const char *sig);
2862
+ static int __Pyx_ImportVoidPtr_3_1_3(PyObject *module, const char *name, void **p, const char *sig);
2860
2863
 
2861
2864
  /* FunctionImport.proto */
2862
- static int __Pyx_ImportFunction_3_1_2(PyObject *module, const char *funcname, void (**f)(void), const char *sig);
2865
+ static int __Pyx_ImportFunction_3_1_3(PyObject *module, const char *funcname, void (**f)(void), const char *sig);
2863
2866
 
2864
2867
  /* MultiPhaseInitModuleState.proto */
2865
2868
  #if CYTHON_PEP489_MULTI_PHASE_INIT && CYTHON_USE_MODULE_STATE
@@ -4232,9 +4235,9 @@ static int __Pyx_modinit_variable_import_code(__pyx_mstatetype *__pyx_mstate) {
4232
4235
  /*--- Variable import code ---*/
4233
4236
  __pyx_t_1 = PyImport_ImportModule("a_sync.a_sync.flags"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
4234
4237
  __Pyx_GOTREF(__pyx_t_1);
4235
- if (__Pyx_ImportVoidPtr_3_1_2(__pyx_t_1, "AFFIRMATIVE_FLAGS", (void **)&__pyx_vp_6a_sync_6a_sync_5flags_AFFIRMATIVE_FLAGS, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
4236
- if (__Pyx_ImportVoidPtr_3_1_2(__pyx_t_1, "NEGATIVE_FLAGS", (void **)&__pyx_vp_6a_sync_6a_sync_5flags_NEGATIVE_FLAGS, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
4237
- if (__Pyx_ImportVoidPtr_3_1_2(__pyx_t_1, "VIABLE_FLAGS", (void **)&__pyx_vp_6a_sync_6a_sync_5flags_VIABLE_FLAGS, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
4238
+ if (__Pyx_ImportVoidPtr_3_1_3(__pyx_t_1, "AFFIRMATIVE_FLAGS", (void **)&__pyx_vp_6a_sync_6a_sync_5flags_AFFIRMATIVE_FLAGS, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
4239
+ if (__Pyx_ImportVoidPtr_3_1_3(__pyx_t_1, "NEGATIVE_FLAGS", (void **)&__pyx_vp_6a_sync_6a_sync_5flags_NEGATIVE_FLAGS, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
4240
+ if (__Pyx_ImportVoidPtr_3_1_3(__pyx_t_1, "VIABLE_FLAGS", (void **)&__pyx_vp_6a_sync_6a_sync_5flags_VIABLE_FLAGS, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
4238
4241
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
4239
4242
  __Pyx_RefNannyFinishContext();
4240
4243
  return 0;
@@ -4255,7 +4258,7 @@ static int __Pyx_modinit_function_import_code(__pyx_mstatetype *__pyx_mstate) {
4255
4258
  /*--- Function import code ---*/
4256
4259
  __pyx_t_1 = PyImport_ImportModule("a_sync.a_sync._flags"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
4257
4260
  __Pyx_GOTREF(__pyx_t_1);
4258
- if (__Pyx_ImportFunction_3_1_2(__pyx_t_1, "validate_and_negate_if_necessary", (void (**)(void))&__pyx_f_6a_sync_6a_sync_6_flags_validate_and_negate_if_necessary, "int (PyObject *, PyObject *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
4261
+ if (__Pyx_ImportFunction_3_1_3(__pyx_t_1, "validate_and_negate_if_necessary", (void (**)(void))&__pyx_f_6a_sync_6a_sync_6_flags_validate_and_negate_if_necessary, "int (PyObject *, PyObject *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
4259
4262
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
4260
4263
  __Pyx_RefNannyFinishContext();
4261
4264
  return 0;
@@ -6875,6 +6878,7 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
6875
6878
  changed = 1;
6876
6879
  }
6877
6880
  #endif // CYTHON_METH_FASTCALL
6881
+ #if !CYTHON_COMPILING_IN_PYPY
6878
6882
  else if (strcmp(memb->name, "__module__") == 0) {
6879
6883
  PyObject *descr;
6880
6884
  assert(memb->type == T_OBJECT);
@@ -6889,11 +6893,13 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
6889
6893
  }
6890
6894
  changed = 1;
6891
6895
  }
6896
+ #endif // !CYTHON_COMPILING_IN_PYPY
6892
6897
  }
6893
6898
  memb++;
6894
6899
  }
6895
6900
  }
6896
6901
  #endif // !CYTHON_COMPILING_IN_LIMITED_API
6902
+ #if !CYTHON_COMPILING_IN_PYPY
6897
6903
  slot = spec->slots;
6898
6904
  while (slot && slot->slot && slot->slot != Py_tp_getset)
6899
6905
  slot++;
@@ -6925,6 +6931,7 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
6925
6931
  ++getset;
6926
6932
  }
6927
6933
  }
6934
+ #endif // !CYTHON_COMPILING_IN_PYPY
6928
6935
  if (changed)
6929
6936
  PyType_Modified(type);
6930
6937
  #endif // PY_VERSION_HEX > 0x030900B1
@@ -7035,6 +7042,13 @@ try_unpack:
7035
7042
 
7036
7043
  /* PyObjectCallMethod0 */
7037
7044
  static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name) {
7045
+ #if CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000))
7046
+ PyObject *args[1] = {obj};
7047
+ (void) __Pyx_PyObject_GetMethod;
7048
+ (void) __Pyx_PyObject_CallOneArg;
7049
+ (void) __Pyx_PyObject_CallNoArg;
7050
+ return PyObject_VectorcallMethod(method_name, args, 1 | PY_VECTORCALL_ARGUMENTS_OFFSET, NULL);
7051
+ #else
7038
7052
  PyObject *method = NULL, *result = NULL;
7039
7053
  int is_method = __Pyx_PyObject_GetMethod(obj, method_name, &method);
7040
7054
  if (likely(is_method)) {
@@ -7047,6 +7061,7 @@ static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name
7047
7061
  Py_DECREF(method);
7048
7062
  bad:
7049
7063
  return result;
7064
+ #endif
7050
7065
  }
7051
7066
 
7052
7067
  /* ValidateBasesTuple */
@@ -7506,7 +7521,7 @@ bad:
7506
7521
  }
7507
7522
 
7508
7523
  /* CommonTypesMetaclass */
7509
- PyObject* __pyx_CommonTypesMetaclass_get_module(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED void* context) {
7524
+ static PyObject* __pyx_CommonTypesMetaclass_get_module(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED void* context) {
7510
7525
  return PyUnicode_FromString(__PYX_ABI_MODULE_NAME);
7511
7526
  }
7512
7527
  static PyGetSetDef __pyx_CommonTypesMetaclass_getset[] = {
@@ -9879,7 +9894,7 @@ static CYTHON_INLINE void __Pyx_ExceptionSwap(PyObject **type, PyObject **value,
9879
9894
  #endif
9880
9895
 
9881
9896
  /* PyObjectCallMethod1 */
9882
- #if !(CYTHON_VECTORCALL && __PYX_LIMITED_VERSION_HEX >= 0x030C0000)
9897
+ #if !(CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000)))
9883
9898
  static PyObject* __Pyx__PyObject_CallMethod1(PyObject* method, PyObject* arg) {
9884
9899
  PyObject *result = __Pyx_PyObject_CallOneArg(method, arg);
9885
9900
  Py_DECREF(method);
@@ -9887,7 +9902,7 @@ static PyObject* __Pyx__PyObject_CallMethod1(PyObject* method, PyObject* arg) {
9887
9902
  }
9888
9903
  #endif
9889
9904
  static PyObject* __Pyx_PyObject_CallMethod1(PyObject* obj, PyObject* method_name, PyObject* arg) {
9890
- #if CYTHON_VECTORCALL && __PYX_LIMITED_VERSION_HEX >= 0x030C0000
9905
+ #if CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000))
9891
9906
  PyObject *args[2] = {obj, arg};
9892
9907
  (void) __Pyx_PyObject_GetMethod;
9893
9908
  (void) __Pyx_PyObject_CallOneArg;
@@ -11089,9 +11104,9 @@ bad:
11089
11104
  }
11090
11105
 
11091
11106
  /* VoidPtrImport */
11092
- #ifndef __PYX_HAVE_RT_ImportVoidPtr_3_1_2
11093
- #define __PYX_HAVE_RT_ImportVoidPtr_3_1_2
11094
- static int __Pyx_ImportVoidPtr_3_1_2(PyObject *module, const char *name, void **p, const char *sig) {
11107
+ #ifndef __PYX_HAVE_RT_ImportVoidPtr_3_1_3
11108
+ #define __PYX_HAVE_RT_ImportVoidPtr_3_1_3
11109
+ static int __Pyx_ImportVoidPtr_3_1_3(PyObject *module, const char *name, void **p, const char *sig) {
11095
11110
  PyObject *d = 0;
11096
11111
  PyObject *cobj = 0;
11097
11112
  d = PyObject_GetAttrString(module, "__pyx_capi__");
@@ -11129,9 +11144,9 @@ bad:
11129
11144
  #endif
11130
11145
 
11131
11146
  /* FunctionImport */
11132
- #ifndef __PYX_HAVE_RT_ImportFunction_3_1_2
11133
- #define __PYX_HAVE_RT_ImportFunction_3_1_2
11134
- static int __Pyx_ImportFunction_3_1_2(PyObject *module, const char *funcname, void (**f)(void), const char *sig) {
11147
+ #ifndef __PYX_HAVE_RT_ImportFunction_3_1_3
11148
+ #define __PYX_HAVE_RT_ImportFunction_3_1_3
11149
+ static int __Pyx_ImportFunction_3_1_3(PyObject *module, const char *funcname, void (**f)(void), const char *sig) {
11135
11150
  PyObject *d = 0;
11136
11151
  PyObject *cobj = 0;
11137
11152
  union {
Binary file
a_sync/a_sync/abstract.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
  {
@@ -29,8 +29,8 @@ END: Cython Metadata */
29
29
  #elif PY_VERSION_HEX < 0x03080000
30
30
  #error Cython requires Python 3.8+.
31
31
  #else
32
- #define __PYX_ABI_VERSION "3_1_2"
33
- #define CYTHON_HEX_VERSION 0x030102F0
32
+ #define __PYX_ABI_VERSION "3_1_3"
33
+ #define CYTHON_HEX_VERSION 0x030103F0
34
34
  #define CYTHON_FUTURE_DIVISION 1
35
35
  /* CModulePreamble */
36
36
  #include <stddef.h>
@@ -393,6 +393,9 @@ END: Cython Metadata */
393
393
  enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P == sizeof(void*)) };
394
394
  #endif
395
395
  #endif
396
+ #ifndef CYTHON_LOCK_AND_GIL_DEADLOCK_AVOIDANCE_TIME
397
+ #define CYTHON_LOCK_AND_GIL_DEADLOCK_AVOIDANCE_TIME 100
398
+ #endif
396
399
  #ifndef __has_attribute
397
400
  #define __has_attribute(x) 0
398
401
  #endif
@@ -2735,7 +2738,7 @@ static unsigned long __Pyx_get_runtime_version(void);
2735
2738
  static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt_version, int allow_newer);
2736
2739
 
2737
2740
  /* FunctionImport.proto */
2738
- static int __Pyx_ImportFunction_3_1_2(PyObject *module, const char *funcname, void (**f)(void), const char *sig);
2741
+ static int __Pyx_ImportFunction_3_1_3(PyObject *module, const char *funcname, void (**f)(void), const char *sig);
2739
2742
 
2740
2743
  /* MultiPhaseInitModuleState.proto */
2741
2744
  #if CYTHON_PEP489_MULTI_PHASE_INIT && CYTHON_USE_MODULE_STATE
@@ -5617,12 +5620,12 @@ static int __Pyx_modinit_function_import_code(__pyx_mstatetype *__pyx_mstate) {
5617
5620
  /*--- Function import code ---*/
5618
5621
  __pyx_t_1 = PyImport_ImportModule("a_sync.a_sync._kwargs"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
5619
5622
  __Pyx_GOTREF(__pyx_t_1);
5620
- if (__Pyx_ImportFunction_3_1_2(__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)
5621
- if (__Pyx_ImportFunction_3_1_2(__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)
5623
+ if (__Pyx_ImportFunction_3_1_3(__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)
5624
+ if (__Pyx_ImportFunction_3_1_3(__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)
5622
5625
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
5623
5626
  __pyx_t_1 = PyImport_ImportModule("a_sync.a_sync._flags"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
5624
5627
  __Pyx_GOTREF(__pyx_t_1);
5625
- if (__Pyx_ImportFunction_3_1_2(__pyx_t_1, "validate_and_negate_if_necessary", (void (**)(void))&__pyx_f_6a_sync_6a_sync_6_flags_validate_and_negate_if_necessary, "int (PyObject *, PyObject *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
5628
+ if (__Pyx_ImportFunction_3_1_3(__pyx_t_1, "validate_and_negate_if_necessary", (void (**)(void))&__pyx_f_6a_sync_6a_sync_6_flags_validate_and_negate_if_necessary, "int (PyObject *, PyObject *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
5626
5629
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
5627
5630
  __Pyx_RefNannyFinishContext();
5628
5631
  return 0;
@@ -8769,6 +8772,7 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
8769
8772
  changed = 1;
8770
8773
  }
8771
8774
  #endif // CYTHON_METH_FASTCALL
8775
+ #if !CYTHON_COMPILING_IN_PYPY
8772
8776
  else if (strcmp(memb->name, "__module__") == 0) {
8773
8777
  PyObject *descr;
8774
8778
  assert(memb->type == T_OBJECT);
@@ -8783,11 +8787,13 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
8783
8787
  }
8784
8788
  changed = 1;
8785
8789
  }
8790
+ #endif // !CYTHON_COMPILING_IN_PYPY
8786
8791
  }
8787
8792
  memb++;
8788
8793
  }
8789
8794
  }
8790
8795
  #endif // !CYTHON_COMPILING_IN_LIMITED_API
8796
+ #if !CYTHON_COMPILING_IN_PYPY
8791
8797
  slot = spec->slots;
8792
8798
  while (slot && slot->slot && slot->slot != Py_tp_getset)
8793
8799
  slot++;
@@ -8819,6 +8825,7 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
8819
8825
  ++getset;
8820
8826
  }
8821
8827
  }
8828
+ #endif // !CYTHON_COMPILING_IN_PYPY
8822
8829
  if (changed)
8823
8830
  PyType_Modified(type);
8824
8831
  #endif // PY_VERSION_HEX > 0x030900B1
@@ -8951,7 +8958,7 @@ bad:
8951
8958
  }
8952
8959
 
8953
8960
  /* CommonTypesMetaclass */
8954
- PyObject* __pyx_CommonTypesMetaclass_get_module(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED void* context) {
8961
+ static PyObject* __pyx_CommonTypesMetaclass_get_module(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED void* context) {
8955
8962
  return PyUnicode_FromString(__PYX_ABI_MODULE_NAME);
8956
8963
  }
8957
8964
  static PyGetSetDef __pyx_CommonTypesMetaclass_getset[] = {
@@ -11470,9 +11477,9 @@ static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt
11470
11477
  }
11471
11478
 
11472
11479
  /* FunctionImport */
11473
- #ifndef __PYX_HAVE_RT_ImportFunction_3_1_2
11474
- #define __PYX_HAVE_RT_ImportFunction_3_1_2
11475
- static int __Pyx_ImportFunction_3_1_2(PyObject *module, const char *funcname, void (**f)(void), const char *sig) {
11480
+ #ifndef __PYX_HAVE_RT_ImportFunction_3_1_3
11481
+ #define __PYX_HAVE_RT_ImportFunction_3_1_3
11482
+ static int __Pyx_ImportFunction_3_1_3(PyObject *module, const char *funcname, void (**f)(void), const char *sig) {
11476
11483
  PyObject *d = 0;
11477
11484
  PyObject *cobj = 0;
11478
11485
  union {
Binary file