ez-a-sync 0.32.26__cp38-cp38-macosx_11_0_arm64.whl → 0.32.28__cp38-cp38-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-38-darwin.so +0 -0
  3. a_sync/a_sync/_descriptor.c +80 -60
  4. a_sync/a_sync/_descriptor.cpython-38-darwin.so +0 -0
  5. a_sync/a_sync/_flags.c +13 -10
  6. a_sync/a_sync/_flags.cpython-38-darwin.so +0 -0
  7. a_sync/a_sync/_helpers.c +76 -56
  8. a_sync/a_sync/_helpers.cpython-38-darwin.so +0 -0
  9. a_sync/a_sync/_kwargs.c +45 -25
  10. a_sync/a_sync/_kwargs.cpython-38-darwin.so +0 -0
  11. a_sync/a_sync/abstract.c +54 -24
  12. a_sync/a_sync/abstract.cpython-38-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-38-darwin.so +0 -0
  16. a_sync/a_sync/flags.c +13 -10
  17. a_sync/a_sync/flags.cpython-38-darwin.so +0 -0
  18. a_sync/a_sync/function.c +107 -78
  19. a_sync/a_sync/function.cpython-38-darwin.so +0 -0
  20. a_sync/a_sync/method.c +157 -125
  21. a_sync/a_sync/method.cpython-38-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-38-darwin.so +0 -0
  25. a_sync/a_sync/property.c +104 -78
  26. a_sync/a_sync/property.cpython-38-darwin.so +0 -0
  27. a_sync/async_property/cached.c +66 -46
  28. a_sync/async_property/cached.cpython-38-darwin.so +0 -0
  29. a_sync/async_property/proxy.c +36 -16
  30. a_sync/async_property/proxy.cpython-38-darwin.so +0 -0
  31. a_sync/asyncio/as_completed.c +33 -13
  32. a_sync/asyncio/as_completed.cpython-38-darwin.so +0 -0
  33. a_sync/asyncio/create_task.c +59 -21
  34. a_sync/asyncio/create_task.cpython-38-darwin.so +0 -0
  35. a_sync/asyncio/gather.c +42 -22
  36. a_sync/asyncio/gather.cpython-38-darwin.so +0 -0
  37. a_sync/asyncio/igather.c +42 -18
  38. a_sync/asyncio/igather.cpython-38-darwin.so +0 -0
  39. a_sync/asyncio/sleep.c +24 -4
  40. a_sync/asyncio/sleep.cpython-38-darwin.so +0 -0
  41. a_sync/debugging.c +52 -32
  42. a_sync/debugging.cpython-38-darwin.so +0 -0
  43. a_sync/exceptions.c +36 -20
  44. a_sync/exceptions.cpython-38-darwin.so +0 -0
  45. a_sync/executor.py +44 -0
  46. a_sync/functools.c +36 -16
  47. a_sync/functools.cpython-38-darwin.so +0 -0
  48. a_sync/iter.c +168 -98
  49. a_sync/iter.cpython-38-darwin.so +0 -0
  50. a_sync/primitives/_debug.c +65 -45
  51. a_sync/primitives/_debug.cpython-38-darwin.so +0 -0
  52. a_sync/primitives/_loggable.c +46 -20
  53. a_sync/primitives/_loggable.cpython-38-darwin.so +0 -0
  54. a_sync/primitives/locks/counter.c +98 -68
  55. a_sync/primitives/locks/counter.cpython-38-darwin.so +0 -0
  56. a_sync/primitives/locks/event.c +75 -54
  57. a_sync/primitives/locks/event.cpython-38-darwin.so +0 -0
  58. a_sync/primitives/locks/prio_semaphore.c +122 -82
  59. a_sync/primitives/locks/prio_semaphore.cpython-38-darwin.so +0 -0
  60. a_sync/primitives/locks/prio_semaphore.pyi +2 -2
  61. a_sync/primitives/locks/semaphore.c +92 -65
  62. a_sync/primitives/locks/semaphore.cpython-38-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-38-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}/LICENSE.txt +0 -0
  70. {ez_a_sync-0.32.26.dist-info → ez_a_sync-0.32.28.dist-info}/WHEEL +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/abstract.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
