ez-a-sync 0.32.26__cp39-cp39-win_amd64.whl → 0.32.27__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 (66) hide show
  1. a_sync/_smart.c +53 -39
  2. a_sync/_smart.cp39-win_amd64.pyd +0 -0
  3. a_sync/a_sync/_descriptor.c +64 -49
  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 +62 -47
  8. a_sync/a_sync/_helpers.cp39-win_amd64.pyd +0 -0
  9. a_sync/a_sync/_kwargs.c +33 -18
  10. a_sync/a_sync/_kwargs.cp39-win_amd64.pyd +0 -0
  11. a_sync/a_sync/abstract.c +18 -11
  12. a_sync/a_sync/abstract.cp39-win_amd64.pyd +0 -0
  13. a_sync/a_sync/base.c +177 -163
  14. a_sync/a_sync/base.cp39-win_amd64.pyd +0 -0
  15. a_sync/a_sync/flags.c +6 -3
  16. a_sync/a_sync/flags.cp39-win_amd64.pyd +0 -0
  17. a_sync/a_sync/function.c +89 -75
  18. a_sync/a_sync/function.cp39-win_amd64.pyd +0 -0
  19. a_sync/a_sync/method.c +135 -121
  20. a_sync/a_sync/method.cp39-win_amd64.pyd +0 -0
  21. a_sync/a_sync/modifiers/manager.c +55 -41
  22. a_sync/a_sync/modifiers/manager.cp39-win_amd64.pyd +0 -0
  23. a_sync/a_sync/property.c +82 -67
  24. a_sync/a_sync/property.cp39-win_amd64.pyd +0 -0
  25. a_sync/async_property/cached.c +57 -42
  26. a_sync/async_property/cached.cp39-win_amd64.pyd +0 -0
  27. a_sync/async_property/proxy.c +24 -9
  28. a_sync/async_property/proxy.cp39-win_amd64.pyd +0 -0
  29. a_sync/asyncio/as_completed.c +21 -6
  30. a_sync/asyncio/as_completed.cp39-win_amd64.pyd +0 -0
  31. a_sync/asyncio/create_task.c +32 -18
  32. a_sync/asyncio/create_task.cp39-win_amd64.pyd +0 -0
  33. a_sync/asyncio/gather.c +30 -15
  34. a_sync/asyncio/gather.cp39-win_amd64.pyd +0 -0
  35. a_sync/asyncio/igather.c +33 -19
  36. a_sync/asyncio/igather.cp39-win_amd64.pyd +0 -0
  37. a_sync/asyncio/sleep.c +19 -4
  38. a_sync/asyncio/sleep.cp39-win_amd64.pyd +0 -0
  39. a_sync/debugging.c +54 -40
  40. a_sync/debugging.cp39-win_amd64.pyd +0 -0
  41. a_sync/exceptions.c +18 -11
  42. a_sync/exceptions.cp39-win_amd64.pyd +0 -0
  43. a_sync/executor.py +44 -0
  44. a_sync/functools.c +24 -9
  45. a_sync/functools.cp39-win_amd64.pyd +0 -0
  46. a_sync/iter.c +95 -81
  47. a_sync/iter.cp39-win_amd64.pyd +0 -0
  48. a_sync/primitives/_debug.c +55 -40
  49. a_sync/primitives/_debug.cp39-win_amd64.pyd +0 -0
  50. a_sync/primitives/_loggable.c +25 -10
  51. a_sync/primitives/_loggable.cp39-win_amd64.pyd +0 -0
  52. a_sync/primitives/locks/counter.c +79 -65
  53. a_sync/primitives/locks/counter.cp39-win_amd64.pyd +0 -0
  54. a_sync/primitives/locks/event.c +70 -55
  55. a_sync/primitives/locks/event.cp39-win_amd64.pyd +0 -0
  56. a_sync/primitives/locks/prio_semaphore.c +91 -77
  57. a_sync/primitives/locks/prio_semaphore.cp39-win_amd64.pyd +0 -0
  58. a_sync/primitives/locks/semaphore.c +77 -63
  59. a_sync/primitives/locks/semaphore.cp39-win_amd64.pyd +0 -0
  60. a_sync/utils/repr.c +50 -36
  61. a_sync/utils/repr.cp39-win_amd64.pyd +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
