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.

Files changed (46) hide show
  1. a_sync/_smart.c +1122 -1133
  2. a_sync/_smart.cp38-win32.pyd +0 -0
  3. a_sync/_smart.pyx +11 -10
  4. a_sync/a_sync/_descriptor.cp38-win32.pyd +0 -0
  5. a_sync/a_sync/_flags.cp38-win32.pyd +0 -0
  6. a_sync/a_sync/_helpers.cp38-win32.pyd +0 -0
  7. a_sync/a_sync/_kwargs.cp38-win32.pyd +0 -0
  8. a_sync/a_sync/abstract.cp38-win32.pyd +0 -0
  9. a_sync/a_sync/base.cp38-win32.pyd +0 -0
  10. a_sync/a_sync/flags.cp38-win32.pyd +0 -0
  11. a_sync/a_sync/function.cp38-win32.pyd +0 -0
  12. a_sync/a_sync/method.cp38-win32.pyd +0 -0
  13. a_sync/a_sync/modifiers/manager.cp38-win32.pyd +0 -0
  14. a_sync/a_sync/property.cp38-win32.pyd +0 -0
  15. a_sync/async_property/cached.cp38-win32.pyd +0 -0
  16. a_sync/async_property/proxy.cp38-win32.pyd +0 -0
  17. a_sync/asyncio/as_completed.cp38-win32.pyd +0 -0
  18. a_sync/asyncio/create_task.c +735 -579
  19. a_sync/asyncio/create_task.cp38-win32.pyd +0 -0
  20. a_sync/asyncio/create_task.pyx +7 -4
  21. a_sync/asyncio/gather.cp38-win32.pyd +0 -0
  22. a_sync/asyncio/igather.cp38-win32.pyd +0 -0
  23. a_sync/asyncio/sleep.cp38-win32.pyd +0 -0
  24. a_sync/debugging.cp38-win32.pyd +0 -0
  25. a_sync/exceptions.cp38-win32.pyd +0 -0
  26. a_sync/functools.cp38-win32.pyd +0 -0
  27. a_sync/iter.cp38-win32.pyd +0 -0
  28. a_sync/primitives/_debug.cp38-win32.pyd +0 -0
  29. a_sync/primitives/_loggable.cp38-win32.pyd +0 -0
  30. a_sync/primitives/locks/counter.cp38-win32.pyd +0 -0
  31. a_sync/primitives/locks/event.c +426 -428
  32. a_sync/primitives/locks/event.cp38-win32.pyd +0 -0
  33. a_sync/primitives/locks/event.pyx +3 -1
  34. a_sync/primitives/locks/prio_semaphore.c +2623 -1503
  35. a_sync/primitives/locks/prio_semaphore.cp38-win32.pyd +0 -0
  36. a_sync/primitives/locks/prio_semaphore.pxd +9 -8
  37. a_sync/primitives/locks/prio_semaphore.pyx +65 -22
  38. a_sync/primitives/locks/semaphore.c +1048 -1051
  39. a_sync/primitives/locks/semaphore.cp38-win32.pyd +0 -0
  40. a_sync/primitives/locks/semaphore.pyx +4 -2
  41. a_sync/utils/repr.cp38-win32.pyd +0 -0
  42. {ez_a_sync-0.32.11.dist-info → ez_a_sync-0.32.12.dist-info}/METADATA +1 -1
  43. {ez_a_sync-0.32.11.dist-info → ez_a_sync-0.32.12.dist-info}/RECORD +46 -46
  44. {ez_a_sync-0.32.11.dist-info → ez_a_sync-0.32.12.dist-info}/LICENSE.txt +0 -0
  45. {ez_a_sync-0.32.11.dist-info → ez_a_sync-0.32.12.dist-info}/WHEEL +0 -0
  46. {ez_a_sync-0.32.11.dist-info → ez_a_sync-0.32.12.dist-info}/top_level.txt +0 -0
Binary file
@@ -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 <str>fut._state != "PENDING"
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 == "FINISHED":
231
+ if PyUnicode_CompareWithASCIIString(state, b"FINISHED") == 0:
229
232
  fut._Future__log_traceback = False
230
233
  return fut._exception
231
- if state == "CANCELLED":
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
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file