ez-a-sync 0.32.26__cp311-cp311-win32.whl → 0.32.27__cp311-cp311-win32.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of ez-a-sync might be problematic. Click here for more details.

Files changed (66) hide show
  1. a_sync/_smart.c +44 -29
  2. a_sync/_smart.cp311-win32.pyd +0 -0
  3. a_sync/a_sync/_descriptor.c +69 -54
  4. a_sync/a_sync/_descriptor.cp311-win32.pyd +0 -0
  5. a_sync/a_sync/_flags.c +13 -10
  6. a_sync/a_sync/_flags.cp311-win32.pyd +0 -0
  7. a_sync/a_sync/_helpers.c +62 -47
  8. a_sync/a_sync/_helpers.cp311-win32.pyd +0 -0
  9. a_sync/a_sync/_kwargs.c +33 -18
  10. a_sync/a_sync/_kwargs.cp311-win32.pyd +0 -0
  11. a_sync/a_sync/abstract.c +18 -11
  12. a_sync/a_sync/abstract.cp311-win32.pyd +0 -0
  13. a_sync/a_sync/base.c +168 -153
  14. a_sync/a_sync/base.cp311-win32.pyd +0 -0
  15. a_sync/a_sync/flags.c +6 -3
  16. a_sync/a_sync/flags.cp311-win32.pyd +0 -0
  17. a_sync/a_sync/function.c +80 -65
  18. a_sync/a_sync/function.cp311-win32.pyd +0 -0
  19. a_sync/a_sync/method.c +122 -107
  20. a_sync/a_sync/method.cp311-win32.pyd +0 -0
  21. a_sync/a_sync/modifiers/manager.c +46 -31
  22. a_sync/a_sync/modifiers/manager.cp311-win32.pyd +0 -0
  23. a_sync/a_sync/property.c +82 -67
  24. a_sync/a_sync/property.cp311-win32.pyd +0 -0
  25. a_sync/async_property/cached.c +52 -37
  26. a_sync/async_property/cached.cp311-win32.pyd +0 -0
  27. a_sync/async_property/proxy.c +25 -10
  28. a_sync/async_property/proxy.cp311-win32.pyd +0 -0
  29. a_sync/asyncio/as_completed.c +21 -6
  30. a_sync/asyncio/as_completed.cp311-win32.pyd +0 -0
  31. a_sync/asyncio/create_task.c +23 -8
  32. a_sync/asyncio/create_task.cp311-win32.pyd +0 -0
  33. a_sync/asyncio/gather.c +30 -15
  34. a_sync/asyncio/gather.cp311-win32.pyd +0 -0
  35. a_sync/asyncio/igather.c +24 -9
  36. a_sync/asyncio/igather.cp311-win32.pyd +0 -0
  37. a_sync/asyncio/sleep.c +19 -4
  38. a_sync/asyncio/sleep.cp311-win32.pyd +0 -0
  39. a_sync/debugging.c +45 -30
  40. a_sync/debugging.cp311-win32.pyd +0 -0
  41. a_sync/exceptions.c +18 -11
  42. a_sync/exceptions.cp311-win32.pyd +0 -0
  43. a_sync/executor.py +44 -0
  44. a_sync/functools.c +24 -9
  45. a_sync/functools.cp311-win32.pyd +0 -0
  46. a_sync/iter.c +85 -70
  47. a_sync/iter.cp311-win32.pyd +0 -0
  48. a_sync/primitives/_debug.c +49 -34
  49. a_sync/primitives/_debug.cp311-win32.pyd +0 -0
  50. a_sync/primitives/_loggable.c +25 -10
  51. a_sync/primitives/_loggable.cp311-win32.pyd +0 -0
  52. a_sync/primitives/locks/counter.c +65 -50
  53. a_sync/primitives/locks/counter.cp311-win32.pyd +0 -0
  54. a_sync/primitives/locks/event.c +61 -45
  55. a_sync/primitives/locks/event.cp311-win32.pyd +0 -0
  56. a_sync/primitives/locks/prio_semaphore.c +82 -67
  57. a_sync/primitives/locks/prio_semaphore.cp311-win32.pyd +0 -0
  58. a_sync/primitives/locks/semaphore.c +72 -57
  59. a_sync/primitives/locks/semaphore.cp311-win32.pyd +0 -0
  60. a_sync/utils/repr.c +41 -26
  61. a_sync/utils/repr.cp311-win32.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
a_sync/a_sync/base.c CHANGED
@@ -1,4 +1,4 @@
1
- /* Generated by Cython 3.1.2 */
1
+ /* Generated by Cython 3.1.3 */
2
2
 
3
3
  /* BEGIN: Cython Metadata
4
4
  {
@@ -30,8 +30,8 @@ END: Cython Metadata */
30
30
  #elif PY_VERSION_HEX < 0x03080000
31
31
  #error Cython requires Python 3.8+.
32
32
  #else
33
- #define __PYX_ABI_VERSION "3_1_2"
34
- #define CYTHON_HEX_VERSION 0x030102F0
33
+ #define __PYX_ABI_VERSION "3_1_3"
34
+ #define CYTHON_HEX_VERSION 0x030103F0
35
35
  #define CYTHON_FUTURE_DIVISION 1
36
36
  /* CModulePreamble */
37
37
  #include <stddef.h>
@@ -394,6 +394,9 @@ END: Cython Metadata */
394
394
  enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P == sizeof(void*)) };
395
395
  #endif
396
396
  #endif
397
+ #ifndef CYTHON_LOCK_AND_GIL_DEADLOCK_AVOIDANCE_TIME
398
+ #define CYTHON_LOCK_AND_GIL_DEADLOCK_AVOIDANCE_TIME 100
399
+ #endif
397
400
  #ifndef __has_attribute
398
401
  #define __has_attribute(x) 0
399
402
  #endif
@@ -2594,22 +2597,22 @@ static CYTHON_INLINE PyObject* __Pyx_PyFrozenSet_New(PyObject* it);
2594
2597
  static CYTHON_INLINE int __Pyx_PySet_ContainsTF(PyObject* key, PyObject* set, int eq);
2595
2598
 
2596
2599
  /* TypeImport.proto */
2597
- #ifndef __PYX_HAVE_RT_ImportType_proto_3_1_2
2598
- #define __PYX_HAVE_RT_ImportType_proto_3_1_2
2600
+ #ifndef __PYX_HAVE_RT_ImportType_proto_3_1_3
2601
+ #define __PYX_HAVE_RT_ImportType_proto_3_1_3
2599
2602
  #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
2600
2603
  #include <stdalign.h>
2601
2604
  #endif
