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

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

Potentially problematic release.


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

Files changed (71) hide show
  1. a_sync/_smart.c +58 -38
  2. a_sync/_smart.cpython-313-darwin.so +0 -0
  3. a_sync/a_sync/_descriptor.c +80 -60
  4. a_sync/a_sync/_descriptor.cpython-313-darwin.so +0 -0
  5. a_sync/a_sync/_flags.c +13 -10
  6. a_sync/a_sync/_flags.cpython-313-darwin.so +0 -0
  7. a_sync/a_sync/_helpers.c +76 -56
  8. a_sync/a_sync/_helpers.cpython-313-darwin.so +0 -0
  9. a_sync/a_sync/_kwargs.c +45 -25
  10. a_sync/a_sync/_kwargs.cpython-313-darwin.so +0 -0
  11. a_sync/a_sync/abstract.c +54 -24
  12. a_sync/a_sync/abstract.cpython-313-darwin.so +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.cpython-313-darwin.so +0 -0
  16. a_sync/a_sync/flags.c +13 -10
  17. a_sync/a_sync/flags.cpython-313-darwin.so +0 -0
  18. a_sync/a_sync/function.c +104 -75
  19. a_sync/a_sync/function.cpython-313-darwin.so +0 -0
  20. a_sync/a_sync/method.c +157 -125
  21. a_sync/a_sync/method.cpython-313-darwin.so +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.cpython-313-darwin.so +0 -0
  25. a_sync/a_sync/property.c +104 -78
  26. a_sync/a_sync/property.cpython-313-darwin.so +0 -0
  27. a_sync/async_property/cached.c +66 -46
  28. a_sync/async_property/cached.cpython-313-darwin.so +0 -0
  29. a_sync/async_property/proxy.c +36 -16
  30. a_sync/async_property/proxy.cpython-313-darwin.so +0 -0
  31. a_sync/asyncio/as_completed.c +33 -13
  32. a_sync/asyncio/as_completed.cpython-313-darwin.so +0 -0
  33. a_sync/asyncio/create_task.c +59 -21
  34. a_sync/asyncio/create_task.cpython-313-darwin.so +0 -0
  35. a_sync/asyncio/gather.c +42 -22
  36. a_sync/asyncio/gather.cpython-313-darwin.so +0 -0
  37. a_sync/asyncio/igather.c +42 -18
  38. a_sync/asyncio/igather.cpython-313-darwin.so +0 -0
  39. a_sync/asyncio/sleep.c +24 -4
  40. a_sync/asyncio/sleep.cpython-313-darwin.so +0 -0
  41. a_sync/debugging.c +52 -32
  42. a_sync/debugging.cpython-313-darwin.so +0 -0
  43. a_sync/exceptions.c +36 -20
  44. a_sync/exceptions.cpython-313-darwin.so +0 -0
  45. a_sync/executor.py +44 -0
  46. a_sync/functools.c +36 -16
  47. a_sync/functools.cpython-313-darwin.so +0 -0
  48. a_sync/iter.c +168 -98
  49. a_sync/iter.cpython-313-darwin.so +0 -0
  50. a_sync/primitives/_debug.c +65 -45
  51. a_sync/primitives/_debug.cpython-313-darwin.so +0 -0
  52. a_sync/primitives/_loggable.c +46 -20
  53. a_sync/primitives/_loggable.cpython-313-darwin.so +0 -0
  54. a_sync/primitives/locks/counter.c +93 -63
  55. a_sync/primitives/locks/counter.cpython-313-darwin.so +0 -0
  56. a_sync/primitives/locks/event.c +75 -54
  57. a_sync/primitives/locks/event.cpython-313-darwin.so +0 -0
  58. a_sync/primitives/locks/prio_semaphore.c +118 -78
  59. a_sync/primitives/locks/prio_semaphore.cpython-313-darwin.so +0 -0
  60. a_sync/primitives/locks/prio_semaphore.pyi +2 -2
  61. a_sync/primitives/locks/semaphore.c +88 -61
  62. a_sync/primitives/locks/semaphore.cpython-313-darwin.so +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.cpython-313-darwin.so +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/functools.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
  {
@@ -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_4"
33
+ #define CYTHON_HEX_VERSION 0x030104F0
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
@@ -1964,18 +1967,18 @@ static void __Pyx_RaiseArgtupleInvalid(const char* func_name, int exact,
1964
1967
  if (!__Pyx_PyThreadState_Current->tracing) {\
1965
1968
  if (likely(__pyx_frame_code)) Py_INCREF(__pyx_frame_code);\
1966
1969
  else __pyx_frame_code = (PyObject*) __Pyx_createFrameCodeObject(funcname, srcfile, firstlineno);\
1967
- if (unlikely(!__pyx_frame_code)) goto_error;\
1968
- ret = __Pyx__TraceStartFunc(__pyx_pymonitoring_state, __pyx_frame_code, offset, skip_event);\
1969
- }\
1970
+ if (unlikely(!__pyx_frame_code)) ret = -1;\
1971
+ else ret = __Pyx__TraceStartFunc(__pyx_pymonitoring_state, __pyx_frame_code, offset, skip_event);\
1972
+ } else __pyx_frame_code = NULL;\
1970
1973
  PyGILState_Release(state);\
1971
- }\
1974
+ } else __pyx_frame_code = NULL;\
1972
1975
  } else {\
1973
1976
  if (!__Pyx_PyThreadState_Current->tracing) {\
1974
1977
  if (likely(__pyx_frame_code)) Py_INCREF(__pyx_frame_code);\
1975
1978
  else __pyx_frame_code = (PyObject*) __Pyx_createFrameCodeObject(funcname, srcfile, firstlineno);\
1976
- if (unlikely(!__pyx_frame_code)) goto_error;\
1977
- ret = __Pyx__TraceStartFunc(__pyx_pymonitoring_state, __pyx_frame_code, offset, skip_event);\
1978
- }\
1979
+ if (unlikely(!__pyx_frame_code)) ret = -1;\
1980
+ else ret = __Pyx__TraceStartFunc(__pyx_pymonitoring_state, __pyx_frame_code, offset, skip_event);\
1981
+ } else __pyx_frame_code = NULL;\
1979
1982
  }\
