ez-a-sync 0.32.11__cp38-cp38-win32.whl → 0.32.12__cp38-cp38-win32.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 +1122 -1133
- a_sync/_smart.cp38-win32.pyd +0 -0
- a_sync/_smart.pyx +11 -10
- a_sync/a_sync/_descriptor.cp38-win32.pyd +0 -0
- a_sync/a_sync/_flags.cp38-win32.pyd +0 -0
- a_sync/a_sync/_helpers.cp38-win32.pyd +0 -0
- a_sync/a_sync/_kwargs.cp38-win32.pyd +0 -0
- a_sync/a_sync/abstract.cp38-win32.pyd +0 -0
- a_sync/a_sync/base.cp38-win32.pyd +0 -0
- a_sync/a_sync/flags.cp38-win32.pyd +0 -0
- a_sync/a_sync/function.cp38-win32.pyd +0 -0
- a_sync/a_sync/method.cp38-win32.pyd +0 -0
- a_sync/a_sync/modifiers/manager.cp38-win32.pyd +0 -0
- a_sync/a_sync/property.cp38-win32.pyd +0 -0
- a_sync/async_property/cached.cp38-win32.pyd +0 -0
- a_sync/async_property/proxy.cp38-win32.pyd +0 -0
- a_sync/asyncio/as_completed.cp38-win32.pyd +0 -0
- a_sync/asyncio/create_task.c +735 -579
- a_sync/asyncio/create_task.cp38-win32.pyd +0 -0
- a_sync/asyncio/create_task.pyx +7 -4
- a_sync/asyncio/gather.cp38-win32.pyd +0 -0
- a_sync/asyncio/igather.cp38-win32.pyd +0 -0
- a_sync/asyncio/sleep.cp38-win32.pyd +0 -0
- a_sync/debugging.cp38-win32.pyd +0 -0
- a_sync/exceptions.cp38-win32.pyd +0 -0
- a_sync/functools.cp38-win32.pyd +0 -0
- a_sync/iter.cp38-win32.pyd +0 -0
- a_sync/primitives/_debug.cp38-win32.pyd +0 -0
- a_sync/primitives/_loggable.cp38-win32.pyd +0 -0
- a_sync/primitives/locks/counter.cp38-win32.pyd +0 -0
- a_sync/primitives/locks/event.c +426 -428
- a_sync/primitives/locks/event.cp38-win32.pyd +0 -0
- a_sync/primitives/locks/event.pyx +3 -1
- a_sync/primitives/locks/prio_semaphore.c +2623 -1503
- a_sync/primitives/locks/prio_semaphore.cp38-win32.pyd +0 -0
- a_sync/primitives/locks/prio_semaphore.pxd +9 -8
- a_sync/primitives/locks/prio_semaphore.pyx +65 -22
- a_sync/primitives/locks/semaphore.c +1048 -1051
- a_sync/primitives/locks/semaphore.cp38-win32.pyd +0 -0
- a_sync/primitives/locks/semaphore.pyx +4 -2
- a_sync/utils/repr.cp38-win32.pyd +0 -0
- {ez_a_sync-0.32.11.dist-info → ez_a_sync-0.32.12.dist-info}/METADATA +1 -1
- {ez_a_sync-0.32.11.dist-info → ez_a_sync-0.32.12.dist-info}/RECORD +46 -46
- {ez_a_sync-0.32.11.dist-info → ez_a_sync-0.32.12.dist-info}/LICENSE.txt +0 -0
- {ez_a_sync-0.32.11.dist-info → ez_a_sync-0.32.12.dist-info}/WHEEL +0 -0
- {ez_a_sync-0.32.11.dist-info → ez_a_sync-0.32.12.dist-info}/top_level.txt +0 -0
|
Binary file
|
a_sync/asyncio/create_task.pyx
CHANGED
|
@@ -8,6 +8,9 @@ import asyncio.tasks as aiotasks
|
|
|
8
8
|
import logging
|
|
9
9
|
import typing
|
|
10
10
|
|
|
11
|
+
from cpython.object cimport PyObject
|
|
12
|
+
from cpython.unicode cimport PyUnicode_CompareWithASCIIString
|
|
13
|
+
|
|
11
14
|
from a_sync import _smart, exceptions
|
|
12
15
|
from a_sync._typing import T
|
|
13
16
|
|
|
@@ -213,7 +216,7 @@ cdef void __prune_persisted_tasks():
|
|
|
213
216
|
|
|
214
217
|
|
|
215
218
|
cdef inline bint _is_done(fut: Future):
|
|
216
|
-
return
|
|
219
|
+
return PyUnicode_CompareWithASCIIString(fut._state, b"PENDING") != 0
|
|
217
220
|
|
|
218
221
|
|
|
219
222
|
cdef object _get_exception(fut: Future):
|
|
@@ -225,10 +228,10 @@ cdef object _get_exception(fut: Future):
|
|
|
225
228
|
InvalidStateError.
|
|
226
229
|
"""
|
|
227
230
|
cdef str state = fut._state
|
|
228
|
-
if state
|
|
231
|
+
if PyUnicode_CompareWithASCIIString(state, b"FINISHED") == 0:
|
|
229
232
|
fut._Future__log_traceback = False
|
|
230
233
|
return fut._exception
|
|
231
|
-
if state
|
|
234
|
+
if PyUnicode_CompareWithASCIIString(state, b"CANCELLED") == 0:
|
|
232
235
|
raise fut._make_cancelled_error()
|
|
233
236
|
raise InvalidStateError('Exception is not set.')
|
|
234
237
|
|
|
@@ -265,4 +268,4 @@ __all__ = ["create_task"]
|
|
|
265
268
|
|
|
266
269
|
def _get_persisted_tasks() -> Set[Task]:
|
|
267
270
|
# we can't import this directly to the .py test file
|
|
268
|
-
return _persisted_tasks
|
|
271
|
+
return _persisted_tasks
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
a_sync/debugging.cp38-win32.pyd
CHANGED
|
Binary file
|
a_sync/exceptions.cp38-win32.pyd
CHANGED
|
Binary file
|
a_sync/functools.cp38-win32.pyd
CHANGED
|
Binary file
|
a_sync/iter.cp38-win32.pyd
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|