2602
2605
  #if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) || __cplusplus >= 201103L
2603
- #define __PYX_GET_STRUCT_ALIGNMENT_3_1_2(s) alignof(s)
2606
+ #define __PYX_GET_STRUCT_ALIGNMENT_3_1_3(s) alignof(s)
2604
2607
  #else
2605
- #define __PYX_GET_STRUCT_ALIGNMENT_3_1_2(s) sizeof(void*)
2608
+ #define __PYX_GET_STRUCT_ALIGNMENT_3_1_3(s) sizeof(void*)
2606
2609
  #endif
2607
- enum __Pyx_ImportType_CheckSize_3_1_2 {
2608
- __Pyx_ImportType_CheckSize_Error_3_1_2 = 0,
2609
- __Pyx_ImportType_CheckSize_Warn_3_1_2 = 1,
2610
- __Pyx_ImportType_CheckSize_Ignore_3_1_2 = 2
2610
+ enum __Pyx_ImportType_CheckSize_3_1_3 {
2611
+ __Pyx_ImportType_CheckSize_Error_3_1_3 = 0,
2612
+ __Pyx_ImportType_CheckSize_Warn_3_1_3 = 1,
2613
+ __Pyx_ImportType_CheckSize_Ignore_3_1_3 = 2
2611
2614
  };
2612
- 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);
2615
+ 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);
2613
2616
  #endif
2614
2617
 
2615
2618
  /* Import.proto */
@@ -2908,10 +2911,10 @@ static unsigned long __Pyx_get_runtime_version(void);
2908
2911
  static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt_version, int allow_newer);
2909
2912
 
2910
2913
  /* VoidPtrImport.proto */
2911
- static int __Pyx_ImportVoidPtr_3_1_2(PyObject *module, const char *name, void **p, const char *sig);
2914
+ static int __Pyx_ImportVoidPtr_3_1_3(PyObject *module, const char *name, void **p, const char *sig);
2912
2915
 
2913
2916
  /* FunctionImport.proto */
2914
- static int __Pyx_ImportFunction_3_1_2(PyObject *module, const char *funcname, void (**f)(void), const char *sig);
2917
+ static int __Pyx_ImportFunction_3_1_3(PyObject *module, const char *funcname, void (**f)(void), const char *sig);
2915
2918
 
2916
2919
  /* MultiPhaseInitModuleState.proto */
2917
2920
  #if CYTHON_PEP489_MULTI_PHASE_INIT && CYTHON_USE_MODULE_STATE
@@ -4291,18 +4294,18 @@ static PyObject *__pyx_pf_6a_sync_6a_sync_4base_16ASyncGenericBase_4__a_sync_fla
4291
4294
  PyObject *__pyx_t_3 = NULL;
4292
4295
  size_t __pyx_t_4;
4293
4296
  int __pyx_t_5;
4294
- PyObject *__pyx_t_6 = NULL;
4297
+ int __pyx_t_6;
4295
4298
  PyObject *__pyx_t_7 = NULL;
4296
4299
  PyObject *__pyx_t_8 = NULL;
4297
4300
  PyObject *__pyx_t_9 = NULL;
4298
- int __pyx_t_10;
4299
- PyObject *__pyx_t_11 = NULL;
4301
+ PyObject *__pyx_t_10 = NULL;
4302
+ int __pyx_t_11;
4300
4303
  PyObject *__pyx_t_12 = NULL;
4301
4304
  PyObject *__pyx_t_13 = NULL;
4302
4305
  PyObject *__pyx_t_14 = NULL;
4303
- Py_ssize_t __pyx_t_15;
4306
+ PyObject *__pyx_t_15 = NULL;
4304
4307
  Py_ssize_t __pyx_t_16;
4305
- int __pyx_t_17;
4308
+ Py_ssize_t __pyx_t_17;
4306
4309
  int __pyx_t_18;
4307
4310
  int __pyx_lineno = 0;
4308
4311
  const char *__pyx_filename = NULL;
@@ -4343,10 +4346,10 @@ static PyObject *__pyx_pf_6a_sync_6a_sync_4base_16ASyncGenericBase_4__a_sync_fla
4343
4346
  __Pyx_GOTREF(__pyx_t_1);
4344
4347
  }
4345
4348
  __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 128, __pyx_L1_error)