@@ -4771,8 +4774,8 @@ static CYTHON_INLINE void __pyx_f_6a_sync_7asyncio_11create_task___set_task_name
4771
4774
  __Pyx_TraceLine(147,5,0,__PYX_ERR(0, 147, __pyx_L1_error))
4772
4775
  __pyx_t_1 = __Pyx_GetAttr3(__pyx_v_task, __pyx_mstate_global->__pyx_n_u_set_name, Py_None); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 147, __pyx_L1_error)
4773
4776
  __Pyx_GOTREF(__pyx_t_1);
4774
- __pyx_v_set_name = __pyx_t_1;
4775
4777
  __Pyx_INCREF(__pyx_t_1);
4778
+ __pyx_v_set_name = __pyx_t_1;
4776
4779
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 < 0))) __PYX_ERR(0, 147, __pyx_L1_error)
4777
4780
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
4778
4781
  if (__pyx_t_2) {
@@ -5011,8 +5014,8 @@ static PyObject *__pyx_pf_6a_sync_7asyncio_11create_task_2_persisted_task_callba
5011
5014
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 164, __pyx_L1_error)
5012
5015
  __Pyx_GOTREF(__pyx_t_1);
5013
5016
  }
5014
- __pyx_v_exc = __pyx_t_1;
5015
5017
  __Pyx_INCREF(__pyx_t_1);
5018
+ __pyx_v_exc = __pyx_t_1;
5016
5019
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_4 < 0))) __PYX_ERR(0, 164, __pyx_L1_error)
5017
5020
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
5018
5021
  if (__pyx_t_4) {
@@ -8150,16 +8153,15 @@ static int __Pyx_InitConstants(__pyx_mstatetype *__pyx_mstate) {
8150
8153
  return -1;
8151
8154
  }
8152
8155
  /* #### Code section: init_codeobjects ### */
8153
- \
8154
- typedef struct {
8155
- unsigned int argcount : 3;
8156
- unsigned int num_posonly_args : 1;
8157
- unsigned int num_kwonly_args : 2;
8158
- unsigned int nlocals : 5;
8159
- unsigned int flags : 10;
8160
- unsigned int first_line : 9;
8161
- unsigned int line_table_length : 13;
8162
- } __Pyx_PyCode_New_function_description;
8156
+ typedef struct {
8157
+ unsigned int argcount : 3;
8158
+ unsigned int num_posonly_args : 1;
8159
+ unsigned int num_kwonly_args : 2;
8160
+ unsigned int nlocals : 5;
8161
+ unsigned int flags : 10;
8162
+ unsigned int first_line : 9;
8163
+ unsigned int line_table_length : 13;
8164
+ } __Pyx_PyCode_New_function_description;
8163
8165
  /* NewCodeObj.proto */
8164
8166
  static PyObject* __Pyx_PyCode_New(
8165
8167
  const __Pyx_PyCode_New_function_description descr,
@@ -10273,6 +10275,7 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
10273
10275
  changed = 1;
10274
10276
  }
10275
10277
  #endif // CYTHON_METH_FASTCALL
10278
+ #if !CYTHON_COMPILING_IN_PYPY
10276
10279
  else if (strcmp(memb->name, "__module__") == 0) {
10277
10280
  PyObject *descr;
10278
10281
  assert(memb->type == T_OBJECT);
@@ -10287,11 +10290,13 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
10287
10290
  }
10288
10291
  changed = 1;
10289
10292
  }
10293
+ #endif // !CYTHON_COMPILING_IN_PYPY
10290
10294
  }
10291
10295
  memb++;
10292
10296
  }
10293
10297
  }
10294
10298
  #endif // !CYTHON_COMPILING_IN_LIMITED_API
10299
+ #if !CYTHON_COMPILING_IN_PYPY
10295
10300
  slot = spec->slots;
10296
10301
  while (slot && slot->slot && slot->slot != Py_tp_getset)
10297
10302
  slot++;
@@ -10323,6 +10328,7 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
10323
10328
  ++getset;
10324
10329
  }
