ez-a-sync 0.32.16__cp38-cp38-musllinux_1_2_i686.whl → 0.32.17__cp38-cp38-musllinux_1_2_i686.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/a_sync/_descriptor.c +4 -0
- a_sync/a_sync/_descriptor.cpython-38-i386-linux-gnu.so +0 -0
- a_sync/a_sync/_helpers.c +4 -0
- a_sync/a_sync/_helpers.cpython-38-i386-linux-gnu.so +0 -0
- a_sync/a_sync/_meta.py +2 -2
- a_sync/a_sync/function.c +3633 -3272
- a_sync/a_sync/function.cpython-38-i386-linux-gnu.so +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.cpython-38-i386-linux-gnu.so +0 -0
- a_sync/a_sync/method.pxd +8 -1
- a_sync/a_sync/method.pyx +108 -84
- a_sync/a_sync/property.c +435 -384
- a_sync/a_sync/property.cpython-38-i386-linux-gnu.so +0 -0
- a_sync/a_sync/property.pyx +9 -7
- a_sync/task.py +1 -1
- {ez_a_sync-0.32.16.dist-info → ez_a_sync-0.32.17.dist-info}/METADATA +1 -1
- {ez_a_sync-0.32.16.dist-info → ez_a_sync-0.32.17.dist-info}/RECORD +22 -22
- {ez_a_sync-0.32.16.dist-info → ez_a_sync-0.32.17.dist-info}/LICENSE.txt +0 -0
- {ez_a_sync-0.32.16.dist-info → ez_a_sync-0.32.17.dist-info}/WHEEL +0 -0
- {ez_a_sync-0.32.16.dist-info → ez_a_sync-0.32.17.dist-info}/top_level.txt +0 -0
|
Binary file
|
a_sync/a_sync/property.pyx
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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.
|
|
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
|
|
781
|
+
cdef _ASyncBoundMethod bound
|
|
780
782
|
cdef str field_name = self.field_name
|
|
781
783
|
try:
|
|
782
784
|
bound = instance.__dict__[field_name]
|
a_sync/task.py
CHANGED
|
@@ -761,7 +761,7 @@ def _unwrap(
|
|
|
761
761
|
# this speeds things up a bit by bypassing some logic
|
|
762
762
|
# TODO implement it like this elsewhere if profilers suggest
|
|
763
763
|
unwrapped = (
|
|
764
|
-
wrapped_func._modified_fn if wrapped_func.
|
|
764
|
+
wrapped_func._modified_fn if wrapped_func.is_async_def() else wrapped_func._asyncified
|
|
765
765
|
)
|
|
766
766
|
else:
|
|
767
767
|
unwrapped = wrapped_func
|
|
@@ -29,18 +29,18 @@ a_sync/iter.pxd,sha256=VQKDAzm1M4snbrL9vwhU2zl04H4LeJrWtqksw6yGWOc,427
|
|
|
29
29
|
a_sync/iter.pyi,sha256=785C3RAcRT69ngv3LfEE56Sf8hyLqapxS94uqfz1na8,15412
|
|
30
30
|
a_sync/iter.pyx,sha256=TKzdMQkI74oKdgW-Us1WSgE5_KdS_7dOUykAmTHiXgU,37486
|
|
31
31
|
a_sync/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
32
|
-
a_sync/task.py,sha256=
|
|
32
|
+
a_sync/task.py,sha256=lHeGEPyEoUPNCTMGBGxvJxTZSu6KOqN5VC0rIf_slIY,35049
|
|
33
33
|
a_sync/a_sync/__init__.py,sha256=P8AO0TBmYPW5BYVk0TohOwLq8jurpRKfXnaPO-qDMJw,2200
|
|
34
|
-
a_sync/a_sync/_descriptor.c,sha256=
|
|
35
|
-
a_sync/a_sync/_descriptor.cpython-38-i386-linux-gnu.so,sha256=
|
|
34
|
+
a_sync/a_sync/_descriptor.c,sha256=Q2O12TGkhzGShoRS4E5RSBiOUoPsoZWuEQ4_gWnCcpA,844125
|
|
35
|
+
a_sync/a_sync/_descriptor.cpython-38-i386-linux-gnu.so,sha256=lclp6poEDt5s0qrgwz6_o11Fj9hVGb_vvzi0JS02sG8,921600
|
|
36
36
|
a_sync/a_sync/_descriptor.pyi,sha256=N77KA4DQbXUXKeAf-vTpAXc7E4Bk1d-Khtr7vjzwRwI,1343
|
|
37
37
|
a_sync/a_sync/_descriptor.pyx,sha256=jlQ8VgBmUB7fMUBsb3cIqyREmspkTgLQv5jZNqowkwg,13602
|
|
38
38
|
a_sync/a_sync/_flags.c,sha256=hxVtZT5faViQExnKIQnSBb-p9Rbqpxpor9dNxQH9dZA,217269
|
|
39
39
|
a_sync/a_sync/_flags.cpython-38-i386-linux-gnu.so,sha256=PitZdGd3AB3qM649AtpxpQ9a5I6yi8uNJs3QHfe76UI,140056
|
|
40
40
|
a_sync/a_sync/_flags.pxd,sha256=w8CBx5wDoCBRHFmeQOuVwWefDC3LP3zIWGaao_-y_uY,188
|
|
41
41
|
a_sync/a_sync/_flags.pyx,sha256=suOkvo37BZ9RIOdCpAdsXgk_98IOkn6jr1Ss5yunvdU,2806
|
|
42
|
-
a_sync/a_sync/_helpers.c,sha256=
|
|
43
|
-
a_sync/a_sync/_helpers.cpython-38-i386-linux-gnu.so,sha256=
|
|
42
|
+
a_sync/a_sync/_helpers.c,sha256=jlTq1V_AHGwTlo53o-NXmSxDquWj2_ZqmA1U900L3Ys,551235
|
|
43
|
+
a_sync/a_sync/_helpers.cpython-38-i386-linux-gnu.so,sha256=Ot1JrkRnSdTdhL3-Zsc_2pog570kw9lRMgdMFQDrLVQ,533508
|
|
44
44
|
a_sync/a_sync/_helpers.pxd,sha256=VG28VRW-jlTZJ-0H-W8Y8u5gw8zUVIbsb3nW-REI_Z4,118
|
|
45
45
|
a_sync/a_sync/_helpers.pyi,sha256=t2iBYRsG3qCfhzEfO6aG4KLQv_LWe8yjYDZ4RppnOak,319
|
|
46
46
|
a_sync/a_sync/_helpers.pyx,sha256=rvsCXR7tvddUIymUQCSi4eGzNCstYi5zGAdLCTPaIFQ,5409
|
|
@@ -48,7 +48,7 @@ a_sync/a_sync/_kwargs.c,sha256=blxZEu_yTOZAAn1aARwbJlTKoSgC3ojhSWeGgG6Y6ws,40523
|
|
|
48
48
|
a_sync/a_sync/_kwargs.cpython-38-i386-linux-gnu.so,sha256=aAT0nBzsmx-I0Zph9lIsAzGEBSaR_HFVyygy9dYsV4E,333764
|
|
49
49
|
a_sync/a_sync/_kwargs.pxd,sha256=RdEVKGXeBvq5_O4WkRXtjKdi8FV6oNPGhtJ-epUnr1M,92
|
|
50
50
|
a_sync/a_sync/_kwargs.pyx,sha256=0hHXMlOpJmtNJ7yApnwEr7U_sub5yrOuZbSn_oBMxwk,1975
|
|
51
|
-
a_sync/a_sync/_meta.py,sha256=
|
|
51
|
+
a_sync/a_sync/_meta.py,sha256=iET1qFtqdMZmMRc_-e1rWL2VgYJ7ymsZ6_JdWrrcDS0,9429
|
|
52
52
|
a_sync/a_sync/abstract.c,sha256=my8pajUN_xUqEIJitvZ7ZN5Mxy8e4lJv-iXgV308oQE,461336
|
|
53
53
|
a_sync/a_sync/abstract.cpython-38-i386-linux-gnu.so,sha256=9e3fHJEyKg4sov10Bs0DZiVJxWDAu9ereEotOhJhdTE,435688
|
|
54
54
|
a_sync/a_sync/abstract.pyi,sha256=IGEh74mnvZECWpSr0bh-ZQeFc-6Q4cu9EefhEaDLp2c,5071
|
|
@@ -64,20 +64,20 @@ a_sync/a_sync/flags.cpython-38-i386-linux-gnu.so,sha256=40j47xItMOHMzdcMdH_pLj44
|
|
|
64
64
|
a_sync/a_sync/flags.pxd,sha256=Jxe9hvWn-mPfGXHXLEvRPM2i44c4y2D4iq4ZqZZst80,2238
|
|
65
65
|
a_sync/a_sync/flags.pyi,sha256=PPAqrtJOvabVudb_yT32yZ95PP15uzzuXD2NirkWqTw,2229
|
|
66
66
|
a_sync/a_sync/flags.pyx,sha256=PU_DAZzoXhn-Z-okbTu0p6stnwnKsSEn781TryRRs0E,2305
|
|
67
|
-
a_sync/a_sync/function.c,sha256=
|
|
68
|
-
a_sync/a_sync/function.cpython-38-i386-linux-gnu.so,sha256=
|
|
69
|
-
a_sync/a_sync/function.pxd,sha256=
|
|
67
|
+
a_sync/a_sync/function.c,sha256=NCx-C-d1UPEP7cWvCmwHw1TAyNs1p4kHd21EeLiHoME,1712834
|
|
68
|
+
a_sync/a_sync/function.cpython-38-i386-linux-gnu.so,sha256=tSPsjImYoo51jif0maHcboOYYDcHARbJZJ5C7xpYiz0,1947164
|
|
69
|
+
a_sync/a_sync/function.pxd,sha256=QOGVstj2s4oQy18QwjCy--eu4pOlheVwWg3oiT2KDno,830
|
|
70
70
|
a_sync/a_sync/function.pyi,sha256=3F4BQplDW0IU5wDlkvc0T9n58qMQHtop3EPo1GYV0rg,17737
|
|
71
|
-
a_sync/a_sync/function.pyx,sha256=
|
|
72
|
-
a_sync/a_sync/method.c,sha256=
|
|
73
|
-
a_sync/a_sync/method.cpython-38-i386-linux-gnu.so,sha256=
|
|
74
|
-
a_sync/a_sync/method.pxd,sha256=
|
|
71
|
+
a_sync/a_sync/function.pyx,sha256=YqIh6u0xHl8lRcKvXCtwASoA1Fu6hxFlamZck2JfybM,45792
|
|
72
|
+
a_sync/a_sync/method.c,sha256=go8jgtOweE-5HQKgLr86Jb1REglPDLFsOx408c7Pyio,1390305
|
|
73
|
+
a_sync/a_sync/method.cpython-38-i386-linux-gnu.so,sha256=NggzbvoU7kn9sH4yQAcTh--2y2d5kUMFlLsCok00gC0,1665916
|
|
74
|
+
a_sync/a_sync/method.pxd,sha256=TMlVXxWOGc6r-4duaRSi_kEPe24Be1mpeISZNqktqXg,472
|
|
75
75
|
a_sync/a_sync/method.pyi,sha256=DpzdpuYSi7wiZkkX9xB0pg1oFcCYxJbVrWj3J_ISo3M,17815
|
|
76
|
-
a_sync/a_sync/method.pyx,sha256=
|
|
77
|
-
a_sync/a_sync/property.c,sha256=
|
|
78
|
-
a_sync/a_sync/property.cpython-38-i386-linux-gnu.so,sha256=
|
|
76
|
+
a_sync/a_sync/method.pyx,sha256=2asS_Ej5q6-BZ9T8JYqXjLOaQ9-n2SBcmXaAvSoJgps,36146
|
|
77
|
+
a_sync/a_sync/property.c,sha256=gJra9kx2XTDD_9tLy-xvQOqYvgXj2f5o4zDZMX9qMbA,1248760
|
|
78
|
+
a_sync/a_sync/property.cpython-38-i386-linux-gnu.so,sha256=bbiXtLmUtDEsW3GVnSriJ6c51WgO_UEAiN2eFGFzkzk,1511508
|
|
79
79
|
a_sync/a_sync/property.pyi,sha256=GWXCWpJBa_qxBYfbv_Lmt02Md8WK9nJYTu7blO4O2ew,13680
|
|
80
|
-
a_sync/a_sync/property.pyx,sha256=
|
|
80
|
+
a_sync/a_sync/property.pyx,sha256=hecMUMrIqhrEKUEx6EPIR4QnhRpPOx-28_TbkS_7vCU,27803
|
|
81
81
|
a_sync/a_sync/singleton.py,sha256=WRJ9FEqeFB8T59NSOiLLcm-QmMCI0H7nwEpvDIUp9IQ,2492
|
|
82
82
|
a_sync/a_sync/modifiers/__init__.pxd,sha256=17tPpMY2ByVbMGIpI5kiP3WX8V9IM5ZHJp0Y3eT6LvE,60
|
|
83
83
|
a_sync/a_sync/modifiers/__init__.py,sha256=JXyupO5h2hICMd-ha642ttCEFib_gAA6v-Ll6cyHNCA,4159
|
|
@@ -170,8 +170,8 @@ a_sync/utils/repr.c,sha256=4HDcDzNN4_R5Z_QrhMy9kxWXK7iALDKpa--_D0k6_-Y,571751
|
|
|
170
170
|
a_sync/utils/repr.cpython-38-i386-linux-gnu.so,sha256=5aabeJ1nXQjazISYC3bPPQqTYU5MhHpnw036KvYNGgQ,554656
|
|
171
171
|
a_sync/utils/repr.pyi,sha256=PWdsa6sF9_3nBqEgLaxtaHty7o7gwL--jPqvcelHY10,131
|
|
172
172
|
a_sync/utils/repr.pyx,sha256=xdsVdK75Zi5pAoh-8qRG0q7F0ySAq1zDkksZw37FoL4,2632
|
|
173
|
-
ez_a_sync-0.32.
|
|
174
|
-
ez_a_sync-0.32.
|
|
175
|
-
ez_a_sync-0.32.
|
|
176
|
-
ez_a_sync-0.32.
|
|
177
|
-
ez_a_sync-0.32.
|
|
173
|
+
ez_a_sync-0.32.17.dist-info/LICENSE.txt,sha256=1on6-17OUMlja6vSPTcmlmeT_DwujCZJijYxaplBvZk,1075
|
|
174
|
+
ez_a_sync-0.32.17.dist-info/METADATA,sha256=OM09qDijg2h2GDLQf1eeDCUuAsYgRlrUYoLAEfwhLL8,12961
|
|
175
|
+
ez_a_sync-0.32.17.dist-info/WHEEL,sha256=bJYjb8WQy12IOgNJUB-nIaFYzFfCOeSKDIg7NuKd-h4,108
|
|
176
|
+
ez_a_sync-0.32.17.dist-info/top_level.txt,sha256=ew2xVyFeZE_a5XMEL64h7-vJIbaBQieaFcvBAWUpU_s,7
|
|
177
|
+
ez_a_sync-0.32.17.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|