1980
1983
  if (unlikely(ret == -1)) goto_error;\
1981
1984
  }
@@ -6316,7 +6319,7 @@ __Pyx_RefNannySetupContext("PyInit_functools", 0);
6316
6319
  (void)__Pyx_modinit_variable_import_code(__pyx_mstate);
6317
6320
  (void)__Pyx_modinit_function_import_code(__pyx_mstate);
6318
6321
  /*--- Execution code ---*/
6319
- __Pyx_TraceStartFunc("PyInit_functools", __pyx_f[0], 1, 1, 0, 0, __PYX_ERR(0, 1, __pyx_L1_error));
6322
+ __Pyx_TraceStartFunc("PyInit_functools", __pyx_f[0], 1, 0, 0, 0, __PYX_ERR(0, 1, __pyx_L1_error));
6320
6323
 
6321
6324
  /* "a_sync/functools.pyx":1
6322
6325
  * from typing import Optional # <<<<<<<<<<<<<<
@@ -6378,7 +6381,7 @@ __Pyx_RefNannySetupContext("PyInit_functools", 0);
6378
6381
  * raise TypeError, "no default __reduce__ due to non-trivial __cinit__"
6379
6382
  * def __setstate_cython__(self, __pyx_state):
6380
6383
  */
6381
- __Pyx_TraceLine(1,0,0,__PYX_ERR(2, 1, __pyx_L1_error))
6384
+ __Pyx_TraceLine(1,1,0,__PYX_ERR(2, 1, __pyx_L1_error))
6382
6385
  __pyx_t_3 = __Pyx_CyFunction_New(&__pyx_mdef_6a_sync_9functools_22cached_property_unsafe_7__reduce_cython__, __Pyx_CYFUNCTION_CCLASS, __pyx_mstate_global->__pyx_n_u_cached_property_unsafe___reduce, NULL, __pyx_mstate_global->__pyx_n_u_a_sync_functools, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[6])); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1, __pyx_L1_error)
6383
6386
  __Pyx_GOTREF(__pyx_t_3);
6384
6387
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_reduce_cython, __pyx_t_3) < 0) __PYX_ERR(2, 1, __pyx_L1_error)
@@ -6425,12 +6428,12 @@ __Pyx_RefNannySetupContext("PyInit_functools", 0);
6425
6428
  *
6426
6429
  *
6427
6430
  */
6428
- __Pyx_TraceLine(1,1,0,__PYX_ERR(0, 1, __pyx_L1_error))
6431
+ __Pyx_TraceLine(1,0,0,__PYX_ERR(0, 1, __pyx_L1_error))
6429
6432
  __pyx_t_3 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1, __pyx_L1_error)
6430
6433
  __Pyx_GOTREF(__pyx_t_3);
6431
6434
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_test, __pyx_t_3) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
6432
6435
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
6433
- __Pyx_TraceReturnValue(Py_None, 1, 0, __PYX_ERR(0, 1, __pyx_L1_error));
6436
+ __Pyx_TraceReturnValue(Py_None, 0, 0, __PYX_ERR(0, 1, __pyx_L1_error));
6434
6437
  __Pyx_PyMonitoring_ExitScope(0);
6435
6438
 
6436
6439
  /*--- Wrapped vars code ---*/
@@ -6441,7 +6444,7 @@ __Pyx_RefNannySetupContext("PyInit_functools", 0);
6441
6444
  __Pyx_XDECREF(__pyx_t_3);
