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.
- a_sync/_smart.c +63 -43
- a_sync/_smart.cp313-win_amd64.pyd +0 -0
- a_sync/a_sync/_descriptor.c +83 -63
- a_sync/a_sync/_descriptor.cp313-win_amd64.pyd +0 -0
- a_sync/a_sync/_flags.c +13 -10
- a_sync/a_sync/_flags.cp313-win_amd64.pyd +0 -0
- a_sync/a_sync/_helpers.c +76 -56
- a_sync/a_sync/_helpers.cp313-win_amd64.pyd +0 -0
- a_sync/a_sync/_kwargs.c +45 -25
- a_sync/a_sync/_kwargs.cp313-win_amd64.pyd +0 -0
- a_sync/a_sync/abstract.c +54 -24
- a_sync/a_sync/abstract.cp313-win_amd64.pyd +0 -0
- a_sync/a_sync/abstract.pyi +2 -2
- a_sync/a_sync/base.c +186 -162
- a_sync/a_sync/base.cp313-win_amd64.pyd +0 -0
- a_sync/a_sync/flags.c +13 -10
- a_sync/a_sync/flags.cp313-win_amd64.pyd +0 -0
- a_sync/a_sync/function.c +103 -74
- a_sync/a_sync/function.cp313-win_amd64.pyd +0 -0
- a_sync/a_sync/method.c +152 -120
- a_sync/a_sync/method.cp313-win_amd64.pyd +0 -0
- a_sync/a_sync/method.pyi +2 -1
- a_sync/a_sync/modifiers/manager.c +60 -40
- a_sync/a_sync/modifiers/manager.cp313-win_amd64.pyd +0 -0
- a_sync/a_sync/property.c +104 -78
- a_sync/a_sync/property.cp313-win_amd64.pyd +0 -0
- a_sync/async_property/cached.c +71 -51
- a_sync/async_property/cached.cp313-win_amd64.pyd +0 -0
- a_sync/async_property/proxy.c +37 -17
- a_sync/async_property/proxy.cp313-win_amd64.pyd +0 -0
- a_sync/asyncio/as_completed.c +33 -13
- a_sync/asyncio/as_completed.cp313-win_amd64.pyd +0 -0
- a_sync/asyncio/create_task.c +59 -21
- a_sync/asyncio/create_task.cp313-win_amd64.pyd +0 -0
- a_sync/asyncio/gather.c +42 -22
- a_sync/asyncio/gather.cp313-win_amd64.pyd +0 -0
- a_sync/asyncio/igather.c +42 -18
- a_sync/asyncio/igather.cp313-win_amd64.pyd +0 -0
- a_sync/asyncio/sleep.c +24 -4
- a_sync/asyncio/sleep.cp313-win_amd64.pyd +0 -0
- a_sync/debugging.c +52 -32
- a_sync/debugging.cp313-win_amd64.pyd +0 -0
- a_sync/exceptions.c +36 -20
- a_sync/exceptions.cp313-win_amd64.pyd +0 -0
- a_sync/executor.py +44 -0
- a_sync/functools.c +31 -11
- a_sync/functools.cp313-win_amd64.pyd +0 -0
- a_sync/iter.c +166 -96
- a_sync/iter.cp313-win_amd64.pyd +0 -0
- a_sync/primitives/_debug.c +61 -41
- a_sync/primitives/_debug.cp313-win_amd64.pyd +0 -0
- a_sync/primitives/_loggable.c +48 -22
- a_sync/primitives/_loggable.cp313-win_amd64.pyd +0 -0
- a_sync/primitives/locks/counter.c +98 -68
- a_sync/primitives/locks/counter.cp313-win_amd64.pyd +0 -0
- a_sync/primitives/locks/event.c +70 -49
- a_sync/primitives/locks/event.cp313-win_amd64.pyd +0 -0
- a_sync/primitives/locks/prio_semaphore.c +120 -80
- a_sync/primitives/locks/prio_semaphore.cp313-win_amd64.pyd +0 -0
- a_sync/primitives/locks/prio_semaphore.pyi +2 -2
- a_sync/primitives/locks/semaphore.c +96 -69
- a_sync/primitives/locks/semaphore.cp313-win_amd64.pyd +0 -0
- a_sync/primitives/locks/semaphore.pyi +10 -9
- a_sync/primitives/queue.py +5 -1
- a_sync/utils/repr.c +55 -35
- a_sync/utils/repr.cp313-win_amd64.pyd +0 -0
- {ez_a_sync-0.32.26.dist-info → ez_a_sync-0.32.28.dist-info}/METADATA +1 -1
- {ez_a_sync-0.32.26.dist-info → ez_a_sync-0.32.28.dist-info}/RECORD +71 -71
- {ez_a_sync-0.32.26.dist-info → ez_a_sync-0.32.28.dist-info}/WHEEL +0 -0
- {ez_a_sync-0.32.26.dist-info → ez_a_sync-0.32.28.dist-info}/licenses/LICENSE.txt +0 -0
- {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.
|
|
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 "
|
|
33
|
-
#define CYTHON_HEX_VERSION
|
|
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))
|
|
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))
|
|
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
|
|
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
|
-
|
|
3876
|
-
|
|
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
|
-
|
|
4832
|
-
|
|
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
|
-
|
|
4876
|
-
|
|
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 (
|
|
5621
|
-
if (
|
|
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 (
|
|
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
|
|
11474
|
-
#define
|
|
11475
|
-
static int
|
|
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
|
a_sync/a_sync/abstract.pyi
CHANGED
|
@@ -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
|
-
|
|
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:
|
|
21
|
+
logger: logging.Logger
|
|
22
22
|
|
|
23
23
|
class ASyncABC(metaclass=ASyncMeta):
|
|
24
24
|
"""Abstract Base Class for defining asynchronous and synchronous behavior.
|