ez-a-sync 0.32.26__cp313-cp313-win_amd64.whl → 0.32.28__cp313-cp313-win_amd64.whl

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

Potentially problematic release.


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

Files changed (71) hide show
  1. a_sync/_smart.c +63 -43
  2. a_sync/_smart.cp313-win_amd64.pyd +0 -0
  3. a_sync/a_sync/_descriptor.c +83 -63
  4. a_sync/a_sync/_descriptor.cp313-win_amd64.pyd +0 -0
  5. a_sync/a_sync/_flags.c +13 -10
  6. a_sync/a_sync/_flags.cp313-win_amd64.pyd +0 -0
  7. a_sync/a_sync/_helpers.c +76 -56
  8. a_sync/a_sync/_helpers.cp313-win_amd64.pyd +0 -0
  9. a_sync/a_sync/_kwargs.c +45 -25
  10. a_sync/a_sync/_kwargs.cp313-win_amd64.pyd +0 -0
  11. a_sync/a_sync/abstract.c +54 -24
  12. a_sync/a_sync/abstract.cp313-win_amd64.pyd +0 -0
  13. a_sync/a_sync/abstract.pyi +2 -2
  14. a_sync/a_sync/base.c +186 -162
  15. a_sync/a_sync/base.cp313-win_amd64.pyd +0 -0
  16. a_sync/a_sync/flags.c +13 -10
  17. a_sync/a_sync/flags.cp313-win_amd64.pyd +0 -0
  18. a_sync/a_sync/function.c +103 -74
  19. a_sync/a_sync/function.cp313-win_amd64.pyd +0 -0
  20. a_sync/a_sync/method.c +152 -120
  21. a_sync/a_sync/method.cp313-win_amd64.pyd +0 -0
  22. a_sync/a_sync/method.pyi +2 -1
  23. a_sync/a_sync/modifiers/manager.c +60 -40
  24. a_sync/a_sync/modifiers/manager.cp313-win_amd64.pyd +0 -0
  25. a_sync/a_sync/property.c +104 -78
  26. a_sync/a_sync/property.cp313-win_amd64.pyd +0 -0
  27. a_sync/async_property/cached.c +71 -51
  28. a_sync/async_property/cached.cp313-win_amd64.pyd +0 -0
  29. a_sync/async_property/proxy.c +37 -17
  30. a_sync/async_property/proxy.cp313-win_amd64.pyd +0 -0
  31. a_sync/asyncio/as_completed.c +33 -13
  32. a_sync/asyncio/as_completed.cp313-win_amd64.pyd +0 -0
  33. a_sync/asyncio/create_task.c +59 -21
  34. a_sync/asyncio/create_task.cp313-win_amd64.pyd +0 -0
  35. a_sync/asyncio/gather.c +42 -22
  36. a_sync/asyncio/gather.cp313-win_amd64.pyd +0 -0
  37. a_sync/asyncio/igather.c +42 -18
  38. a_sync/asyncio/igather.cp313-win_amd64.pyd +0 -0
  39. a_sync/asyncio/sleep.c +24 -4
  40. a_sync/asyncio/sleep.cp313-win_amd64.pyd +0 -0
  41. a_sync/debugging.c +52 -32
  42. a_sync/debugging.cp313-win_amd64.pyd +0 -0
  43. a_sync/exceptions.c +36 -20
  44. a_sync/exceptions.cp313-win_amd64.pyd +0 -0
  45. a_sync/executor.py +44 -0
  46. a_sync/functools.c +31 -11
  47. a_sync/functools.cp313-win_amd64.pyd +0 -0
  48. a_sync/iter.c +166 -96
  49. a_sync/iter.cp313-win_amd64.pyd +0 -0
  50. a_sync/primitives/_debug.c +61 -41
  51. a_sync/primitives/_debug.cp313-win_amd64.pyd +0 -0
  52. a_sync/primitives/_loggable.c +48 -22
  53. a_sync/primitives/_loggable.cp313-win_amd64.pyd +0 -0
  54. a_sync/primitives/locks/counter.c +98 -68
  55. a_sync/primitives/locks/counter.cp313-win_amd64.pyd +0 -0
  56. a_sync/primitives/locks/event.c +70 -49
  57. a_sync/primitives/locks/event.cp313-win_amd64.pyd +0 -0
  58. a_sync/primitives/locks/prio_semaphore.c +120 -80
  59. a_sync/primitives/locks/prio_semaphore.cp313-win_amd64.pyd +0 -0
  60. a_sync/primitives/locks/prio_semaphore.pyi +2 -2
  61. a_sync/primitives/locks/semaphore.c +96 -69
  62. a_sync/primitives/locks/semaphore.cp313-win_amd64.pyd +0 -0
  63. a_sync/primitives/locks/semaphore.pyi +10 -9
  64. a_sync/primitives/queue.py +5 -1
  65. a_sync/utils/repr.c +55 -35
  66. a_sync/utils/repr.cp313-win_amd64.pyd +0 -0
  67. {ez_a_sync-0.32.26.dist-info → ez_a_sync-0.32.28.dist-info}/METADATA +1 -1
  68. {ez_a_sync-0.32.26.dist-info → ez_a_sync-0.32.28.dist-info}/RECORD +71 -71
  69. {ez_a_sync-0.32.26.dist-info → ez_a_sync-0.32.28.dist-info}/WHEEL +0 -0
  70. {ez_a_sync-0.32.26.dist-info → ez_a_sync-0.32.28.dist-info}/licenses/LICENSE.txt +0 -0
  71. {ez_a_sync-0.32.26.dist-info → ez_a_sync-0.32.28.dist-info}/top_level.txt +0 -0