10325
10330
  }
10331
+ #endif // !CYTHON_COMPILING_IN_PYPY
10326
10332
  if (changed)
10327
10333
  PyType_Modified(type);
10328
10334
  #endif // PY_VERSION_HEX > 0x030900B1
@@ -10455,7 +10461,7 @@ bad:
10455
10461
  }
10456
10462
 
10457
10463
  /* CommonTypesMetaclass */
10458
- PyObject* __pyx_CommonTypesMetaclass_get_module(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED void* context) {
10464
+ static PyObject* __pyx_CommonTypesMetaclass_get_module(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED void* context) {
10459
10465
  return PyUnicode_FromString(__PYX_ABI_MODULE_NAME);
10460
10466
  }
10461
10467
  static PyGetSetDef __pyx_CommonTypesMetaclass_getset[] = {
@@ -10771,7 +10777,7 @@ try_unpack:
10771
10777
  }
10772
10778
 
10773
10779
  /* PyObjectCallMethod1 */
10774
- #if !(CYTHON_VECTORCALL && __PYX_LIMITED_VERSION_HEX >= 0x030C0000)
10780
+ #if !(CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000)))
10775
10781
  static PyObject* __Pyx__PyObject_CallMethod1(PyObject* method, PyObject* arg) {
10776
10782
  PyObject *result = __Pyx_PyObject_CallOneArg(method, arg);
10777
10783
  Py_DECREF(method);
@@ -10779,7 +10785,7 @@ static PyObject* __Pyx__PyObject_CallMethod1(PyObject* method, PyObject* arg) {
10779
10785
  }
10780
10786
  #endif
10781
10787
  static PyObject* __Pyx_PyObject_CallMethod1(PyObject* obj, PyObject* method_name, PyObject* arg) {
10782
- #if CYTHON_VECTORCALL && __PYX_LIMITED_VERSION_HEX >= 0x030C0000
10788
+ #if CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000))
10783
10789
  PyObject *args[2] = {obj, arg};
10784
10790
  (void) __Pyx_PyObject_GetMethod;
10785
10791
  (void) __Pyx_PyObject_CallOneArg;
@@ -12428,6 +12434,13 @@ static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i,
12428
12434
 
12429
12435
  /* PyObjectCallMethod0 */
12430
12436
  static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name) {
12437
+ #if CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000))
12438
+ PyObject *args[1] = {obj};
12439
+ (void) __Pyx_PyObject_GetMethod;
12440
+ (void) __Pyx_PyObject_CallOneArg;
12441
+ (void) __Pyx_PyObject_CallNoArg;
12442
+ return PyObject_VectorcallMethod(method_name, args, 1 | PY_VECTORCALL_ARGUMENTS_OFFSET, NULL);
12443
+ #else
12431
12444
  PyObject *method = NULL, *result = NULL;
12432
12445
  int is_method = __Pyx_PyObject_GetMethod(obj, method_name, &method);
12433
12446
  if (likely(is_method)) {
@@ -12440,6 +12453,7 @@ static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i,
12440
12453
  Py_DECREF(method);
12441
12454
  bad:
12442
12455
  return result;
12456
+ #endif
12443
12457
  }
12444
12458
 
12445
12459
  /* ValidateBasesTuple */
a_sync/asyncio/gather.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
@@ -3020,7 +3023,7 @@ static unsigned long __Pyx_get_runtime_version(void);
3020
3023
  static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt_version, int allow_newer);
3021
3024
 
3022
3025
  /* FunctionImport.proto */
3023
- static int __Pyx_ImportFunction_3_1_2(PyObject *module, const char *funcname, void (**f)(void), const char *sig);
3026
+ static int __Pyx_ImportFunction_3_1_3(PyObject *module, const char *funcname, void (**f)(void), const char *sig);
3024
3027
 
3025
3028
  /* MultiPhaseInitModuleState.proto */
3026
3029
  #if CYTHON_PEP489_MULTI_PHASE_INIT && CYTHON_USE_MODULE_STATE
@@ -7376,20 +7379,20 @@ static int __Pyx_modinit_function_import_code(__pyx_mstatetype *__pyx_mstate) {
7376
7379
  /*--- Function import code ---*/
7377
7380
  __pyx_t_1 = PyImport_ImportModule("a_sync.a_sync._helpers"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
7378
7381
  __Pyx_GOTREF(__pyx_t_1);
7379
- 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)
7382
+ if (__Pyx_ImportFunction_3_1_3(__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)
7380
7383
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7381
7384
  __pyx_t_1 = PyImport_ImportModule("a_sync.asyncio.as_completed"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
7382
7385
  __Pyx_GOTREF(__pyx_t_1);
7383
- 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)
7386
+ if (__Pyx_ImportFunction_3_1_3(__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)
7384
7387
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7385
7388
  __pyx_t_1 = PyImport_ImportModule("a_sync.asyncio.create_task"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
7386
7389
  __Pyx_GOTREF(__pyx_t_1);
7387
- 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)
7388
- 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)
7390
+ if (__Pyx_ImportFunction_3_1_3(__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)
7391
+ if (__Pyx_ImportFunction_3_1_3(__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)
7389
7392
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7390
7393
  __pyx_t_1 = PyImport_ImportModule("a_sync.asyncio.igather"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
7391
7394
  __Pyx_GOTREF(__pyx_t_1);
7392
- 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)
7395
+ if (__Pyx_ImportFunction_3_1_3(__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)
7393
7396
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7394
7397
  __Pyx_RefNannyFinishContext();
7395
7398
  return 0;
@@ -10412,6 +10415,13 @@ try_unpack:
10412
10415
 
10413
10416
  /* PyObjectCallMethod0 */
10414
10417
  static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name) {
10418
+ #if CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000))
10419
+ PyObject *args[1] = {obj};
10420
+ (void) __Pyx_PyObject_GetMethod;
10421
+ (void) __Pyx_PyObject_CallOneArg;
10422
+ (void) __Pyx_PyObject_CallNoArg;
10423
+ return PyObject_VectorcallMethod(method_name, args, 1 | PY_VECTORCALL_ARGUMENTS_OFFSET, NULL);
10424
+ #else
10415
10425
  PyObject *method = NULL, *result = NULL;
10416
10426
  int is_method = __Pyx_PyObject_GetMethod(obj, method_name, &method);
10417
10427
  if (likely(is_method)) {
@@ -10424,6 +10434,7 @@ static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name
10424
10434
  Py_DECREF(method);
10425
10435
  bad:
10426
10436
  return result;
10437
+ #endif
10427
10438
  }
10428
10439
 
10429
10440
  /* RaiseNeedMoreValuesToUnpack */
@@ -10912,6 +10923,7 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
10912
10923
  changed = 1;
10913
10924
  }
10914
10925
  #endif // CYTHON_METH_FASTCALL
10926
+ #if !CYTHON_COMPILING_IN_PYPY
10915
10927
  else if (strcmp(memb->name, "__module__") == 0) {
10916
10928
  PyObject *descr;
10917
10929
  assert(memb->type == T_OBJECT);
@@ -10926,11 +10938,13 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
10926
10938
  }
10927
10939
  changed = 1;
10928
10940
  }
10941
+ #endif // !CYTHON_COMPILING_IN_PYPY
10929
10942
  }
10930
10943
  memb++;
10931
10944
  }
10932
10945
  }
10933
10946
  #endif // !CYTHON_COMPILING_IN_LIMITED_API
10947
+ #if !CYTHON_COMPILING_IN_PYPY
10934
10948
  slot = spec->slots;
10935
10949
  while (slot && slot->slot && slot->slot != Py_tp_getset)
10936
10950
  slot++;
@@ -10962,6 +10976,7 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
10962
10976
  ++getset;
10963
10977
  }
10964
10978
  }