4346
- __pyx_v_debug_logs = __pyx_t_5;
4347
- __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_5 < 0))) __PYX_ERR(0, 128, __pyx_L1_error)
4348
4349
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
4349
- if (__pyx_t_5) {
4350
+ __pyx_v_debug_logs = __pyx_t_5;
4351
+ __pyx_t_6 = __pyx_t_5;
4352
+ if (__pyx_t_6) {
4350
4353
 
4351
4354
  /* "a_sync/a_sync/base.pyx":129
4352
4355
  * cdef bint debug_logs
@@ -4359,11 +4362,11 @@ static PyObject *__pyx_pf_6a_sync_6a_sync_4base_16ASyncGenericBase_4__a_sync_fla
4359
4362
  __pyx_t_3 = NULL;
4360
4363
  __Pyx_INCREF(__pyx_v_6a_sync_6a_sync_4base__logger_log);
4361
4364
  __pyx_t_2 = __pyx_v_6a_sync_6a_sync_4base__logger_log;
4362
- __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 129, __pyx_L1_error)
4363
- __Pyx_GOTREF(__pyx_t_6);
4365
+ __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 129, __pyx_L1_error)
4366
+ __Pyx_GOTREF(__pyx_t_7);
4364
4367
  __Pyx_INCREF(__pyx_v_self);
4365
4368
  __Pyx_GIVEREF(__pyx_v_self);
4366
- if (__Pyx_PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v_self) != (0)) __PYX_ERR(0, 129, __pyx_L1_error);
4369
+ if (__Pyx_PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_v_self) != (0)) __PYX_ERR(0, 129, __pyx_L1_error);
4367
4370
  __pyx_t_4 = 1;
4368
4371
  #if CYTHON_UNPACK_METHODS
4369
4372
  if (unlikely(PyMethod_Check(__pyx_t_2))) {
@@ -4377,10 +4380,10 @@ static PyObject *__pyx_pf_6a_sync_6a_sync_4base_16ASyncGenericBase_4__a_sync_fla
4377
4380
  }
4378
4381
  #endif
4379
4382
  {
4380
- PyObject *__pyx_callargs[4] = {__pyx_t_3, __pyx_v_6a_sync_6a_sync_4base_DEBUG, __pyx_mstate_global->__pyx_kp_u_checking_a_sync_flag_for_s, __pyx_t_6};
4383
+ PyObject *__pyx_callargs[4] = {__pyx_t_3, __pyx_v_6a_sync_6a_sync_4base_DEBUG, __pyx_mstate_global->__pyx_kp_u_checking_a_sync_flag_for_s, __pyx_t_7};
4381
4384
  __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_2, __pyx_callargs+__pyx_t_4, (4-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
4382
4385
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
4383
- __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
4386
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
4384
4387
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
4385
4388
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 129, __pyx_L1_error)
4386
4389
  __Pyx_GOTREF(__pyx_t_1);
@@ -4407,10 +4410,10 @@ static PyObject *__pyx_pf_6a_sync_6a_sync_4base_16ASyncGenericBase_4__a_sync_fla
4407
4410
  {
4408
4411
  __Pyx_PyThreadState_declare
4409
4412
  __Pyx_PyThreadState_assign
4410
- __Pyx_ExceptionSave(&__pyx_t_7, &__pyx_t_8, &__pyx_t_9);
4411
- __Pyx_XGOTREF(__pyx_t_7);
4413
+ __Pyx_ExceptionSave(&__pyx_t_8, &__pyx_t_9, &__pyx_t_10);
4412
4414
  __Pyx_XGOTREF(__pyx_t_8);
4413
4415
  __Pyx_XGOTREF(__pyx_t_9);
4416
+ __Pyx_XGOTREF(__pyx_t_10);
4414
4417
  /*try:*/ {
4415
4418
 
4416
4419
  /* "a_sync/a_sync/base.pyx":131
@@ -4434,15 +4437,15 @@ static PyObject *__pyx_pf_6a_sync_6a_sync_4base_16ASyncGenericBase_4__a_sync_fla
4434
4437
  * except ASyncFlagException:
4435
4438
  */
4436
4439
  }
4437
- __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
4438
4440
  __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
4439
4441
  __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
4442
+ __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0;
4440
4443
  goto __pyx_L9_try_end;
4441
4444
  __pyx_L4_error:;
4442
4445
  __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
4443
4446
  __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
4444
4447
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
4445
- __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
4448
+ __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
4446
4449
  __Pyx_TraceException(__pyx_lineno, 0, 0);
4447
4450
 
4448
4451
  /* "a_sync/a_sync/base.pyx":132
@@ -4453,18 +4456,18 @@ static PyObject *__pyx_pf_6a_sync_6a_sync_4base_16ASyncGenericBase_4__a_sync_fla
4453
4456
  * # but maybe the implementation sets the flag somewhere else.
4454
4457
  */
4455
4458
  __Pyx_TraceLine(132,0,0,__PYX_ERR(0, 132, __pyx_L6_except_error))
4456
- __Pyx_ErrFetch(&__pyx_t_1, &__pyx_t_2, &__pyx_t_6);
4459
+ __Pyx_ErrFetch(&__pyx_t_1, &__pyx_t_2, &__pyx_t_7);
4457
4460
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_ASyncFlagException); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 132, __pyx_L6_except_error)
4458
4461
  __Pyx_GOTREF(__pyx_t_3);
4459
- __pyx_t_10 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_1, __pyx_t_3);
4462
+ __pyx_t_11 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_1, __pyx_t_3);
4460
4463
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
4461
- __Pyx_ErrRestore(__pyx_t_1, __pyx_t_2, __pyx_t_6);
4462
- __pyx_t_1 = 0; __pyx_t_2 = 0; __pyx_t_6 = 0;
4463
- if (__pyx_t_10) {
4464
+ __Pyx_ErrRestore(__pyx_t_1, __pyx_t_2, __pyx_t_7);
4465
+ __pyx_t_1 = 0; __pyx_t_2 = 0; __pyx_t_7 = 0;
4466
+ if (__pyx_t_11) {
4464
4467
  __Pyx_AddTraceback("a_sync.a_sync.base.ASyncGenericBase.__a_sync_flag_name__", __pyx_clineno, __pyx_lineno, __pyx_filename);
4465
4468
  __Pyx_TraceExceptionHandled(0);
4466
- if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_2, &__pyx_t_1) < 0) __PYX_ERR(0, 132, __pyx_L6_except_error)
4467
- __Pyx_XGOTREF(__pyx_t_6);
4469
+ if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_2, &__pyx_t_1) < 0) __PYX_ERR(0, 132, __pyx_L6_except_error)
4470
+ __Pyx_XGOTREF(__pyx_t_7);
4468
4471
  __Pyx_XGOTREF(__pyx_t_2);
4469
4472
  __Pyx_XGOTREF(__pyx_t_1);
4470
4473
  __Pyx_TraceExceptionDone();
@@ -4487,9 +4490,9 @@ static PyObject *__pyx_pf_6a_sync_6a_sync_4base_16ASyncGenericBase_4__a_sync_fla
4487
4490
  * "unable to find flag name using `%s.__init__` signature, checking for flag attributes defined on %s",
4488
4491
  */
4489
4492
  __Pyx_TraceLine(137,25,0,__PYX_ERR(0, 137, __pyx_L6_except_error))
4490
- __pyx_t_11 = NULL;
4493
+ __pyx_t_12 = NULL;
4491
4494
  __Pyx_INCREF(__pyx_v_6a_sync_6a_sync_4base__logger_log);
4492
- __pyx_t_12 = __pyx_v_6a_sync_6a_sync_4base__logger_log;
4495
+ __pyx_t_13 = __pyx_v_6a_sync_6a_sync_4base__logger_log;
4493
4496
 
4494
4497
  /* "a_sync/a_sync/base.pyx":140
4495
4498
  * DEBUG,
@@ -4499,37 +4502,37 @@ static PyObject *__pyx_pf_6a_sync_6a_sync_4base_16ASyncGenericBase_4__a_sync_fla
4499
4502
  * present_flags = [flag for flag in VIABLE_FLAGS if hasattr(self, flag)]
4500
4503
  */
4501
4504
  __Pyx_TraceLine(140,29,0,__PYX_ERR(0, 140, __pyx_L6_except_error))
4502
- __pyx_t_13 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_class); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 140, __pyx_L6_except_error)
4503
- __Pyx_GOTREF(__pyx_t_13);
4504
- __pyx_t_14 = __Pyx_PyObject_GetAttrStr(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_name); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 140, __pyx_L6_except_error)
4505
+ __pyx_t_14 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_mstate_global->__pyx_n_u_class); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 140, __pyx_L6_except_error)
4505
4506
  __Pyx_GOTREF(__pyx_t_14);