@@ -1865,18 +1868,18 @@ static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject
1865
1868
  if (!__Pyx_PyThreadState_Current->tracing) {\
1866
1869
  if (likely(__pyx_frame_code)) Py_INCREF(__pyx_frame_code);\
1867
1870
  else __pyx_frame_code = (PyObject*) __Pyx_createFrameCodeObject(funcname, srcfile, firstlineno);\
1868
- if (unlikely(!__pyx_frame_code)) goto_error;\
1869
- ret = __Pyx__TraceStartFunc(__pyx_pymonitoring_state, __pyx_frame_code, offset, skip_event);\
1870
- }\
1871
+ if (unlikely(!__pyx_frame_code)) ret = -1;\
1872
+ else ret = __Pyx__TraceStartFunc(__pyx_pymonitoring_state, __pyx_frame_code, offset, skip_event);\
1873
+ } else __pyx_frame_code = NULL;\
1871
1874
  PyGILState_Release(state);\
1872
- }\
1875
+ } else __pyx_frame_code = NULL;\
1873
1876
  } else {\
1874
1877
  if (!__Pyx_PyThreadState_Current->tracing) {\
1875
1878
  if (likely(__pyx_frame_code)) Py_INCREF(__pyx_frame_code);\
1876
1879
  else __pyx_frame_code = (PyObject*) __Pyx_createFrameCodeObject(funcname, srcfile, firstlineno);\
1877
- if (unlikely(!__pyx_frame_code)) goto_error;\
1878
- ret = __Pyx__TraceStartFunc(__pyx_pymonitoring_state, __pyx_frame_code, offset, skip_event);\
1879
- }\
1880
+ if (unlikely(!__pyx_frame_code)) ret = -1;\
1881
+ else ret = __Pyx__TraceStartFunc(__pyx_pymonitoring_state, __pyx_frame_code, offset, skip_event);\
1882
+ } else __pyx_frame_code = NULL;\
1880
1883
  }\
1881
1884
  if (unlikely(ret == -1)) goto_error;\
1882
1885
  }
@@ -2735,7 +2738,7 @@ static unsigned long __Pyx_get_runtime_version(void);
2735
2738
  static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt_version, int allow_newer);
2736
2739
 
2737
2740
  /* FunctionImport.proto */
2738
- static int __Pyx_ImportFunction_3_1_2(PyObject *module, const char *funcname, void (**f)(void), const char *sig);
2741
+ static int __Pyx_ImportFunction_3_1_4(PyObject *module, const char *funcname, void (**f)(void), const char *sig);
2739
2742
 
2740
2743
  /* MultiPhaseInitModuleState.proto */
2741
2744
  #if CYTHON_PEP489_MULTI_PHASE_INIT && CYTHON_USE_MODULE_STATE
@@ -3872,8 +3875,14 @@ static PyObject *__pyx_pf_6a_sync_6a_sync_8abstract_8ASyncABC_2__a_sync_should_a
3872
3875
  *
3873
3876
  */
3874
3877
  __Pyx_TraceLine(98,7,0,__PYX_ERR(0, 98, __pyx_L1_error))