6442
6445
  __Pyx_XDECREF(__pyx_t_4);
6443
6446
  __Pyx_TraceException(__pyx_lineno, 0, 0);
6444
- __Pyx_TraceExceptionUnwind(1, 0);
6447
+ __Pyx_TraceExceptionUnwind(0, 0);
6445
6448
  if (__pyx_m) {
6446
6449
  if (__pyx_mstate->__pyx_d && stringtab_initialized) {
6447
6450
  __Pyx_AddTraceback("init a_sync.functools", __pyx_clineno, __pyx_lineno, __pyx_filename);
@@ -8776,6 +8779,7 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
8776
8779
  changed = 1;
8777
8780
  }
8778
8781
  #endif // CYTHON_METH_FASTCALL
8782
+ #if !CYTHON_COMPILING_IN_PYPY
8779
8783
  else if (strcmp(memb->name, "__module__") == 0) {
8780
8784
  PyObject *descr;
8781
8785
  assert(memb->type == T_OBJECT);
@@ -8790,11 +8794,13 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
8790
8794
  }
8791
8795
  changed = 1;
8792
8796
  }
8797
+ #endif // !CYTHON_COMPILING_IN_PYPY
8793
8798
  }
8794
8799
  memb++;
8795
8800
  }
8796
8801
  }
8797
8802
  #endif // !CYTHON_COMPILING_IN_LIMITED_API
8803
+ #if !CYTHON_COMPILING_IN_PYPY
8798
8804
  slot = spec->slots;
8799
8805
  while (slot && slot->slot && slot->slot != Py_tp_getset)
8800
8806
  slot++;
@@ -8826,6 +8832,7 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
8826
8832
  ++getset;
8827
8833
  }
8828
8834
  }
8835
+ #endif // !CYTHON_COMPILING_IN_PYPY
8829
8836
  if (changed)
8830
8837
  PyType_Modified(type);
8831
8838
  #endif // PY_VERSION_HEX > 0x030900B1
@@ -8958,7 +8965,7 @@ bad:
8958
8965
  }
8959
8966
 
8960
8967
  /* CommonTypesMetaclass */
8961
- PyObject* __pyx_CommonTypesMetaclass_get_module(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED void* context) {
8968
+ static PyObject* __pyx_CommonTypesMetaclass_get_module(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED void* context) {
8962
8969
  return PyUnicode_FromString(__PYX_ABI_MODULE_NAME);
8963
8970
  }
8964
8971
  static PyGetSetDef __pyx_CommonTypesMetaclass_getset[] = {
@@ -8987,6 +8994,7 @@ static int __pyx_CommonTypesMetaclass_init(PyObject *module) {
8987
8994
  return -1;
8988
8995
  }
8989
8996
  mstate->__pyx_CommonTypesMetaclassType = __Pyx_FetchCommonTypeFromSpec(NULL, module, &__pyx_CommonTypesMetaclass_spec, bases);
8997
+ Py_DECREF(bases);
8990
8998
  if (unlikely(mstate->__pyx_CommonTypesMetaclassType == NULL)) {
8991
8999
  return -1;
8992
9000
  }
@@ -10256,6 +10264,13 @@ try_unpack:
10256
10264
 
10257
10265
  /* PyObjectCallMethod0 */
10258
10266
  static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name) {
10267
+ #if CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000))
10268
+ PyObject *args[1] = {obj};
10269
+ (void) __Pyx_PyObject_GetMethod;
10270
+ (void) __Pyx_PyObject_CallOneArg;
10271
+ (void) __Pyx_PyObject_CallNoArg;
10272
+ return PyObject_VectorcallMethod(method_name, args, 1 | PY_VECTORCALL_ARGUMENTS_OFFSET, NULL);
10273
+ #else
10259
10274
  PyObject *method = NULL, *result = NULL;
10260
10275
  int is_method = __Pyx_PyObject_GetMethod(obj, method_name, &method);
10261
10276
  if (likely(is_method)) {
@@ -10268,6 +10283,7 @@ static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name
10268
10283
  Py_DECREF(method);
10269
10284
  bad:
10270
10285
  return result;
10286
+ #endif
10271
10287
  }
10272
10288
 
10273
10289
  /* ValidateBasesTuple */
@@ -11886,6 +11902,10 @@ bad:
11886
11902
  PyCode_NewWithPosOnlyArgs
11887
11903
  #endif
11888
11904
  (a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, name, fline, lnos, __pyx_mstate_global->__pyx_empty_bytes);
11905
+ #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030c00A1
11906
+ if (likely(result))
11907
+ result->_co_firsttraceable = 0;
11908
+ #endif
11889
11909
  return result;
11890
11910
  }
11891
11911
  #elif PY_VERSION_HEX >= 0x030800B2 && !CYTHON_COMPILING_IN_PYPY
Binary file