4506
- __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
4507
- __pyx_t_13 = PyTuple_New(2); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 140, __pyx_L6_except_error)
4508
- __Pyx_GOTREF(__pyx_t_13);
4509
- __Pyx_GIVEREF(__pyx_t_14);
4510
- if (__Pyx_PyTuple_SET_ITEM(__pyx_t_13, 0, __pyx_t_14) != (0)) __PYX_ERR(0, 140, __pyx_L6_except_error);
4507
+ __pyx_t_15 = __Pyx_PyObject_GetAttrStr(__pyx_t_14, __pyx_mstate_global->__pyx_n_u_name); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 140, __pyx_L6_except_error)
4508
+ __Pyx_GOTREF(__pyx_t_15);
4509
+ __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
4510
+ __pyx_t_14 = PyTuple_New(2); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 140, __pyx_L6_except_error)
4511
+ __Pyx_GOTREF(__pyx_t_14);
4512
+ __Pyx_GIVEREF(__pyx_t_15);
4513
+ if (__Pyx_PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_15) != (0)) __PYX_ERR(0, 140, __pyx_L6_except_error);
4511
4514
  __Pyx_INCREF(__pyx_v_self);
4512
4515
  __Pyx_GIVEREF(__pyx_v_self);
4513
- if (__Pyx_PyTuple_SET_ITEM(__pyx_t_13, 1, __pyx_v_self) != (0)) __PYX_ERR(0, 140, __pyx_L6_except_error);
4514
- __pyx_t_14 = 0;
4516
+ if (__Pyx_PyTuple_SET_ITEM(__pyx_t_14, 1, __pyx_v_self) != (0)) __PYX_ERR(0, 140, __pyx_L6_except_error);
4517
+ __pyx_t_15 = 0;
4515
4518
  __pyx_t_4 = 1;
4516
4519
  #if CYTHON_UNPACK_METHODS
4517
- if (unlikely(PyMethod_Check(__pyx_t_12))) {
4518
- __pyx_t_11 = PyMethod_GET_SELF(__pyx_t_12);
4519
- assert(__pyx_t_11);
4520
- PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_12);
4521
- __Pyx_INCREF(__pyx_t_11);
4520
+ if (unlikely(PyMethod_Check(__pyx_t_13))) {
4521
+ __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_13);
4522
+ assert(__pyx_t_12);
4523
+ PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_13);
4524
+ __Pyx_INCREF(__pyx_t_12);
4522
4525
  __Pyx_INCREF(__pyx__function);
4523
- __Pyx_DECREF_SET(__pyx_t_12, __pyx__function);
4526
+ __Pyx_DECREF_SET(__pyx_t_13, __pyx__function);
4524
4527
  __pyx_t_4 = 0;
4525
4528
  }
4526
4529
  #endif
4527
4530
  {
4528
- PyObject *__pyx_callargs[4] = {__pyx_t_11, __pyx_v_6a_sync_6a_sync_4base_DEBUG, __pyx_mstate_global->__pyx_kp_u_unable_to_find_flag_name_using_s, __pyx_t_13};
4529
- __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_12, __pyx_callargs+__pyx_t_4, (4-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
4530
- __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
4531
+ PyObject *__pyx_callargs[4] = {__pyx_t_12, __pyx_v_6a_sync_6a_sync_4base_DEBUG, __pyx_mstate_global->__pyx_kp_u_unable_to_find_flag_name_using_s, __pyx_t_14};
4532
+ __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_13, __pyx_callargs+__pyx_t_4, (4-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
4533
+ __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
4534
+ __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
4531
4535
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
4532
- __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
4533
4536
  if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 137, __pyx_L6_except_error)
4534
4537
  __Pyx_GOTREF(__pyx_t_3);
4535
4538
  }
@@ -4555,25 +4558,25 @@ static PyObject *__pyx_pf_6a_sync_6a_sync_4base_16ASyncGenericBase_4__a_sync_fla
4555
4558
  { /* enter inner scope */
4556
4559
  __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 142, __pyx_L15_error)
4557
4560
  __Pyx_GOTREF(__pyx_t_3);
4558
- __pyx_t_15 = 0;
4559
- __pyx_t_13 = __Pyx_set_iterator(__pyx_v_6a_sync_6a_sync_5flags_VIABLE_FLAGS, 1, (&__pyx_t_16), (&__pyx_t_10)); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 142, __pyx_L15_error)
4560
- __Pyx_GOTREF(__pyx_t_13);
4561
- __Pyx_XDECREF(__pyx_t_12);
4562
- __pyx_t_12 = __pyx_t_13;
4563
- __pyx_t_13 = 0;
4561
+ __pyx_t_16 = 0;
4562
+ __pyx_t_14 = __Pyx_set_iterator(__pyx_v_6a_sync_6a_sync_5flags_VIABLE_FLAGS, 1, (&__pyx_t_17), (&__pyx_t_11)); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 142, __pyx_L15_error)
4563
+ __Pyx_GOTREF(__pyx_t_14);
4564
+ __Pyx_XDECREF(__pyx_t_13);
4565
+ __pyx_t_13 = __pyx_t_14;
4566
+ __pyx_t_14 = 0;
4564
4567
  while (1) {
4565
- __pyx_t_17 = __Pyx_set_iter_next(__pyx_t_12, __pyx_t_16, &__pyx_t_15, &__pyx_t_13, __pyx_t_10);
4566
- if (unlikely(__pyx_t_17 == 0)) break;
4567
- if (unlikely(__pyx_t_17 == -1)) __PYX_ERR(0, 142, __pyx_L15_error)
4568
- __Pyx_GOTREF(__pyx_t_13);
4569
- __Pyx_XDECREF_SET(__pyx_7genexpr__pyx_v_flag, __pyx_t_13);
4570
- __pyx_t_13 = 0;
4571
- __pyx_t_5 = __Pyx_HasAttr(__pyx_v_self, __pyx_7genexpr__pyx_v_flag); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 142, __pyx_L15_error)
4572
- if (__pyx_t_5) {
4568
+ __pyx_t_18 = __Pyx_set_iter_next(__pyx_t_13, __pyx_t_17, &__pyx_t_16, &__pyx_t_14, __pyx_t_11);
4569
+ if (unlikely(__pyx_t_18 == 0)) break;
4570
+ if (unlikely(__pyx_t_18 == -1)) __PYX_ERR(0, 142, __pyx_L15_error)
4571
+ __Pyx_GOTREF(__pyx_t_14);
4572
+ __Pyx_XDECREF_SET(__pyx_7genexpr__pyx_v_flag, __pyx_t_14);
4573
+ __pyx_t_14 = 0;
4574
+ __pyx_t_6 = __Pyx_HasAttr(__pyx_v_self, __pyx_7genexpr__pyx_v_flag); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(0, 142, __pyx_L15_error)
4575
+ if (__pyx_t_6) {
4573
4576
  if (unlikely(__Pyx_ListComp_Append(__pyx_t_3, (PyObject*)__pyx_7genexpr__pyx_v_flag))) __PYX_ERR(0, 142, __pyx_L15_error)
4574
4577
  }
4575
4578
  }