3875
- __pyx_t_2 = (__pyx_v_flag != Py_None)&&(__Pyx_PyUnicode_IS_TRUE(__pyx_v_flag) != 0);
3876
- if (unlikely(((!CYTHON_ASSUME_SAFE_MACROS) && __pyx_t_2 < 0))) __PYX_ERR(0, 98, __pyx_L1_error)
3878
+ if (__pyx_v_flag == Py_None) __pyx_t_2 = 0;
3879
+ else
3880
+ {
3881
+ Py_ssize_t __pyx_temp = __Pyx_PyUnicode_IS_TRUE(__pyx_v_flag);
3882
+ if (unlikely(((!CYTHON_ASSUME_SAFE_SIZE) && __pyx_temp < 0))) __PYX_ERR(0, 98, __pyx_L1_error)
3883
+ __pyx_t_2 = (__pyx_temp != 0);
3884
+ }
3885
+
3877
3886
  if (__pyx_t_2) {
3878
3887
 
3879
3888
  /* "a_sync/a_sync/abstract.pyx":99
@@ -4828,8 +4837,14 @@ static PyObject *__pyx_pf_6a_sync_6a_sync_8abstract_8ASyncABC_6__a_sync_instance
4828
4837
  */
4829
4838
  __Pyx_TraceLine(176,22,0,__PYX_ERR(0, 176, __pyx_L1_error))
4830
4839
  __Pyx_XDECREF(__pyx_r);
4831
- __pyx_t_5 = (__pyx_v_flag != Py_None)&&(__Pyx_PyUnicode_IS_TRUE(__pyx_v_flag) != 0);
4832
- if (unlikely(((!CYTHON_ASSUME_SAFE_MACROS) && __pyx_t_5 < 0))) __PYX_ERR(0, 176, __pyx_L1_error)
4840
+ if (__pyx_v_flag == Py_None) __pyx_t_5 = 0;
4841
+ else
4842
+ {
4843
+ Py_ssize_t __pyx_temp = __Pyx_PyUnicode_IS_TRUE(__pyx_v_flag);
4844
+ if (unlikely(((!CYTHON_ASSUME_SAFE_SIZE) && __pyx_temp < 0))) __PYX_ERR(0, 176, __pyx_L1_error)
4845
+ __pyx_t_5 = (__pyx_temp != 0);
4846
+ }
4847
+
4833
4848
  if (__pyx_t_5) {
4834
4849
  __pyx_t_6 = __pyx_f_6a_sync_6a_sync_7_kwargs_is_sync(__pyx_v_flag, __pyx_v_kwargs, 0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 176, __pyx_L1_error)
4835
4850
  __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 176, __pyx_L1_error)
@@ -4872,8 +4887,14 @@ static PyObject *__pyx_pf_6a_sync_6a_sync_8abstract_8ASyncABC_6__a_sync_instance
4872
4887
  * "No valid flags found in kwargs, checking class definition for defined default", ()
4873
4888
  */
4874
4889
  __Pyx_TraceLine(178,34,0,__PYX_ERR(0, 178, __pyx_L1_error))
4875
- __pyx_t_5 = (__pyx_v_flag != Py_None)&&(__Pyx_PyUnicode_IS_TRUE(__pyx_v_flag) != 0);
4876
- if (unlikely(((!CYTHON_ASSUME_SAFE_MACROS) && __pyx_t_5 < 0))) __PYX_ERR(0, 178, __pyx_L1_error)
4890
+ if (__pyx_v_flag == Py_None) __pyx_t_5 = 0;
4891
+ else
4892
+ {
4893
+ Py_ssize_t __pyx_temp = __Pyx_PyUnicode_IS_TRUE(__pyx_v_flag);
4894
+ if (unlikely(((!CYTHON_ASSUME_SAFE_SIZE) && __pyx_temp < 0))) __PYX_ERR(0, 178, __pyx_L1_error)
4895
+ __pyx_t_5 = (__pyx_temp != 0);
4896
+ }
4897
+
4877
4898
  __pyx_t_6 = (!__pyx_t_5);
4878
4899
  if (__pyx_t_6) {
4879
4900
 
@@ -5617,12 +5638,12 @@ static int __Pyx_modinit_function_import_code(__pyx_mstatetype *__pyx_mstate) {
5617
5638
  /*--- Function import code ---*/
5618
5639
  __pyx_t_1 = PyImport_ImportModule("a_sync.a_sync._kwargs"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
5619
5640
  __Pyx_GOTREF(__pyx_t_1);
5620
- if (__Pyx_ImportFunction_3_1_2(__pyx_t_1, "get_flag_name", (void (**)(void))&__pyx_f_6a_sync_6a_sync_7_kwargs_get_flag_name, "PyObject *(PyObject *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
5621
- if (__Pyx_ImportFunction_3_1_2(__pyx_t_1, "is_sync", (void (**)(void))&__pyx_f_6a_sync_6a_sync_7_kwargs_is_sync, "int (PyObject *, PyObject *, int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
5641
+ if (__Pyx_ImportFunction_3_1_4(__pyx_t_1, "get_flag_name", (void (**)(void))&__pyx_f_6a_sync_6a_sync_7_kwargs_get_flag_name, "PyObject *(PyObject *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
5642
+ if (__Pyx_ImportFunction_3_1_4(__pyx_t_1, "is_sync", (void (**)(void))&__pyx_f_6a_sync_6a_sync_7_kwargs_is_sync, "int (PyObject *, PyObject *, int)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
5622
5643
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
5623
5644
  __pyx_t_1 = PyImport_ImportModule("a_sync.a_sync._flags"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
5624
5645
  __Pyx_GOTREF(__pyx_t_1);
5625
- if (__Pyx_ImportFunction_3_1_2(__pyx_t_1, "validate_and_negate_if_necessary", (void (**)(void))&__pyx_f_6a_sync_6a_sync_6_flags_validate_and_negate_if_necessary, "int (PyObject *, PyObject *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
5646
+ 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)
5626
5647
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
5627
5648
  __Pyx_RefNannyFinishContext();
5628
5649
  return 0;
@@ -8769,6 +8790,7 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
8769
8790
  changed = 1;
8770
8791
  }
8771
8792
  #endif // CYTHON_METH_FASTCALL
8793
+ #if !CYTHON_COMPILING_IN_PYPY
8772
8794
  else if (strcmp(memb->name, "__module__") == 0) {
8773
8795
  PyObject *descr;
8774
8796
  assert(memb->type == T_OBJECT);
@@ -8783,11 +8805,13 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
8783
8805
  }
8784
8806
  changed = 1;
8785
8807
  }
8808
+ #endif // !CYTHON_COMPILING_IN_PYPY
8786
8809
  }
8787
8810
  memb++;
8788
8811
  }
8789
8812
  }
8790
8813
  #endif // !CYTHON_COMPILING_IN_LIMITED_API
8814
+ #if !CYTHON_COMPILING_IN_PYPY
8791
8815
  slot = spec->slots;
8792
8816
  while (slot && slot->slot && slot->slot != Py_tp_getset)
8793
8817
  slot++;
@@ -8819,6 +8843,7 @@ static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject
8819
8843
  ++getset;
8820
8844
  }
8821
8845
  }
8846
+ #endif // !CYTHON_COMPILING_IN_PYPY
8822
8847
  if (changed)
8823
8848
  PyType_Modified(type);
8824
8849
  #endif // PY_VERSION_HEX > 0x030900B1
@@ -8951,7 +8976,7 @@ bad:
8951
8976
  }
8952
8977
 
8953
8978
  /* CommonTypesMetaclass */
8954
- PyObject* __pyx_CommonTypesMetaclass_get_module(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED void* context) {
8979
+ static PyObject* __pyx_CommonTypesMetaclass_get_module(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED void* context) {
8955
8980
  return PyUnicode_FromString(__PYX_ABI_MODULE_NAME);
8956
8981
  }
8957
8982
  static PyGetSetDef __pyx_CommonTypesMetaclass_getset[] = {
@@ -8980,6 +9005,7 @@ static int __pyx_CommonTypesMetaclass_init(PyObject *module) {
8980
9005
  return -1;
8981
9006
  }
8982
9007
  mstate->__pyx_CommonTypesMetaclassType = __Pyx_FetchCommonTypeFromSpec(NULL, module, &__pyx_CommonTypesMetaclass_spec, bases);
9008
+ Py_DECREF(bases);
8983
9009
  if (unlikely(mstate->__pyx_CommonTypesMetaclassType == NULL)) {
8984
9010
  return -1;
8985
9011
  }
@@ -11470,9 +11496,9 @@ static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt
11470
11496
  }
11471
11497
 
11472
11498
  /* FunctionImport */
11473
- #ifndef __PYX_HAVE_RT_ImportFunction_3_1_2
11474
- #define __PYX_HAVE_RT_ImportFunction_3_1_2
11475
- static int __Pyx_ImportFunction_3_1_2(PyObject *module, const char *funcname, void (**f)(void), const char *sig) {
11499
+ #ifndef __PYX_HAVE_RT_ImportFunction_3_1_4
11500
+ #define __PYX_HAVE_RT_ImportFunction_3_1_4
11501
+ static int __Pyx_ImportFunction_3_1_4(PyObject *module, const char *funcname, void (**f)(void), const char *sig) {
11476
11502
  PyObject *d = 0;
11477
11503
  PyObject *cobj = 0;
11478
11504
  union {
@@ -11574,6 +11600,10 @@ bad:
11574
11600
  PyCode_NewWithPosOnlyArgs
11575
11601
  #endif
11576
11602
  (a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, name, fline, lnos, __pyx_mstate_global->__pyx_empty_bytes);
11603
+ #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030c00A1
11604
+ if (likely(result))
11605
+ result->_co_firsttraceable = 0;
11606
+ #endif
11577
11607
  return result;
11578
11608
  }
11579
11609
  #elif PY_VERSION_HEX >= 0x030800B2 && !CYTHON_COMPILING_IN_PYPY
Binary file
@@ -12,13 +12,13 @@ is intended for more custom implementations if necessary.
12
12
  from a_sync._typing import *
13
13
  import abc
14
14
  import functools
15
- from _typeshed import Incomplete
15
+ import logging
16
16
  from a_sync import exceptions as exceptions
17
17
  from a_sync.a_sync import modifiers as modifiers
18
18
  from a_sync.a_sync._meta import ASyncMeta as ASyncMeta
19
19
  from a_sync.exceptions import NoFlagsFound as NoFlagsFound
20
20
 
21
- logger: Incomplete
21
+ logger: logging.Logger
22
22
 
23
23
  class ASyncABC(metaclass=ASyncMeta):
24
24
  """Abstract Base Class for defining asynchronous and synchronous behavior.