a_sync/a_sync/base.c CHANGED
@@ -1,4 +1,4 @@
1
- /* Generated by Cython 3.1.2 */
1
+ /* Generated by Cython 3.1.4 */
2
2
 
3
3
  /* BEGIN: Cython Metadata
4
4
  {
@@ -30,8 +30,8 @@ END: Cython Metadata */
30
30
  #elif PY_VERSION_HEX < 0x03080000
31
31
  #error Cython requires Python 3.8+.
32
32
  #else
33
- #define __PYX_ABI_VERSION "3_1_2"
34
- #define CYTHON_HEX_VERSION 0x030102F0
33
+ #define __PYX_ABI_VERSION "3_1_4"
34
+ #define CYTHON_HEX_VERSION 0x030104F0
35
35
  #define CYTHON_FUTURE_DIVISION 1
36
36
  /* CModulePreamble */
37
37
  #include <stddef.h>
@@ -394,6 +394,9 @@ END: Cython Metadata */
394
394
  enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P == sizeof(void*)) };
395
395
  #endif
396
396
  #endif
397
+ #ifndef CYTHON_LOCK_AND_GIL_DEADLOCK_AVOIDANCE_TIME
398
+ #define CYTHON_LOCK_AND_GIL_DEADLOCK_AVOIDANCE_TIME 100
399
+ #endif
397
400
  #ifndef __has_attribute
398
401
  #define __has_attribute(x) 0
399
402
  #endif
@@ -1972,18 +1975,18 @@ static void __Pyx_RaiseArgtupleInvalid(const char* func_name, int exact,
1972
1975
  if (!__Pyx_PyThreadState_Current->tracing) {\
1973
1976
  if (likely(__pyx_frame_code)) Py_INCREF(__pyx_frame_code);\
1974
1977
  else __pyx_frame_code = (PyObject*) __Pyx_createFrameCodeObject(funcname, srcfile, firstlineno);\
1975
- if (unlikely(!__pyx_frame_code)) goto_error;\
1976
- ret = __Pyx__TraceStartFunc(__pyx_pymonitoring_state, __pyx_frame_code, offset, skip_event);\
1977
- }\
1978
+ if (unlikely(!__pyx_frame_code)) ret = -1;\
1979
+ else ret = __Pyx__TraceStartFunc(__pyx_pymonitoring_state, __pyx_frame_code, offset, skip_event);\
1980
+ } else __pyx_frame_code = NULL;\
1978
1981
  PyGILState_Release(state);\