4576
- __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
4579
+ __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
4577
4580
  __Pyx_XDECREF(__pyx_7genexpr__pyx_v_flag); __pyx_7genexpr__pyx_v_flag = 0;
4578
4581
  goto __pyx_L19_exit_scope;
4579
4582
  __pyx_L15_error:;
@@ -4592,10 +4595,10 @@ static PyObject *__pyx_pf_6a_sync_6a_sync_4base_16ASyncGenericBase_4__a_sync_fla
4592
4595
  * if len(present_flags) > 1:
4593
4596
  */
4594
4597
  __Pyx_TraceLine(143,45,0,__PYX_ERR(0, 143, __pyx_L6_except_error))
4595
- __pyx_t_5 = (__Pyx_PyList_GET_SIZE(__pyx_v_present_flags) != 0);
4596
- if (unlikely(((!CYTHON_ASSUME_SAFE_MACROS) && __pyx_t_5 < 0))) __PYX_ERR(0, 143, __pyx_L6_except_error)
4597
- __pyx_t_18 = (!__pyx_t_5);
4598
- if (unlikely(__pyx_t_18)) {
4598
+ __pyx_t_6 = (__Pyx_PyList_GET_SIZE(__pyx_v_present_flags) != 0);
4599
+ if (unlikely(((!CYTHON_ASSUME_SAFE_MACROS) && __pyx_t_6 < 0))) __PYX_ERR(0, 143, __pyx_L6_except_error)
4600
+ __pyx_t_5 = (!__pyx_t_6);
4601
+ if (unlikely(__pyx_t_5)) {
4599
4602
 
4600
4603
  /* "a_sync/a_sync/base.pyx":144
4601
4604
  * present_flags = [flag for flag in VIABLE_FLAGS if hasattr(self, flag)]
@@ -4605,26 +4608,26 @@ static PyObject *__pyx_pf_6a_sync_6a_sync_4base_16ASyncGenericBase_4__a_sync_fla
4605
4608
  * raise TooManyFlags(self, present_flags) from None
4606
4609
  */
4607
4610
  __Pyx_TraceLine(144,48,0,__PYX_ERR(0, 144, __pyx_L6_except_error))
4608
- __pyx_t_12 = NULL;
4609
- __Pyx_GetModuleGlobalName(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_NoFlagsFound); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 144, __pyx_L6_except_error)
4610
- __Pyx_GOTREF(__pyx_t_13);
4611
+ __pyx_t_13 = NULL;
4612
+ __Pyx_GetModuleGlobalName(__pyx_t_14, __pyx_mstate_global->__pyx_n_u_NoFlagsFound); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 144, __pyx_L6_except_error)
4613
+ __Pyx_GOTREF(__pyx_t_14);
4611
4614
  __pyx_t_4 = 1;
4612
4615
  #if CYTHON_UNPACK_METHODS
4613
- if (unlikely(PyMethod_Check(__pyx_t_13))) {
4614
- __pyx_t_12 = PyMethod_GET_SELF(__pyx_t_13);
4615
- assert(__pyx_t_12);
4616
- PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_13);
4617
- __Pyx_INCREF(__pyx_t_12);
4616
+ if (unlikely(PyMethod_Check(__pyx_t_14))) {
4617
+ __pyx_t_13 = PyMethod_GET_SELF(__pyx_t_14);
4618
+ assert(__pyx_t_13);
4619
+ PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_14);
4620
+ __Pyx_INCREF(__pyx_t_13);
4618
4621
  __Pyx_INCREF(__pyx__function);
4619
- __Pyx_DECREF_SET(__pyx_t_13, __pyx__function);
4622
+ __Pyx_DECREF_SET(__pyx_t_14, __pyx__function);
4620
4623
  __pyx_t_4 = 0;
4621
4624
  }
4622
4625
  #endif
4623
4626
  {
4624
- PyObject *__pyx_callargs[2] = {__pyx_t_12, __pyx_v_self};
4625
- __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_13, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
4626
- __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0;
4627
- __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
4627
+ PyObject *__pyx_callargs[2] = {__pyx_t_13, __pyx_v_self};
4628
+ __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_14, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
4629
+ __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
4630
+ __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
4628
4631
  if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 144, __pyx_L6_except_error)
4629
4632
  __Pyx_GOTREF(__pyx_t_3);
4630
4633
  }
@@ -4649,9 +4652,9 @@ static PyObject *__pyx_pf_6a_sync_6a_sync_4base_16ASyncGenericBase_4__a_sync_fla
4649
4652
  * flag = present_flags[0]
4650
4653
  */
4651
4654
  __Pyx_TraceLine(145,53,0,__PYX_ERR(0, 145, __pyx_L6_except_error))
4652
- __pyx_t_16 = __Pyx_PyList_GET_SIZE(__pyx_v_present_flags); if (unlikely(__pyx_t_16 == ((Py_ssize_t)-1))) __PYX_ERR(0, 145, __pyx_L6_except_error)
4653
- __pyx_t_18 = (__pyx_t_16 > 1);
4654
- if (unlikely(__pyx_t_18)) {
4655
+ __pyx_t_17 = __Pyx_PyList_GET_SIZE(__pyx_v_present_flags); if (unlikely(__pyx_t_17 == ((Py_ssize_t)-1))) __PYX_ERR(0, 145, __pyx_L6_except_error)
4656
+ __pyx_t_5 = (__pyx_t_17 > 1);
4657
+ if (unlikely(__pyx_t_5)) {
4655
4658
 
4656
4659
  /* "a_sync/a_sync/base.pyx":146
4657
4660
  * raise NoFlagsFound(self) from None
@@ -4661,26 +4664,26 @@ static PyObject *__pyx_pf_6a_sync_6a_sync_4base_16ASyncGenericBase_4__a_sync_fla
4661
4664
  * if not isinstance(flag, str):
4662
4665
  */
4663
4666
  __Pyx_TraceLine(146,59,0,__PYX_ERR(0, 146, __pyx_L6_except_error))
4664
- __pyx_t_13 = NULL;
4665
- __Pyx_GetModuleGlobalName(__pyx_t_12, __pyx_mstate_global->__pyx_n_u_TooManyFlags); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 146, __pyx_L6_except_error)
4666
- __Pyx_GOTREF(__pyx_t_12);
4667
+ __pyx_t_14 = NULL;
4668
+ __Pyx_GetModuleGlobalName(__pyx_t_13, __pyx_mstate_global->__pyx_n_u_TooManyFlags); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 146, __pyx_L6_except_error)
4669
+ __Pyx_GOTREF(__pyx_t_13);
4667
4670
  __pyx_t_4 = 1;