10979
+ #endif // !CYTHON_COMPILING_IN_PYPY
10965
10980
  if (changed)
10966
10981
  PyType_Modified(type);
10967
10982
  #endif // PY_VERSION_HEX > 0x030900B1
@@ -11094,7 +11109,7 @@ bad:
11094
11109
  }
11095
11110
 
11096
11111
  /* CommonTypesMetaclass */
11097
- PyObject* __pyx_CommonTypesMetaclass_get_module(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED void* context) {
11112
+ static PyObject* __pyx_CommonTypesMetaclass_get_module(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED void* context) {
11098
11113
  return PyUnicode_FromString(__PYX_ABI_MODULE_NAME);
11099
11114
  }
11100
11115
  static PyGetSetDef __pyx_CommonTypesMetaclass_getset[] = {
@@ -11314,7 +11329,7 @@ static CYTHON_INLINE PyObject* __Pyx_PyObject_Call2Args(PyObject* function, PyOb
11314
11329
  }
11315
11330
 
11316
11331
  /* PyObjectCallMethod1 */
11317
- #if !(CYTHON_VECTORCALL && __PYX_LIMITED_VERSION_HEX >= 0x030C0000)
11332
+ #if !(CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000)))
11318
11333
  static PyObject* __Pyx__PyObject_CallMethod1(PyObject* method, PyObject* arg) {
11319
11334
  PyObject *result = __Pyx_PyObject_CallOneArg(method, arg);
11320
11335
  Py_DECREF(method);
@@ -11322,7 +11337,7 @@ static PyObject* __Pyx__PyObject_CallMethod1(PyObject* method, PyObject* arg) {
11322
11337
  }
11323
11338
  #endif
11324
11339
  static PyObject* __Pyx_PyObject_CallMethod1(PyObject* obj, PyObject* method_name, PyObject* arg) {
11325
- #if CYTHON_VECTORCALL && __PYX_LIMITED_VERSION_HEX >= 0x030C0000
11340
+ #if CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000))
11326
11341
  PyObject *args[2] = {obj, arg};
11327
11342
  (void) __Pyx_PyObject_GetMethod;
11328
11343
  (void) __Pyx_PyObject_CallOneArg;
@@ -15611,9 +15626,9 @@ static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObj
15611
15626
  }
15612
15627
 
15613
15628
  /* FunctionImport */
15614
- #ifndef __PYX_HAVE_RT_ImportFunction_3_1_2
15615
- #define __PYX_HAVE_RT_ImportFunction_3_1_2
15616
- static int __Pyx_ImportFunction_3_1_2(PyObject *module, const char *funcname, void (**f)(void), const char *sig) {
15629
+ #ifndef __PYX_HAVE_RT_ImportFunction_3_1_3
15630
+ #define __PYX_HAVE_RT_ImportFunction_3_1_3
15631
+ static int __Pyx_ImportFunction_3_1_3(PyObject *module, const char *funcname, void (**f)(void), const char *sig) {
15617
15632
  PyObject *d = 0;
15618
15633
  PyObject *cobj = 0;
15619
15634
  union {
Binary file
a_sync/asyncio/igather.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
@@ -2774,7 +2777,7 @@ static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt
2774
2777
  static int __Pyx_ExportFunction(const char *name, void (*f)(void), const char *sig);
2775
2778
 
2776
2779
  /* FunctionImport.proto */
2777
- static int __Pyx_ImportFunction_3_1_2(PyObject *module, const char *funcname, void (**f)(void), const char *sig);
2780
+ static int __Pyx_ImportFunction_3_1_3(PyObject *module, const char *funcname, void (**f)(void), const char *sig);
2778
2781
 
2779
2782
  /* MultiPhaseInitModuleState.proto */
2780
2783
  #if CYTHON_PEP489_MULTI_PHASE_INIT && CYTHON_USE_MODULE_STATE
@@ -5971,7 +5974,7 @@ static int __Pyx_modinit_function_import_code(__pyx_mstatetype *__pyx_mstate) {
5971
5974
  /*--- Function import code ---*/
5972
5975
  __pyx_t_1 = PyImport_ImportModule("a_sync.a_sync._helpers"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
5973
5976
  __Pyx_GOTREF(__pyx_t_1);
5974
- 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)
5977
+ if (__Pyx_ImportFunction_3_1_3(__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)
5975
5978
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
5976
5979
  __Pyx_RefNannyFinishContext();
5977
5980
  return 0;
@@ -6745,16 +6748,15 @@ static int __Pyx_InitConstants(__pyx_mstatetype *__pyx_mstate) {
6745
6748
  return -1;
6746
6749
  }
6747
6750
  /* #### Code section: init_codeobjects ### */
6748
- \
6749
- typedef struct {
6750
- unsigned int argcount : 2;
6751
- unsigned int num_posonly_args : 1;
6752
- unsigned int num_kwonly_args : 1;
6753
- unsigned int nlocals : 4;
6754
- unsigned int flags : 10;
6755
- unsigned int first_line : 8;
6756
- unsigned int line_table_length : 13;
6757
- } __Pyx_PyCode_New_function_description;
6751
+ typedef struct {
6752
+ unsigned int argcount : 2;
6753
+ unsigned int num_posonly_args : 1;
6754
+ unsigned int num_kwonly_args : 1;
6755
+ unsigned int nlocals : 4;
6756
+ unsigned int flags : 10;
6757
+ unsigned int first_line : 8;
6758
+ unsigned int line_table_length : 13;
6759
+ } __Pyx_PyCode_New_function_description;
6758
6760
  /* NewCodeObj.proto */
6759
6761
  static PyObject* __Pyx_PyCode_New(
6760
6762
  const __Pyx_PyCode_New_function_description descr,
@@ -8264,6 +8266,7 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
8264
8266
  changed = 1;
8265
8267
  }
8266
8268
  #endif // CYTHON_METH_FASTCALL
8269
+ #if !CYTHON_COMPILING_IN_PYPY
8267
8270
  else if (strcmp(memb->name, "__module__") == 0) {
8268
8271
  PyObject *descr;
8269
8272
  assert(memb->type == T_OBJECT);
@@ -8278,11 +8281,13 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
8278
8281
  }
8279
8282
  changed = 1;
8280
8283
  }
8284
+ #endif // !CYTHON_COMPILING_IN_PYPY
8281
8285
  }
8282
8286
  memb++;
8283
8287
  }
8284
8288
  }
8285
8289
  #endif // !CYTHON_COMPILING_IN_LIMITED_API
8290
+ #if !CYTHON_COMPILING_IN_PYPY
8286
8291
  slot = spec->slots;
8287
8292
  while (slot && slot->slot && slot->slot != Py_tp_getset)
8288
8293
  slot++;
@@ -8314,6 +8319,7 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
8314
8319
  ++getset;
8315
8320
  }
8316
8321
  }
8322
+ #endif // !CYTHON_COMPILING_IN_PYPY
8317
8323
  if (changed)
8318
8324
  PyType_Modified(type);
8319
8325
  #endif // PY_VERSION_HEX > 0x030900B1
@@ -8446,7 +8452,7 @@ bad:
8446
8452
  }
8447
8453
 
8448
8454
  /* CommonTypesMetaclass */
8449
- PyObject* __pyx_CommonTypesMetaclass_get_module(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED void* context) {
8455
+ static PyObject* __pyx_CommonTypesMetaclass_get_module(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED void* context) {
8450
8456
  return PyUnicode_FromString(__PYX_ABI_MODULE_NAME);
8451
8457
  }
8452
8458
  static PyGetSetDef __pyx_CommonTypesMetaclass_getset[] = {
@@ -9759,6 +9765,13 @@ try_unpack:
9759
9765
 
9760
9766
  /* PyObjectCallMethod0 */
9761
9767
  static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name) {
9768
+ #if CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000))
9769
+ PyObject *args[1] = {obj};
9770
+ (void) __Pyx_PyObject_GetMethod;
9771
+ (void) __Pyx_PyObject_CallOneArg;
9772
+ (void) __Pyx_PyObject_CallNoArg;
9773
+ return PyObject_VectorcallMethod(method_name, args, 1 | PY_VECTORCALL_ARGUMENTS_OFFSET, NULL);
9774
+ #else
9762
9775
  PyObject *method = NULL, *result = NULL;
9763
9776
  int is_method = __Pyx_PyObject_GetMethod(obj, method_name, &method);
9764
9777
  if (likely(is_method)) {
@@ -9771,6 +9784,7 @@ static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name
9771
9784
  Py_DECREF(method);
9772
9785
  bad:
9773
9786
  return result;
9787
+ #endif
9774
9788
  }
9775
9789
 
9776
9790
  /* RaiseNeedMoreValuesToUnpack */
@@ -11806,9 +11820,9 @@ bad:
11806
11820
  }
11807
11821
 
11808
11822
  /* FunctionImport */
11809
- #ifndef __PYX_HAVE_RT_ImportFunction_3_1_2
11810
- #define __PYX_HAVE_RT_ImportFunction_3_1_2
11811
- static int __Pyx_ImportFunction_3_1_2(PyObject *module, const char *funcname, void (**f)(void), const char *sig) {
11823
+ #ifndef __PYX_HAVE_RT_ImportFunction_3_1_3
11824
+ #define __PYX_HAVE_RT_ImportFunction_3_1_3
11825
+ static int __Pyx_ImportFunction_3_1_3(PyObject *module, const char *funcname, void (**f)(void), const char *sig) {
11812
11826
  PyObject *d = 0;
11813
11827
  PyObject *cobj = 0;
11814
11828
  union {
Binary file
a_sync/asyncio/sleep.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
@@ -5666,6 +5669,7 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
5666
5669
  changed = 1;
5667
5670
  }
5668
5671
  #endif // CYTHON_METH_FASTCALL
5672
+ #if !CYTHON_COMPILING_IN_PYPY
5669
5673
  else if (strcmp(memb->name, "__module__") == 0) {
5670
5674
  PyObject *descr;
5671
5675
  assert(memb->type == T_OBJECT);
@@ -5680,11 +5684,13 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
5680
5684
  }
5681
5685
  changed = 1;
5682
5686
  }
5687
+ #endif // !CYTHON_COMPILING_IN_PYPY
5683
5688
  }
5684
5689
  memb++;
5685
5690
  }
5686
5691
  }