1979
- }\
1982
+ } else __pyx_frame_code = NULL;\
1980
1983
  } else {\
1981
1984
  if (!__Pyx_PyThreadState_Current->tracing) {\
1982
1985
  if (likely(__pyx_frame_code)) Py_INCREF(__pyx_frame_code);\
1983
1986
  else __pyx_frame_code = (PyObject*) __Pyx_createFrameCodeObject(funcname, srcfile, firstlineno);\
1984
- if (unlikely(!__pyx_frame_code)) goto_error;\
1985
- ret = __Pyx__TraceStartFunc(__pyx_pymonitoring_state, __pyx_frame_code, offset, skip_event);\
1986
- }\
1987
+ if (unlikely(!__pyx_frame_code)) ret = -1;\
1988
+ else ret = __Pyx__TraceStartFunc(__pyx_pymonitoring_state, __pyx_frame_code, offset, skip_event);\
1989
+ } else __pyx_frame_code = NULL;\
1987
1990
  }\
1988
1991
  if (unlikely(ret == -1)) goto_error;\
1989
1992
  }
@@ -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_4
2601
+ #define __PYX_HAVE_RT_ImportType_proto_3_1_4
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_4(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_4(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_4 {
2611
+ __Pyx_ImportType_CheckSize_Error_3_1_4 = 0,
2612
+ __Pyx_ImportType_CheckSize_Warn_3_1_4 = 1,
2613
+ __Pyx_ImportType_CheckSize_Ignore_3_1_4 = 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_4(PyObject* module, const char *module_name, const char *class_name, size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_1_4 check_size);
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_4(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_4(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,14 @@ 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
+ {
4599
+ Py_ssize_t __pyx_temp = __Pyx_PyList_GET_SIZE(__pyx_v_present_flags);
4600
+ if (unlikely(((!CYTHON_ASSUME_SAFE_SIZE) && __pyx_temp < 0))) __PYX_ERR(0, 143, __pyx_L6_except_error)
4601
+ __pyx_t_6 = (__pyx_temp != 0);
4602
+ }
4603
+
4604
+ __pyx_t_5 = (!__pyx_t_6);
4605
+ if (unlikely(__pyx_t_5)) {
4599
4606
 
4600
4607
  /* "a_sync/a_sync/base.pyx":144
4601
4608
  * present_flags = [flag for flag in VIABLE_FLAGS if hasattr(self, flag)]
@@ -4605,26 +4612,26 @@ static PyObject *__pyx_pf_6a_sync_6a_sync_4base_16ASyncGenericBase_4__a_sync_fla
4605
4612
  * raise TooManyFlags(self, present_flags) from None
4606
4613
  */
4607
4614
  __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);
4615
+ __pyx_t_13 = NULL;
4616
+ __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)
4617
+ __Pyx_GOTREF(__pyx_t_14);
4611
4618
  __pyx_t_4 = 1;
4612
4619
  #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);
4620
+ if (unlikely(PyMethod_Check(__pyx_t_14))) {
4621
+ __pyx_t_13 = PyMethod_GET_SELF(__pyx_t_14);
4622
+ assert(__pyx_t_13);
4623
+ PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_14);
4624
+ __Pyx_INCREF(__pyx_t_13);
4618
4625
  __Pyx_INCREF(__pyx__function);
4619
- __Pyx_DECREF_SET(__pyx_t_13, __pyx__function);
4626
+ __Pyx_DECREF_SET(__pyx_t_14, __pyx__function);
4620
4627
  __pyx_t_4 = 0;
4621
4628
  }
4622
4629
  #endif
4623
4630
  {
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;
4631
+ PyObject *__pyx_callargs[2] = {__pyx_t_13, __pyx_v_self};
4632
+ __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));
4633
+ __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
4634
+ __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
4628
4635
  if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 144, __pyx_L6_except_error)
4629
4636
  __Pyx_GOTREF(__pyx_t_3);
4630
4637
  }