4668
4671
  #if CYTHON_UNPACK_METHODS
4669
- if (unlikely(PyMethod_Check(__pyx_t_12))) {
4670
- __pyx_t_13 = PyMethod_GET_SELF(__pyx_t_12);
4671
- assert(__pyx_t_13);
4672
- PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_12);
4673
- __Pyx_INCREF(__pyx_t_13);
4672
+ if (unlikely(PyMethod_Check(__pyx_t_13))) {
4673
+ __pyx_t_14 = PyMethod_GET_SELF(__pyx_t_13);
4674
+ assert(__pyx_t_14);
4675
+ PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_13);
4676
+ __Pyx_INCREF(__pyx_t_14);
4674
4677
  __Pyx_INCREF(__pyx__function);
4675
- __Pyx_DECREF_SET(__pyx_t_12, __pyx__function);
4678
+ __Pyx_DECREF_SET(__pyx_t_13, __pyx__function);
4676
4679
  __pyx_t_4 = 0;
4677
4680
  }
4678
4681
  #endif
4679
4682
  {
4680
- PyObject *__pyx_callargs[3] = {__pyx_t_13, __pyx_v_self, __pyx_v_present_flags};
4681
- __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_12, __pyx_callargs+__pyx_t_4, (3-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
4682
- __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
4683
- __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
4683
+ PyObject *__pyx_callargs[3] = {__pyx_t_14, __pyx_v_self, __pyx_v_present_flags};
4684
+ __pyx_t_3 = __Pyx_PyObject_FastCall(__pyx_t_13, __pyx_callargs+__pyx_t_4, (3-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
4685
+ __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
4686
+ __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
4684
4687
  if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 146, __pyx_L6_except_error)
4685
4688
  __Pyx_GOTREF(__pyx_t_3);
4686
4689
  }
@@ -4709,7 +4712,7 @@ static PyObject *__pyx_pf_6a_sync_6a_sync_4base_16ASyncGenericBase_4__a_sync_fla
4709
4712
  __Pyx_INCREF(__pyx_t_3);
4710
4713
  __Pyx_XDECREF_SET(__pyx_v_flag, __pyx_t_3);
4711
4714
  __pyx_t_3 = 0;
4712
- __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
4715
+ __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
4713
4716
  __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
4714
4717
  __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
4715
4718
  goto __pyx_L5_exception_handled;
@@ -4724,16 +4727,16 @@ static PyObject *__pyx_pf_6a_sync_6a_sync_4base_16ASyncGenericBase_4__a_sync_fla
4724
4727
  * except ASyncFlagException:
4725
4728
  */
4726
4729
  __pyx_L6_except_error:;
4727
- __Pyx_XGIVEREF(__pyx_t_7);
4728
4730
  __Pyx_XGIVEREF(__pyx_t_8);
4729
4731
  __Pyx_XGIVEREF(__pyx_t_9);
4730
- __Pyx_ExceptionReset(__pyx_t_7, __pyx_t_8, __pyx_t_9);
4732
+ __Pyx_XGIVEREF(__pyx_t_10);
4733
+ __Pyx_ExceptionReset(__pyx_t_8, __pyx_t_9, __pyx_t_10);
4731
4734
  goto __pyx_L1_error;
4732
4735
  __pyx_L5_exception_handled:;
4733
- __Pyx_XGIVEREF(__pyx_t_7);
4734
4736
  __Pyx_XGIVEREF(__pyx_t_8);
4735
4737
  __Pyx_XGIVEREF(__pyx_t_9);
4736
- __Pyx_ExceptionReset(__pyx_t_7, __pyx_t_8, __pyx_t_9);
4738
+ __Pyx_XGIVEREF(__pyx_t_10);
4739
+ __Pyx_ExceptionReset(__pyx_t_8, __pyx_t_9, __pyx_t_10);
4737
4740
  __pyx_L9_try_end:;
4738
4741
  }
4739
4742
 
@@ -4745,9 +4748,9 @@ static PyObject *__pyx_pf_6a_sync_6a_sync_4base_16ASyncGenericBase_4__a_sync_fla
4745
4748
  * return flag
4746
4749
  */
4747
4750
  __Pyx_TraceLine(148,72,0,__PYX_ERR(0, 148, __pyx_L1_error))
4748
- __pyx_t_18 = PyUnicode_Check(__pyx_v_flag);
4749
- __pyx_t_5 = (!__pyx_t_18);
4750
- if (unlikely(__pyx_t_5)) {
4751
+ __pyx_t_5 = PyUnicode_Check(__pyx_v_flag);
4752
+ __pyx_t_6 = (!__pyx_t_5);
4753
+ if (unlikely(__pyx_t_6)) {
4751
4754
 
4752
4755
  /* "a_sync/a_sync/base.pyx":149
4753
4756
  * flag = present_flags[0]
@@ -4758,25 +4761,25 @@ static PyObject *__pyx_pf_6a_sync_6a_sync_4base_16ASyncGenericBase_4__a_sync_fla
4758
4761
  */
4759
4762
  __Pyx_TraceLine(149,75,0,__PYX_ERR(0, 149, __pyx_L1_error))
4760
4763
  __pyx_t_2 = NULL;
4761
- __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_InvalidFlag); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 149, __pyx_L1_error)
4762
- __Pyx_GOTREF(__pyx_t_6);
4764
+ __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_InvalidFlag); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 149, __pyx_L1_error)
4765
+ __Pyx_GOTREF(__pyx_t_7);
4763
4766
  __pyx_t_4 = 1;
4764
4767
  #if CYTHON_UNPACK_METHODS
4765
- if (unlikely(PyMethod_Check(__pyx_t_6))) {
4766
- __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_6);
4768
+ if (unlikely(PyMethod_Check(__pyx_t_7))) {
4769
+ __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_7);
4767
4770
  assert(__pyx_t_2);
4768
- PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
4771
+ PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
4769
4772
  __Pyx_INCREF(__pyx_t_2);
4770
4773
  __Pyx_INCREF(__pyx__function);
4771
- __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
4774
+ __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
4772
4775
  __pyx_t_4 = 0;
4773
4776
  }
4774
4777
  #endif
