ez-a-sync 0.32.15__cp313-cp313-win32.whl → 0.32.17__cp313-cp313-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 (53) hide show
  1. a_sync/_smart.c +1036 -1382
  2. a_sync/_smart.cp313-win32.pyd +0 -0
  3. a_sync/_smart.pyx +10 -18
  4. a_sync/a_sync/_descriptor.c +4 -0
  5. a_sync/a_sync/_descriptor.cp313-win32.pyd +0 -0
  6. a_sync/a_sync/_flags.cp313-win32.pyd +0 -0
  7. a_sync/a_sync/_helpers.c +4 -0
  8. a_sync/a_sync/_helpers.cp313-win32.pyd +0 -0
  9. a_sync/a_sync/_kwargs.cp313-win32.pyd +0 -0
  10. a_sync/a_sync/_meta.py +2 -2
  11. a_sync/a_sync/abstract.cp313-win32.pyd +0 -0
  12. a_sync/a_sync/base.cp313-win32.pyd +0 -0
  13. a_sync/a_sync/flags.cp313-win32.pyd +0 -0
  14. a_sync/a_sync/function.c +3633 -3272
  15. a_sync/a_sync/function.cp313-win32.pyd +0 -0
  16. a_sync/a_sync/function.pxd +5 -1
  17. a_sync/a_sync/function.pyx +82 -79
  18. a_sync/a_sync/method.c +9838 -7638
  19. a_sync/a_sync/method.cp313-win32.pyd +0 -0
  20. a_sync/a_sync/method.pxd +8 -1
  21. a_sync/a_sync/method.pyx +108 -84
  22. a_sync/a_sync/modifiers/manager.cp313-win32.pyd +0 -0
  23. a_sync/a_sync/property.c +435 -384
  24. a_sync/a_sync/property.cp313-win32.pyd +0 -0
  25. a_sync/a_sync/property.pyx +9 -7
  26. a_sync/async_property/cached.cp313-win32.pyd +0 -0
  27. a_sync/async_property/proxy.cp313-win32.pyd +0 -0
  28. a_sync/asyncio/as_completed.cp313-win32.pyd +0 -0
  29. a_sync/asyncio/create_task.c +680 -759
  30. a_sync/asyncio/create_task.cp313-win32.pyd +0 -0
  31. a_sync/asyncio/create_task.pyx +7 -2
  32. a_sync/asyncio/gather.cp313-win32.pyd +0 -0
  33. a_sync/asyncio/igather.c +1039 -1389
  34. a_sync/asyncio/igather.cp313-win32.pyd +0 -0
  35. a_sync/asyncio/igather.pyx +19 -12
  36. a_sync/asyncio/sleep.cp313-win32.pyd +0 -0
  37. a_sync/debugging.cp313-win32.pyd +0 -0
  38. a_sync/exceptions.cp313-win32.pyd +0 -0
  39. a_sync/functools.cp313-win32.pyd +0 -0
  40. a_sync/iter.cp313-win32.pyd +0 -0
  41. a_sync/primitives/_debug.cp313-win32.pyd +0 -0
  42. a_sync/primitives/_loggable.cp313-win32.pyd +0 -0
  43. a_sync/primitives/locks/counter.cp313-win32.pyd +0 -0
  44. a_sync/primitives/locks/event.cp313-win32.pyd +0 -0
  45. a_sync/primitives/locks/prio_semaphore.cp313-win32.pyd +0 -0
  46. a_sync/primitives/locks/semaphore.cp313-win32.pyd +0 -0
  47. a_sync/task.py +1 -1
  48. a_sync/utils/repr.cp313-win32.pyd +0 -0
  49. {ez_a_sync-0.32.15.dist-info → ez_a_sync-0.32.17.dist-info}/METADATA +1 -1
  50. {ez_a_sync-0.32.15.dist-info → ez_a_sync-0.32.17.dist-info}/RECORD +53 -53
  51. {ez_a_sync-0.32.15.dist-info → ez_a_sync-0.32.17.dist-info}/WHEEL +0 -0
  52. {ez_a_sync-0.32.15.dist-info → ez_a_sync-0.32.17.dist-info}/licenses/LICENSE.txt +0 -0
  53. {ez_a_sync-0.32.15.dist-info → ez_a_sync-0.32.17.dist-info}/top_level.txt +0 -0
Binary file
@@ -15,7 +15,7 @@ from a_sync.a_sync import _descriptor, config, function, method
15
15
  from a_sync.a_sync._helpers cimport _asyncify, _await
16
16
 
17
17
  from a_sync.a_sync.function cimport _ModifiedMixin
18
- from a_sync.a_sync.method cimport _is_a_sync_instance, _update_cache_timer
18
+ from a_sync.a_sync.method cimport _ASyncBoundMethod, _is_a_sync_instance, _update_cache_timer
19
19
  from a_sync.async_property import cached
20
20
  from a_sync.async_property.cached cimport AsyncCachedPropertyInstanceState
21
21
  from a_sync.asyncio.create_task cimport ccreate_task_simple
@@ -707,26 +707,28 @@ class HiddenMethod(ASyncBoundMethodAsyncDefault[I, Tuple[()], T]):
707
707
  field_name: The name of the field associated with the method.
708
708
  **modifiers: Additional modifier arguments.
709
709
  """
710
+ # TODO: copy __init_subclass__ to this class and then use _ASyncBoundMethod.__init__ instead
710
711
  ASyncBoundMethod.__init__(self, instance, unbound, async_def, **modifiers)
711
712
  self.__name__ = field_name
712
713
  """The name of the hidden method."""
713
714
 
714
- def __repr__(self) -> str:
715
+ def __repr__(_ASyncBoundMethod self) -> str:
715
716
  """Returns a string representation of the HiddenMethod."""
716
- instance_type = type(self.__self__)
717
+ instance = self.__c_self__()
718
+ instance_type = type(instance)
717
719
  return "<{} for property {}.{}.{} bound to {}>".format(
718
720
  self.__class__.__name__,
719
721
  instance_type.__module__,
720
722
  instance_type.__name__,
721
723
  self.__name__[2:-2],
722
- self.__self__,
724
+ instance,
723
725
  )
724
726
 
725
- def __await__(self) -> Generator[Any, None, T]:
727
+ def __await__(_ASyncBoundMethod self) -> Generator[Any, None, T]:
726
728
  """Returns an awaitable for the method."""
727
729
  # NOTE: self(sync=False).__await__() would be cleaner but requires way more compute for no real gain
728
730
  _logger_debug("awaiting %s", self)
729
- return self.fn(self.__self__, sync=False).__await__()
731
+ return self.get_fn()(self.__c_self__(), sync=False).__await__()
730
732
 
731
733
 
732
734
  class HiddenMethodDescriptor(ASyncMethodDescriptorAsyncDefault[I, Tuple[()], T]):
@@ -776,7 +778,7 @@ class HiddenMethodDescriptor(ASyncMethodDescriptorAsyncDefault[I, Tuple[()], T])
776
778
  if instance is None:
777
779
  return self
778
780
 
779
- cdef object bound
781
+ cdef _ASyncBoundMethod bound
780
782
  cdef str field_name = self.field_name
781
783
  try:
782
784
  bound = instance.__dict__[field_name]
Binary file
Binary file