@@ -4649,9 +4656,9 @@ static PyObject *__pyx_pf_6a_sync_6a_sync_4base_16ASyncGenericBase_4__a_sync_fla
4649
4656
  * flag = present_flags[0]
4650
4657
  */
4651
4658
  __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)) {
4659
+ __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)
4660
+ __pyx_t_5 = (__pyx_t_17 > 1);
4661
+ if (unlikely(__pyx_t_5)) {
4655
4662
 
4656
4663
  /* "a_sync/a_sync/base.pyx":146
4657
4664
  * raise NoFlagsFound(self) from None
@@ -4661,26 +4668,26 @@ static PyObject *__pyx_pf_6a_sync_6a_sync_4base_16ASyncGenericBase_4__a_sync_fla
4661
4668
  * if not isinstance(flag, str):
4662
4669
  */
4663
4670
  __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);
4671
+ __pyx_t_14 = NULL;
4672
+ __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)
4673
+ __Pyx_GOTREF(__pyx_t_13);
4667
4674
  __pyx_t_4 = 1;
4668
4675
  #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);
4676
+ if (unlikely(PyMethod_Check(__pyx_t_13))) {
4677
+ __pyx_t_14 = PyMethod_GET_SELF(__pyx_t_13);
4678
+ assert(__pyx_t_14);
4679
+ PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_13);
4680
+ __Pyx_INCREF(__pyx_t_14);
4674
4681
  __Pyx_INCREF(__pyx__function);
4675
- __Pyx_DECREF_SET(__pyx_t_12, __pyx__function);
4682
+ __Pyx_DECREF_SET(__pyx_t_13, __pyx__function);
4676
4683
  __pyx_t_4 = 0;
4677
4684
  }
4678
4685
  #endif
4679
4686
  {
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;
4687
+ PyObject *__pyx_callargs[3] = {__pyx_t_14, __pyx_v_self, __pyx_v_present_flags};
4688
+ __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));
4689
+ __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
4690
+ __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
4684
4691
  if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 146, __pyx_L6_except_error)
4685
4692
  __Pyx_GOTREF(__pyx_t_3);
4686
4693
  }
@@ -4709,7 +4716,7 @@ static PyObject *__pyx_pf_6a_sync_6a_sync_4base_16ASyncGenericBase_4__a_sync_fla
4709
4716
  __Pyx_INCREF(__pyx_t_3);
4710
4717
  __Pyx_XDECREF_SET(__pyx_v_flag, __pyx_t_3);
4711
4718
  __pyx_t_3 = 0;
4712
- __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
4719
+ __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
4713
4720
  __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
4714
4721
  __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
4715
4722
  goto __pyx_L5_exception_handled;
@@ -4724,16 +4731,16 @@ static PyObject *__pyx_pf_6a_sync_6a_sync_4base_16ASyncGenericBase_4__a_sync_fla
4724
4731
  * except ASyncFlagException:
4725
4732
  */
4726
4733
  __pyx_L6_except_error:;
4727
- __Pyx_XGIVEREF(__pyx_t_7);
4728
4734
  __Pyx_XGIVEREF(__pyx_t_8);
4729
4735
  __Pyx_XGIVEREF(__pyx_t_9);
4730
- __Pyx_ExceptionReset(__pyx_t_7, __pyx_t_8, __pyx_t_9);
4736
+ __Pyx_XGIVEREF(__pyx_t_10);
4737
+ __Pyx_ExceptionReset(__pyx_t_8, __pyx_t_9, __pyx_t_10);
4731
4738
  goto __pyx_L1_error;
4732
4739
  __pyx_L5_exception_handled:;
4733
- __Pyx_XGIVEREF(__pyx_t_7);
4734
4740
  __Pyx_XGIVEREF(__pyx_t_8);
4735
4741
  __Pyx_XGIVEREF(__pyx_t_9);