4775
4778
  {
4776
4779
  PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_v_flag};
4777
- __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_6, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
4780
+ __pyx_t_1 = __Pyx_PyObject_FastCall(__pyx_t_7, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
4778
4781
  __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
4779
- __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
4782
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
4780
4783
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 149, __pyx_L1_error)
4781
4784
  __Pyx_GOTREF(__pyx_t_1);
4782
4785
  }
@@ -4821,11 +4824,11 @@ static PyObject *__pyx_pf_6a_sync_6a_sync_4base_16ASyncGenericBase_4__a_sync_fla
4821
4824
  __Pyx_XDECREF(__pyx_t_1);
4822
4825
  __Pyx_XDECREF(__pyx_t_2);
4823
4826
  __Pyx_XDECREF(__pyx_t_3);
4824
- __Pyx_XDECREF(__pyx_t_6);
4825
- __Pyx_XDECREF(__pyx_t_11);
4827
+ __Pyx_XDECREF(__pyx_t_7);
4826
4828
  __Pyx_XDECREF(__pyx_t_12);
4827
4829
  __Pyx_XDECREF(__pyx_t_13);
4828
4830
  __Pyx_XDECREF(__pyx_t_14);
4831
+ __Pyx_XDECREF(__pyx_t_15);
4829
4832
  __Pyx_TraceException(__pyx_lineno, 0, 0);
4830
4833
  #if CYTHON_USE_SYS_MONITORING
4831
4834
  __Pyx_TraceExceptionUnwind(0, 0);
@@ -7314,27 +7317,27 @@ static int __Pyx_modinit_type_import_code(__pyx_mstatetype *__pyx_mstate) {
7314
7317
  /*--- Type import code ---*/
7315
7318
  __pyx_t_1 = PyImport_ImportModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error)
7316
7319
  __Pyx_GOTREF(__pyx_t_1);
7317
- __pyx_mstate->__pyx_ptype_7cpython_4type_type = __Pyx_ImportType_3_1_2(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME, "type",
7320
+ __pyx_mstate->__pyx_ptype_7cpython_4type_type = __Pyx_ImportType_3_1_3(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME, "type",
7318
7321
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
7319
- sizeof(PyTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_1_2(PyTypeObject),
7322
+ sizeof(PyTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(PyTypeObject),
7320
7323
  #elif CYTHON_COMPILING_IN_LIMITED_API
7321
7324
  0, 0,
7322
7325
  #else
7323
- sizeof(PyHeapTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_1_2(PyHeapTypeObject),
7326
+ sizeof(PyHeapTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_1_3(PyHeapTypeObject),
7324
7327
  #endif
7325
- __Pyx_ImportType_CheckSize_Warn_3_1_2); if (!__pyx_mstate->__pyx_ptype_7cpython_4type_type) __PYX_ERR(2, 9, __pyx_L1_error)
7328
+ __Pyx_ImportType_CheckSize_Warn_3_1_3); if (!__pyx_mstate->__pyx_ptype_7cpython_4type_type) __PYX_ERR(2, 9, __pyx_L1_error)
7326
7329
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7327
7330
  __pyx_t_1 = PyImport_ImportModule("a_sync.functools"); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1, __pyx_L1_error)
7328
7331
  __Pyx_GOTREF(__pyx_t_1);
7329
- __pyx_mstate->__pyx_ptype_6a_sync_9functools_cached_property_unsafe = __Pyx_ImportType_3_1_2(__pyx_t_1, "a_sync.functools", "cached_property_unsafe",
7332
+ __pyx_mstate->__pyx_ptype_6a_sync_9functools_cached_property_unsafe = __Pyx_ImportType_3_1_3(__pyx_t_1, "a_sync.functools", "cached_property_unsafe",
7330
7333
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
7331
- 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),
7334
+ 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),
7332
7335
  #elif CYTHON_COMPILING_IN_LIMITED_API
7333
- 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),
7336
+ 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),
7334
7337
  #else
7335
- 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),
7338
+ 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),
7336
7339
  #endif
7337
- __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)
7340
+ __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)
7338
7341
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7339
7342
  __Pyx_RefNannyFinishContext();
7340
7343
  return 0;
@@ -7355,9 +7358,9 @@ static int __Pyx_modinit_variable_import_code(__pyx_mstatetype *__pyx_mstate) {
7355
7358
  /*--- Variable import code ---*/
7356
7359
  __pyx_t_1 = PyImport_ImportModule("a_sync.a_sync.flags"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
7357
7360
  __Pyx_GOTREF(__pyx_t_1);
7358
- 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)
7359
- 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)
7360
- 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)
7361
+ 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)
7362
+ 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)
7363
+ 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)
7361
7364
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7362
7365
  __Pyx_RefNannyFinishContext();
7363
7366
  return 0;
