ez-a-sync 0.32.15__cp311-cp311-win_amd64.whl → 0.32.17__cp311-cp311-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 +1036 -1382
- a_sync/_smart.cp311-win_amd64.pyd +0 -0
- a_sync/_smart.pyx +10 -18
- a_sync/a_sync/_descriptor.c +4 -0
- a_sync/a_sync/_descriptor.cp311-win_amd64.pyd +0 -0
- a_sync/a_sync/_flags.cp311-win_amd64.pyd +0 -0
- a_sync/a_sync/_helpers.c +4 -0
- a_sync/a_sync/_helpers.cp311-win_amd64.pyd +0 -0
- a_sync/a_sync/_kwargs.cp311-win_amd64.pyd +0 -0
- a_sync/a_sync/_meta.py +2 -2
- a_sync/a_sync/abstract.cp311-win_amd64.pyd +0 -0
- a_sync/a_sync/base.cp311-win_amd64.pyd +0 -0
- a_sync/a_sync/flags.cp311-win_amd64.pyd +0 -0
- a_sync/a_sync/function.c +3633 -3272
- a_sync/a_sync/function.cp311-win_amd64.pyd +0 -0
- a_sync/a_sync/function.pxd +5 -1
- a_sync/a_sync/function.pyx +82 -79
- a_sync/a_sync/method.c +9838 -7638
- a_sync/a_sync/method.cp311-win_amd64.pyd +0 -0
- a_sync/a_sync/method.pxd +8 -1
- a_sync/a_sync/method.pyx +108 -84
- a_sync/a_sync/modifiers/manager.cp311-win_amd64.pyd +0 -0
- a_sync/a_sync/property.c +435 -384
- a_sync/a_sync/property.cp311-win_amd64.pyd +0 -0
- a_sync/a_sync/property.pyx +9 -7
- a_sync/async_property/cached.cp311-win_amd64.pyd +0 -0
- a_sync/async_property/proxy.cp311-win_amd64.pyd +0 -0
- a_sync/asyncio/as_completed.cp311-win_amd64.pyd +0 -0
- a_sync/asyncio/create_task.c +680 -759
- a_sync/asyncio/create_task.cp311-win_amd64.pyd +0 -0
- a_sync/asyncio/create_task.pyx +7 -2
- a_sync/asyncio/gather.cp311-win_amd64.pyd +0 -0
- a_sync/asyncio/igather.c +1039 -1389
- a_sync/asyncio/igather.cp311-win_amd64.pyd +0 -0
- a_sync/asyncio/igather.pyx +19 -12
- a_sync/asyncio/sleep.cp311-win_amd64.pyd +0 -0
- a_sync/debugging.cp311-win_amd64.pyd +0 -0
- a_sync/exceptions.cp311-win_amd64.pyd +0 -0
- a_sync/functools.cp311-win_amd64.pyd +0 -0
- a_sync/iter.cp311-win_amd64.pyd +0 -0
- a_sync/primitives/_debug.cp311-win_amd64.pyd +0 -0
- a_sync/primitives/_loggable.cp311-win_amd64.pyd +0 -0
- a_sync/primitives/locks/counter.cp311-win_amd64.pyd +0 -0
- a_sync/primitives/locks/event.cp311-win_amd64.pyd +0 -0
- a_sync/primitives/locks/prio_semaphore.cp311-win_amd64.pyd +0 -0
- a_sync/primitives/locks/semaphore.cp311-win_amd64.pyd +0 -0
- a_sync/task.py +1 -1
- a_sync/utils/repr.cp311-win_amd64.pyd +0 -0
- {ez_a_sync-0.32.15.dist-info → ez_a_sync-0.32.17.dist-info}/METADATA +1 -1
- {ez_a_sync-0.32.15.dist-info → ez_a_sync-0.32.17.dist-info}/RECORD +53 -53
- {ez_a_sync-0.32.15.dist-info → ez_a_sync-0.32.17.dist-info}/WHEEL +0 -0
- {ez_a_sync-0.32.15.dist-info → ez_a_sync-0.32.17.dist-info}/licenses/LICENSE.txt +0 -0
- {ez_a_sync-0.32.15.dist-info → ez_a_sync-0.32.17.dist-info}/top_level.txt +0 -0
|
Binary file
|
a_sync/_smart.pyx
CHANGED
|
@@ -196,7 +196,11 @@ cdef object _get_result(fut: Union["SmartFuture", "SmartTask"]):
|
|
|
196
196
|
raise exc.with_traceback(cached_traceback) from exc.__cause__
|
|
197
197
|
return fut._result
|
|
198
198
|
if PyUnicode_CompareWithASCIIString(state, b"CANCELLED") == 0:
|
|
199
|
-
raise
|
|
199
|
+
raise (
|
|
200
|
+
CancelledError()
|
|
201
|
+
if PY_VERSION_HEX < 0x03090000 # Python 3.9
|
|
202
|
+
else fut._make_cancelled_error()
|
|
203
|
+
)
|
|
200
204
|
raise InvalidStateError('Result is not ready.')
|
|
201
205
|
|
|
202
206
|
@cython.linetrace(False)
|
|
@@ -213,7 +217,11 @@ cdef object _get_exception(fut: Future):
|
|
|
213
217
|
fut._Future__log_traceback = False
|
|
214
218
|
return fut._exception
|
|
215
219
|
if PyUnicode_CompareWithASCIIString(state, b"CANCELLED") == 0:
|
|
216
|
-
raise
|
|
220
|
+
raise (
|
|
221
|
+
CancelledError()
|
|
222
|
+
if PY_VERSION_HEX < 0x03090000 # Python 3.9
|
|
223
|
+
else fut._make_cancelled_error()
|
|
224
|
+
)
|
|
217
225
|
raise InvalidStateError('Exception is not set.')
|
|
218
226
|
|
|
219
227
|
|
|
@@ -511,22 +519,6 @@ class SmartTask(Task, Generic[T]):
|
|
|
511
519
|
if _is_not_done(self):
|
|
512
520
|
(<set>self._waiters).remove(waiter)
|
|
513
521
|
|
|
514
|
-
def _make_cancelled_error(self) -> asyncio.CancelledError:
|
|
515
|
-
# this function is not present in python3.8 so we're backporting it
|
|
516
|
-
"""Create the CancelledError to raise if the Future is cancelled.
|
|
517
|
-
|
|
518
|
-
This should only be called once when handling a cancellation since
|
|
519
|
-
it erases the saved context exception value.
|
|
520
|
-
"""
|
|
521
|
-
if PY_VERSION_HEX < "0x03090000" or self._cancel_message is None:
|
|
522
|
-
exc = CancelledError()
|
|
523
|
-
else:
|
|
524
|
-
exc = CancelledError(self._cancel_message)
|
|
525
|
-
exc.__context__ = self._cancelled_exc
|
|
526
|
-
# Remove the reference since we don't need this anymore.
|
|
527
|
-
self._cancelled_exc = None
|
|
528
|
-
return exc
|
|
529
|
-
|
|
530
522
|
|
|
531
523
|
cdef object _SmartTask = SmartTask
|
|
532
524
|
|
a_sync/a_sync/_descriptor.c
CHANGED
|
@@ -1720,6 +1720,10 @@ static struct __pyx_vtabstruct_6a_sync_6a_sync_8function__ModifiedMixin *__pyx_v
|
|
|
1720
1720
|
|
|
1721
1721
|
struct __pyx_vtabstruct_6a_sync_6a_sync_8function__ASyncFunction {
|
|
1722
1722
|
struct __pyx_vtabstruct_6a_sync_6a_sync_8function__ModifiedMixin __pyx_base;
|
|
1723
|
+
PyObject *(*get_fn)(struct __pyx_obj_6a_sync_6a_sync_8function__ASyncFunction *);
|
|
1724
|
+
int (*is_async_def)(struct __pyx_obj_6a_sync_6a_sync_8function__ASyncFunction *, int __pyx_skip_dispatch);
|
|
1725
|
+
int (*is_sync_default)(struct __pyx_obj_6a_sync_6a_sync_8function__ASyncFunction *, int __pyx_skip_dispatch);
|
|
1726
|
+
int (*_run_sync)(struct __pyx_obj_6a_sync_6a_sync_8function__ASyncFunction *, PyObject *);
|
|
1723
1727
|
};
|
|
1724
1728
|
static struct __pyx_vtabstruct_6a_sync_6a_sync_8function__ASyncFunction *__pyx_vtabptr_6a_sync_6a_sync_8function__ASyncFunction;
|
|
1725
1729
|
|
|
Binary file
|
|
Binary file
|
a_sync/a_sync/_helpers.c
CHANGED
|
@@ -1698,6 +1698,10 @@ static struct __pyx_vtabstruct_6a_sync_6a_sync_8function__ModifiedMixin *__pyx_v
|
|
|
1698
1698
|
|
|
1699
1699
|
struct __pyx_vtabstruct_6a_sync_6a_sync_8function__ASyncFunction {
|
|
1700
1700
|
struct __pyx_vtabstruct_6a_sync_6a_sync_8function__ModifiedMixin __pyx_base;
|
|
1701
|
+
PyObject *(*get_fn)(struct __pyx_obj_6a_sync_6a_sync_8function__ASyncFunction *);
|
|
1702
|
+
int (*is_async_def)(struct __pyx_obj_6a_sync_6a_sync_8function__ASyncFunction *, int __pyx_skip_dispatch);
|
|
1703
|
+
int (*is_sync_default)(struct __pyx_obj_6a_sync_6a_sync_8function__ASyncFunction *, int __pyx_skip_dispatch);
|
|
1704
|
+
int (*_run_sync)(struct __pyx_obj_6a_sync_6a_sync_8function__ASyncFunction *, PyObject *);
|
|
1701
1705
|
};
|
|
1702
1706
|
static struct __pyx_vtabstruct_6a_sync_6a_sync_8function__ASyncFunction *__pyx_vtabptr_6a_sync_6a_sync_8function__ASyncFunction;
|
|
1703
1707
|
/* #### Code section: utility_code_proto ### */
|
|
Binary file
|
|
Binary file
|
a_sync/a_sync/_meta.py
CHANGED
|
@@ -6,7 +6,7 @@ from typing import Any, Dict, Tuple
|
|
|
6
6
|
|
|
7
7
|
from a_sync import ENVIRONMENT_VARIABLES
|
|
8
8
|
from a_sync.a_sync import modifiers
|
|
9
|
-
from a_sync.a_sync.function import
|
|
9
|
+
from a_sync.a_sync.function import _ASyncFunction, _ModifiedMixin
|
|
10
10
|
from a_sync.a_sync.method import ASyncMethodDescriptor
|
|
11
11
|
from a_sync.a_sync.property import (
|
|
12
12
|
ASyncCachedPropertyDescriptor,
|
|
@@ -137,7 +137,7 @@ class ASyncMeta(ABCMeta):
|
|
|
137
137
|
attr_value.hidden_method_name,
|
|
138
138
|
attr_value.hidden_method_descriptor,
|
|
139
139
|
)
|
|
140
|
-
elif isinstance(attr_value,
|
|
140
|
+
elif isinstance(attr_value, _ASyncFunction):
|
|
141
141
|
attrs[attr_name] = ASyncMethodDescriptor(attr_value, **fn_modifiers)
|
|
142
142
|
else:
|
|
143
143
|
raise NotImplementedError(attr_name, attr_value)
|
|
Binary file
|
|
Binary file
|
|
Binary file
|