4736
- __Pyx_ExceptionReset(__pyx_t_7, __pyx_t_8, __pyx_t_9);
4742
+ __Pyx_XGIVEREF(__pyx_t_10);
4743
+ __Pyx_ExceptionReset(__pyx_t_8, __pyx_t_9, __pyx_t_10);
4737
4744
  __pyx_L9_try_end:;
4738
4745
  }
4739
4746
 
@@ -4745,9 +4752,9 @@ static PyObject *__pyx_pf_6a_sync_6a_sync_4base_16ASyncGenericBase_4__a_sync_fla
4745
4752
  * return flag
4746
4753
  */
4747
4754
  __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)) {
4755
+ __pyx_t_5 = PyUnicode_Check(__pyx_v_flag);
4756
+ __pyx_t_6 = (!__pyx_t_5);
4757
+ if (unlikely(__pyx_t_6)) {
4751
4758
 
4752
4759
  /* "a_sync/a_sync/base.pyx":149
4753
4760
  * flag = present_flags[0]
@@ -4758,25 +4765,25 @@ static PyObject *__pyx_pf_6a_sync_6a_sync_4base_16ASyncGenericBase_4__a_sync_fla
4758
4765
  */
4759
4766
  __Pyx_TraceLine(149,75,0,__PYX_ERR(0, 149, __pyx_L1_error))
4760
4767
  __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);
4768
+ __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_InvalidFlag); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 149, __pyx_L1_error)
4769
+ __Pyx_GOTREF(__pyx_t_7);
4763
4770
  __pyx_t_4 = 1;
4764
4771
  #if CYTHON_UNPACK_METHODS
4765
- if (unlikely(PyMethod_Check(__pyx_t_6))) {
4766
- __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_6);
4772
+ if (unlikely(PyMethod_Check(__pyx_t_7))) {
4773
+ __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_7);
4767
4774
  assert(__pyx_t_2);
4768
- PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
4775
+ PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
4769
4776
  __Pyx_INCREF(__pyx_t_2);
4770
4777
  __Pyx_INCREF(__pyx__function);
4771
- __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
4778
+ __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
4772
4779
  __pyx_t_4 = 0;
4773
4780
  }
4774
4781
  #endif
4775
4782
  {
4776
4783
  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));
4784
+ __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
4785
  __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
4779
- __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
4786
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
4780
4787
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 149, __pyx_L1_error)
4781
4788
  __Pyx_GOTREF(__pyx_t_1);
4782
4789
  }
@@ -4821,11 +4828,11 @@ static PyObject *__pyx_pf_6a_sync_6a_sync_4base_16ASyncGenericBase_4__a_sync_fla
4821
4828
  __Pyx_XDECREF(__pyx_t_1);
4822
4829
  __Pyx_XDECREF(__pyx_t_2);
4823
4830
  __Pyx_XDECREF(__pyx_t_3);
4824
- __Pyx_XDECREF(__pyx_t_6);
4825
- __Pyx_XDECREF(__pyx_t_11);
4831
+ __Pyx_XDECREF(__pyx_t_7);
4826
4832
  __Pyx_XDECREF(__pyx_t_12);
4827
4833
  __Pyx_XDECREF(__pyx_t_13);
4828
4834
  __Pyx_XDECREF(__pyx_t_14);
4835
+ __Pyx_XDECREF(__pyx_t_15);
4829
4836
  __Pyx_TraceException(__pyx_lineno, 0, 0);
4830
4837
  #if CYTHON_USE_SYS_MONITORING
4831
4838
  __Pyx_TraceExceptionUnwind(0, 0);
@@ -7314,27 +7321,27 @@ static int __Pyx_modinit_type_import_code(__pyx_mstatetype *__pyx_mstate) {
7314
7321
  /*--- Type import code ---*/
7315
7322
  __pyx_t_1 = PyImport_ImportModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 9, __pyx_L1_error)
7316
7323
  __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",