@@ -7378,8 +7381,8 @@ static int __Pyx_modinit_function_import_code(__pyx_mstatetype *__pyx_mstate) {
7378
7381
  /*--- Function import code ---*/
7379
7382
  __pyx_t_1 = PyImport_ImportModule("a_sync.a_sync._flags"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
7380
7383
  __Pyx_GOTREF(__pyx_t_1);
7381
- if (__Pyx_ImportFunction_3_1_2(__pyx_t_1, "validate_flag_value", (void (**)(void))&__pyx_f_6a_sync_6a_sync_6_flags_validate_flag_value, "int (PyObject *, PyObject *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
7382
- 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)
7384
+ if (__Pyx_ImportFunction_3_1_3(__pyx_t_1, "validate_flag_value", (void (**)(void))&__pyx_f_6a_sync_6a_sync_6_flags_validate_flag_value, "int (PyObject *, PyObject *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
7385
+ 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)
7383
7386
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7384
7387
  __Pyx_RefNannyFinishContext();
7385
7388
  return 0;
@@ -10772,6 +10775,13 @@ try_unpack:
10772
10775
 
10773
10776
  /* PyObjectCallMethod0 */
10774
10777
  static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name) {
10778
+ #if CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000))
10779
+ PyObject *args[1] = {obj};
10780
+ (void) __Pyx_PyObject_GetMethod;
10781
+ (void) __Pyx_PyObject_CallOneArg;
10782
+ (void) __Pyx_PyObject_CallNoArg;
10783
+ return PyObject_VectorcallMethod(method_name, args, 1 | PY_VECTORCALL_ARGUMENTS_OFFSET, NULL);
10784
+ #else
10775
10785
  PyObject *method = NULL, *result = NULL;
10776
10786
  int is_method = __Pyx_PyObject_GetMethod(obj, method_name, &method);
10777
10787
  if (likely(is_method)) {
@@ -10784,6 +10794,7 @@ static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name
10784
10794
  Py_DECREF(method);
10785
10795
  bad:
10786
10796
  return result;
10797
+ #endif
10787
10798
  }
10788
10799
 
10789
10800
  /* RaiseNeedMoreValuesToUnpack */
@@ -11133,10 +11144,10 @@ static CYTHON_INLINE int __Pyx_PySet_ContainsTF(PyObject* key, PyObject* set, in
11133
11144
  }
11134
11145
 
11135
11146
  /* TypeImport */
11136
- #ifndef __PYX_HAVE_RT_ImportType_3_1_2
11137
- #define __PYX_HAVE_RT_ImportType_3_1_2
11138
- static PyTypeObject *__Pyx_ImportType_3_1_2(PyObject *module, const char *module_name, const char *class_name,
11139
- size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_1_2 check_size)
11147
+ #ifndef __PYX_HAVE_RT_ImportType_3_1_3
11148
+ #define __PYX_HAVE_RT_ImportType_3_1_3
11149
+ static PyTypeObject *__Pyx_ImportType_3_1_3(PyObject *module, const char *module_name, const char *class_name,
11150
+ size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_1_3 check_size)
11140
11151
  {
11141
11152
  PyObject *result = 0;
11142
11153
  Py_ssize_t basicsize;
@@ -11192,7 +11203,7 @@ static PyTypeObject *__Pyx_ImportType_3_1_2(PyObject *module, const char *module
11192
11203
  module_name, class_name, size, basicsize+itemsize);
11193
11204
  goto bad;
11194
11205
  }
11195
- if (check_size == __Pyx_ImportType_CheckSize_Error_3_1_2 &&
11206
+ if (check_size == __Pyx_ImportType_CheckSize_Error_3_1_3 &&
11196
11207
  ((size_t)basicsize > size || (size_t)(basicsize + itemsize) < size)) {
11197
11208
  PyErr_Format(PyExc_ValueError,
11198
11209
  "%.200s.%.200s size changed, may indicate binary incompatibility. "
@@ -11200,7 +11211,7 @@ static PyTypeObject *__Pyx_ImportType_3_1_2(PyObject *module, const char *module
11200
11211
  module_name, class_name, size, basicsize, basicsize+itemsize);
11201
11212
  goto bad;
11202
11213
  }
11203
- else if (check_size == __Pyx_ImportType_CheckSize_Warn_3_1_2 && (size_t)basicsize > size) {
11214
+ else if (check_size == __Pyx_ImportType_CheckSize_Warn_3_1_3 && (size_t)basicsize > size) {
11204
11215
  if (PyErr_WarnFormat(NULL, 0,
11205
11216
  "%.200s.%.200s size changed, may indicate binary incompatibility. "
11206
11217
  "Expected %zd from C header, got %zd from PyObject",
@@ -11738,6 +11749,7 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
11738
11749
  changed = 1;
11739
11750
  }
11740
11751
  #endif // CYTHON_METH_FASTCALL
11752
+ #if !CYTHON_COMPILING_IN_PYPY
11741
11753
  else if (strcmp(memb->name, "__module__") == 0) {
11742
11754
  PyObject *descr;
11743
11755
  assert(memb->type == T_OBJECT);
@@ -11752,11 +11764,13 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
11752
11764
  }
11753
11765
  changed = 1;
11754
11766
  }
11767
+ #endif // !CYTHON_COMPILING_IN_PYPY
11755
11768
  }
11756
11769
  memb++;
11757
11770
  }
11758
11771
  }
11759
11772
  #endif // !CYTHON_COMPILING_IN_LIMITED_API
11773
+ #if !CYTHON_COMPILING_IN_PYPY
11760
11774
  slot = spec->slots;
11761
11775
  while (slot && slot->slot && slot->slot != Py_tp_getset)
11762
11776
  slot++;
@@ -11788,6 +11802,7 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
11788
11802
  ++getset;
11789
11803
  }
11790
11804
  }
11805
+ #endif // !CYTHON_COMPILING_IN_PYPY
11791
11806
  if (changed)
11792
11807
  PyType_Modified(type);
11793
11808
  #endif // PY_VERSION_HEX > 0x030900B1
@@ -11920,7 +11935,7 @@ bad:
11920
11935
  }
11921
11936
 
11922
11937
  /* CommonTypesMetaclass */
11923
- PyObject* __pyx_CommonTypesMetaclass_get_module(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED void* context) {
11938
+ static PyObject* __pyx_CommonTypesMetaclass_get_module(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED void* context) {
11924
11939
  return PyUnicode_FromString(__PYX_ABI_MODULE_NAME);
11925
11940
  }
11926
11941
  static PyGetSetDef __pyx_CommonTypesMetaclass_getset[] = {
@@ -14224,9 +14239,9 @@ static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt
14224
14239
  }
14225
14240
 
14226
14241
  /* VoidPtrImport */
14227
- #ifndef __PYX_HAVE_RT_ImportVoidPtr_3_1_2
14228
- #define __PYX_HAVE_RT_ImportVoidPtr_3_1_2
14229
- static int __Pyx_ImportVoidPtr_3_1_2(PyObject *module, const char *name, void **p, const char *sig) {
14242
+ #ifndef __PYX_HAVE_RT_ImportVoidPtr_3_1_3
14243
+ #define __PYX_HAVE_RT_ImportVoidPtr_3_1_3
14244
+ static int __Pyx_ImportVoidPtr_3_1_3(PyObject *module, const char *name, void **p, const char *sig) {
14230
14245
  PyObject *d = 0;
14231
14246
  PyObject *cobj = 0;
14232
14247
  d = PyObject_GetAttrString(module, "__pyx_capi__");
@@ -14264,9 +14279,9 @@ bad:
14264
14279
  #endif
14265
14280
 
14266
14281
  /* FunctionImport */
14267
- #ifndef __PYX_HAVE_RT_ImportFunction_3_1_2
14268
- #define __PYX_HAVE_RT_ImportFunction_3_1_2
14269
- static int __Pyx_ImportFunction_3_1_2(PyObject *module, const char *funcname, void (**f)(void), const char *sig) {
14282
+ #ifndef __PYX_HAVE_RT_ImportFunction_3_1_3
14283
+ #define __PYX_HAVE_RT_ImportFunction_3_1_3
14284
+ static int __Pyx_ImportFunction_3_1_3(PyObject *module, const char *funcname, void (**f)(void), const char *sig) {
14270
14285
  PyObject *d = 0;
14271
14286
  PyObject *cobj = 0;
14272
14287
  union {