5687
5692
  #endif // !CYTHON_COMPILING_IN_LIMITED_API
5693
+ #if !CYTHON_COMPILING_IN_PYPY
5688
5694
  slot = spec->slots;
5689
5695
  while (slot && slot->slot && slot->slot != Py_tp_getset)
5690
5696
  slot++;
@@ -5716,6 +5722,7 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
5716
5722
  ++getset;
5717
5723
  }
5718
5724
  }
5725
+ #endif // !CYTHON_COMPILING_IN_PYPY
5719
5726
  if (changed)
5720
5727
  PyType_Modified(type);
5721
5728
  #endif // PY_VERSION_HEX > 0x030900B1
@@ -5826,6 +5833,13 @@ try_unpack:
5826
5833
 
5827
5834
  /* PyObjectCallMethod0 */
5828
5835
  static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name) {
5836
+ #if CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000))
5837
+ PyObject *args[1] = {obj};
5838
+ (void) __Pyx_PyObject_GetMethod;
5839
+ (void) __Pyx_PyObject_CallOneArg;
5840
+ (void) __Pyx_PyObject_CallNoArg;
5841
+ return PyObject_VectorcallMethod(method_name, args, 1 | PY_VECTORCALL_ARGUMENTS_OFFSET, NULL);
5842
+ #else
5829
5843
  PyObject *method = NULL, *result = NULL;
5830
5844
  int is_method = __Pyx_PyObject_GetMethod(obj, method_name, &method);
5831
5845
  if (likely(is_method)) {
@@ -5838,6 +5852,7 @@ static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name
5838
5852
  Py_DECREF(method);
5839
5853
  bad:
5840
5854
  return result;
5855
+ #endif
5841
5856
  }
5842
5857
 
5843
5858
  /* ValidateBasesTuple */
@@ -6405,7 +6420,7 @@ bad:
6405
6420
  }
6406
6421
 
6407
6422
  /* CommonTypesMetaclass */
6408
- PyObject* __pyx_CommonTypesMetaclass_get_module(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED void* context) {
6423
+ static PyObject* __pyx_CommonTypesMetaclass_get_module(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED void* context) {
6409
6424
  return PyUnicode_FromString(__PYX_ABI_MODULE_NAME);
6410
6425
  }
6411
6426
  static PyGetSetDef __pyx_CommonTypesMetaclass_getset[] = {
Binary file