7324
+ __pyx_mstate->__pyx_ptype_7cpython_4type_type = __Pyx_ImportType_3_1_4(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME, "type",
7318
7325
  #if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
7319
- sizeof(PyTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_1_2(PyTypeObject),
7326
+ sizeof(PyTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(PyTypeObject),
7320
7327
  #elif CYTHON_COMPILING_IN_LIMITED_API
7321
7328
  0, 0,
7322
7329
  #else
7323
- sizeof(PyHeapTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_1_2(PyHeapTypeObject),
7330
+ sizeof(PyHeapTypeObject), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(PyHeapTypeObject),
7324
7331
  #endif
7325
- __Pyx_ImportType_CheckSize_Warn_3_1_2); if (!__pyx_mstate->__pyx_ptype_7cpython_4type_type) __PYX_ERR(2, 9, __pyx_L1_error)
7332
+ __Pyx_ImportType_CheckSize_Warn_3_1_4); if (!__pyx_mstate->__pyx_ptype_7cpython_4type_type) __PYX_ERR(2, 9, __pyx_L1_error)
7326
7333
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7327
7334
  __pyx_t_1 = PyImport_ImportModule("a_sync.functools"); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 1, __pyx_L1_error)
7328
7335
  __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",
7336
+ __pyx_mstate->__pyx_ptype_6a_sync_9functools_cached_property_unsafe = __Pyx_ImportType_3_1_4(__pyx_t_1, "a_sync.functools", "cached_property_unsafe",
7330
7337
  #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),
7338
+ sizeof(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe),
7332
7339
  #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),
7340
+ sizeof(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe),
7334
7341
  #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),
7342
+ sizeof(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe), __PYX_GET_STRUCT_ALIGNMENT_3_1_4(struct __pyx_obj_6a_sync_9functools_cached_property_unsafe),
7336
7343
  #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)
7344
+ __Pyx_ImportType_CheckSize_Warn_3_1_4); if (!__pyx_mstate->__pyx_ptype_6a_sync_9functools_cached_property_unsafe) __PYX_ERR(3, 1, __pyx_L1_error)
7338
7345
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7339
7346
  __Pyx_RefNannyFinishContext();
7340
7347
  return 0;
@@ -7355,9 +7362,9 @@ static int __Pyx_modinit_variable_import_code(__pyx_mstatetype *__pyx_mstate) {
7355
7362
  /*--- Variable import code ---*/
7356
7363
  __pyx_t_1 = PyImport_ImportModule("a_sync.a_sync.flags"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
7357
7364
  __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)
7365
+ if (__Pyx_ImportVoidPtr_3_1_4(__pyx_t_1, "AFFIRMATIVE_FLAGS", (void **)&__pyx_vp_6a_sync_6a_sync_5flags_AFFIRMATIVE_FLAGS, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
7366
+ if (__Pyx_ImportVoidPtr_3_1_4(__pyx_t_1, "NEGATIVE_FLAGS", (void **)&__pyx_vp_6a_sync_6a_sync_5flags_NEGATIVE_FLAGS, "PyObject *") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
7367
+ if (__Pyx_ImportVoidPtr_3_1_4(__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
7368
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7362
7369
  __Pyx_RefNannyFinishContext();
7363
7370
  return 0;
@@ -7378,8 +7385,8 @@ static int __Pyx_modinit_function_import_code(__pyx_mstatetype *__pyx_mstate) {
7378
7385
  /*--- Function import code ---*/
7379
7386
  __pyx_t_1 = PyImport_ImportModule("a_sync.a_sync._flags"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
7380
7387
  __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)
7388
+ if (__Pyx_ImportFunction_3_1_4(__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)
7389
+ if (__Pyx_ImportFunction_3_1_4(__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
7390
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
7384
7391
  __Pyx_RefNannyFinishContext();
7385
7392
  return 0;
@@ -10772,6 +10779,13 @@ try_unpack:
10772
10779
 
10773
10780
  /* PyObjectCallMethod0 */
10774
10781
  static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name) {
10782
+ #if CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000))
10783
+ PyObject *args[1] = {obj};
10784
+ (void) __Pyx_PyObject_GetMethod;
10785
+ (void) __Pyx_PyObject_CallOneArg;
10786
+ (void) __Pyx_PyObject_CallNoArg;
10787
+ return PyObject_VectorcallMethod(method_name, args, 1 | PY_VECTORCALL_ARGUMENTS_OFFSET, NULL);
10788
+ #else
10775
10789
  PyObject *method = NULL, *result = NULL;
10776
10790
  int is_method = __Pyx_PyObject_GetMethod(obj, method_name, &method);
10777
10791
  if (likely(is_method)) {
@@ -10784,6 +10798,7 @@ static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name
10784
10798
  Py_DECREF(method);
10785
10799
  bad:
10786
10800
  return result;
10801
+ #endif
10787
10802
  }
10788
10803
 
10789
10804
  /* RaiseNeedMoreValuesToUnpack */
@@ -11133,15 +11148,15 @@ static CYTHON_INLINE int __Pyx_PySet_ContainsTF(PyObject* key, PyObject* set, in
11133
11148
  }
11134
11149
 
11135
11150
  /* 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)
11151
+ #ifndef __PYX_HAVE_RT_ImportType_3_1_4
11152
+ #define __PYX_HAVE_RT_ImportType_3_1_4
11153
+ static PyTypeObject *__Pyx_ImportType_3_1_4(PyObject *module, const char *module_name, const char *class_name,
11154
+ size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_1_4 check_size)
11140
11155
  {
11141
11156
  PyObject *result = 0;
11142
11157
  Py_ssize_t basicsize;
11143
11158
  Py_ssize_t itemsize;
11144
- #if CYTHON_COMPILING_IN_LIMITED_API
11159
+ #ifdef Py_LIMITED_API
11145
11160
  PyObject *py_basicsize;
11146
11161
  PyObject *py_itemsize;
11147
11162
  #endif
@@ -11154,7 +11169,7 @@ static PyTypeObject *__Pyx_ImportType_3_1_2(PyObject *module, const char *module
11154
11169
  module_name, class_name);
11155
11170
  goto bad;
11156
11171
  }
11157
- #if !CYTHON_COMPILING_IN_LIMITED_API
11172
+ #ifndef Py_LIMITED_API
11158
11173
  basicsize = ((PyTypeObject *)result)->tp_basicsize;
11159
11174
  itemsize = ((PyTypeObject *)result)->tp_itemsize;
11160
11175
  #else
@@ -11192,7 +11207,7 @@ static PyTypeObject *__Pyx_ImportType_3_1_2(PyObject *module, const char *module
11192
11207
  module_name, class_name, size, basicsize+itemsize);
11193
11208
  goto bad;
11194
11209
  }
11195
- if (check_size == __Pyx_ImportType_CheckSize_Error_3_1_2 &&
11210
+ if (check_size == __Pyx_ImportType_CheckSize_Error_3_1_4 &&
11196
11211
  ((size_t)basicsize > size || (size_t)(basicsize + itemsize) < size)) {
11197
11212
  PyErr_Format(PyExc_ValueError,
11198
11213
  "%.200s.%.200s size changed, may indicate binary incompatibility. "
@@ -11200,7 +11215,7 @@ static PyTypeObject *__Pyx_ImportType_3_1_2(PyObject *module, const char *module
11200
11215
  module_name, class_name, size, basicsize, basicsize+itemsize);
11201
11216
  goto bad;
11202
11217
  }
11203
- else if (check_size == __Pyx_ImportType_CheckSize_Warn_3_1_2 && (size_t)basicsize > size) {
11218
+ else if (check_size == __Pyx_ImportType_CheckSize_Warn_3_1_4 && (size_t)basicsize > size) {
11204
11219
  if (PyErr_WarnFormat(NULL, 0,
11205
11220
  "%.200s.%.200s size changed, may indicate binary incompatibility. "
11206
11221
  "Expected %zd from C header, got %zd from PyObject",
@@ -11738,6 +11753,7 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
11738
11753
  changed = 1;
11739
11754
  }
11740
11755
  #endif // CYTHON_METH_FASTCALL
11756
+ #if !CYTHON_COMPILING_IN_PYPY
11741
11757
  else if (strcmp(memb->name, "__module__") == 0) {
11742
11758
  PyObject *descr;
11743
11759
  assert(memb->type == T_OBJECT);
@@ -11752,11 +11768,13 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
11752
11768
  }
11753
11769
  changed = 1;
11754
11770
  }
11771
+ #endif // !CYTHON_COMPILING_IN_PYPY
11755
11772
  }
11756
11773
  memb++;
11757
11774
  }
11758
11775
  }
11759
11776
  #endif // !CYTHON_COMPILING_IN_LIMITED_API
11777
+ #if !CYTHON_COMPILING_IN_PYPY
11760
11778
  slot = spec->slots;
11761
11779
  while (slot && slot->slot && slot->slot != Py_tp_getset)
11762
11780
  slot++;
@@ -11788,6 +11806,7 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
11788
11806
  ++getset;
11789
11807
  }
11790
11808
  }
11809
+ #endif // !CYTHON_COMPILING_IN_PYPY
11791
11810
  if (changed)
11792
11811
  PyType_Modified(type);
11793
11812
  #endif // PY_VERSION_HEX > 0x030900B1
@@ -11920,7 +11939,7 @@ bad:
11920
11939
  }
11921
11940
 
11922
11941
  /* CommonTypesMetaclass */
11923
- PyObject* __pyx_CommonTypesMetaclass_get_module(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED void* context) {
11942
+ static PyObject* __pyx_CommonTypesMetaclass_get_module(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED void* context) {
11924
11943
  return PyUnicode_FromString(__PYX_ABI_MODULE_NAME);
11925
11944
  }
11926
11945
  static PyGetSetDef __pyx_CommonTypesMetaclass_getset[] = {
@@ -11949,6 +11968,7 @@ static int __pyx_CommonTypesMetaclass_init(PyObject *module) {
11949
11968
  return -1;
11950
11969
  }
11951
11970
  mstate->__pyx_CommonTypesMetaclassType = __Pyx_FetchCommonTypeFromSpec(NULL, module, &__pyx_CommonTypesMetaclass_spec, bases);
11971
+ Py_DECREF(bases);
11952
11972
  if (unlikely(mstate->__pyx_CommonTypesMetaclassType == NULL)) {
11953
11973
  return -1;
11954
11974
  }
@@ -14224,9 +14244,9 @@ static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt
14224
14244
  }
14225
14245
 
14226
14246
  /* 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) {
14247
+ #ifndef __PYX_HAVE_RT_ImportVoidPtr_3_1_4
14248
+ #define __PYX_HAVE_RT_ImportVoidPtr_3_1_4
14249
+ static int __Pyx_ImportVoidPtr_3_1_4(PyObject *module, const char *name, void **p, const char *sig) {
14230
14250
  PyObject *d = 0;
14231
14251
  PyObject *cobj = 0;
14232
14252
  d = PyObject_GetAttrString(module, "__pyx_capi__");
@@ -14264,9 +14284,9 @@ bad:
14264
14284
  #endif
14265
14285
 
14266
14286
  /* 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) {
14287
+ #ifndef __PYX_HAVE_RT_ImportFunction_3_1_4
14288
+ #define __PYX_HAVE_RT_ImportFunction_3_1_4
14289
+ static int __Pyx_ImportFunction_3_1_4(PyObject *module, const char *funcname, void (**f)(void), const char *sig) {
14270
14290
  PyObject *d = 0;
14271
14291
  PyObject *cobj = 0;
14272
14292
  union {
@@ -14368,6 +14388,10 @@ bad:
14368
14388
  PyCode_NewWithPosOnlyArgs
14369
14389
  #endif
14370
14390
  (a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, name, fline, lnos, __pyx_mstate_global->__pyx_empty_bytes);
14391
+ #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030c00A1
14392
+ if (likely(result))
14393
+ result->_co_firsttraceable = 0;
14394
+ #endif
14371
14395
  return result;
14372
14396
  }
14373
14397
  #elif PY_VERSION_HEX >= 0x030800B2 && !CYTHON_COMPILING_IN_PYPY