Psyduck - 可達鴨 之 鴨力山大2


Server : LiteSpeed
System : Linux premium217.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User : alloknri ( 880)
PHP Version : 8.1.34
Disable Function : NONE
Directory :  /opt/alt/python313/lib64/python3.13/asyncio/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/python313/lib64/python3.13/asyncio/__pycache__/queues.cpython-313.pyc
�

�dYh�'����SrSSKrSSKrSSKJr SSKJr SSKJr "SS\5r	"S	S
\5r
"SS\5r"S
S\R5r
"SS\
5r"SS\
5rg))�Queue�
PriorityQueue�	LifoQueue�	QueueFull�
QueueEmpty�
QueueShutDown�N)�GenericAlias�)�locks)�mixinsc��\rSrSrSrSrg)r�z;Raised when Queue.get_nowait() is called on an empty Queue.�N��__name__�
__module__�__qualname__�__firstlineno__�__doc__�__static_attributes__r��5/opt/alt/python313/lib64/python3.13/asyncio/queues.pyrrs��E�rrc��\rSrSrSrSrg)r�zDRaised when the Queue.put_nowait() method is called on a full Queue.rNrrrrrrs��N�rrc��\rSrSrSrSrg)r�z<Raised when putting on to or getting from a shut-down Queue.rNrrrrrrs��F�rrc��\rSrSrSrSSjrSrSrSrSr	Sr
S	r\"\
5rS
rSr\S5rS
rSrSrSrSrSrSrSrSSjrSrg)r�!a�A queue, useful for coordinating producer and consumer coroutines.

If maxsize is less than or equal to zero, the queue size is infinite. If it
is an integer greater than 0, then "await put()" will block when the
queue reaches maxsize, until an item is removed by get().

Unlike the standard library Queue, you can reliably know this Queue's size
with qsize(), since your single-threaded asyncio application won't be
interrupted between calling qsize() and doing an operation on the Queue.
c��Xl[R"5Ul[R"5UlSUl[R"5UlURR5 URU5 SUlg)NrF)�_maxsize�collections�deque�_getters�_putters�_unfinished_tasksr�Event�	_finished�set�_init�_is_shutdown��self�maxsizes  r�__init__�Queue.__init__-sb���
�$�)�)�+��
�#�)�)�+��
�!"����������������
�
�7��!��rc�8�[R"5Ulg�N)r!r"�_queuer+s  rr)�Queue._init<s��!�'�'�)��rc�6�URR5$r1)r2�popleft�r,s r�_get�
Queue._get?s���{�{�"�"�$�$rc�:�URRU5 gr1�r2�append�r,�items  r�_put�
Queue._putB��������4� rc��U(aAUR5nUR5(dURS5 gU(aM@ggr1)r5�done�
set_result)r,�waiters�waiters   r�_wakeup_next�Queue._wakeup_nextGs4����_�_�&�F��;�;�=�=��!�!�$�'��	�grc�p�S[U5RS[U5SSUR5S3$)N�<z at z#x� �>)�typer�id�_formatr6s r�__repr__�Queue.__repr__Os5���4��:�&�&�'�t�B�t�H�R�=��$�,�,�.�9I��K�Krc�V�S[U5RSUR5S3$)NrIrJrK)rLrrNr6s r�__str__�
Queue.__str__Rs)���4��:�&�&�'�q�����(8��:�:rc��SUR<3n[USS5(aUS[UR5<3-
nUR(aUS[UR5S3-
nUR(aUS[UR5S3-
nUR(aUSUR3-
nUR(aUS-
nU$)	Nzmaxsize=r2z _queue=z
 _getters[�]z
 _putters[z tasks=z	 shutdown)	r �getattr�listr2r#�lenr$r%r*)r,�results  rrN�
Queue._formatWs����D�M�M�,�-���4��4�(�(����d�k�k�!2� 5�6�6�F��=�=��
�3�t�}�}�#5�"6�a�8�8�F��=�=��
�3�t�}�}�#5�"6�a�8�8�F��!�!���� 6� 6�7�8�8�F�����k�!�F��
rc�,�[UR5$)zNumber of items in the queue.)rXr2r6s r�qsize�Queue.qsizees���4�;�;��rc��UR$)z%Number of items allowed in the queue.)r r6s rr-�
Queue.maxsizeis���}�}�rc�$�UR(+$)z3Return True if the queue is empty, False otherwise.�r2r6s r�empty�Queue.emptyns���;�;��rc�^�URS::agUR5UR:�$)z�Return True if there are maxsize items in the queue.

Note: if the Queue was initialized with maxsize=0 (the default),
then full() is never True.
rF)r r\r6s r�full�
Queue.fullrs(���=�=�A����:�:�<�4�=�=�0�0rc��N# �UR5(arUR(a[eUR5R	5nUR
R
U5 UIShv�N UR5(aMrURU5$N,! UR5 UR
RU5 O![a Of=fUR5(d0UR5(dURUR
5 e=f7f)z�Put an item into the queue.

Put an item into the queue. If the queue is full, wait until a free
slot is available before adding item.

Raises QueueShutDown if the queue has been shut down.
N)
rer*r�	_get_loop�
create_futurer$r;�cancel�remove�
ValueError�	cancelledrF�
put_nowait)r,r=�putters   r�put�	Queue.put}s�����i�i�k�k�� � �#�#��^�^�%�3�3�5�F��M�M� � ��(�
����
�i�i�k�k�*���t�$�$���

��
�
����M�M�(�(��0��!������y�y�{�{�6�+;�+;�+=�+=��%�%�d�m�m�4��s[�A&D%�)B�.B�/B�3D%�
D%�B�D"�0C�D"�
C�D"�C�A	D"�"D%c��UR(a[eUR5(a[eUR	U5 U=R
S-
slURR5 URUR5 g)z�Put an item into the queue without blocking.

If no free slot is immediately available, raise QueueFull.

Raises QueueShutDown if the queue has been shut down.
r
N)
r*rrerr>r%r'�clearrFr#r<s  rrn�Queue.put_nowait�sa��������9�9�;�;��O��	�	�$�����!�#�����������$�-�-�(rc��v# �UR5(a�UR(aUR5(a[eUR5R	5nUR
R
U5 UIShv�N UR5(aM�UR5$N+! UR5 UR
RU5 O![a Of=fUR5(d0UR5(dURUR
5 e=f7f)z�Remove and return an item from the queue.

If queue is empty, wait until an item is available.

Raises QueueShutDown if the queue has been shut down and is empty, or
if the queue has been shut down immediately.
N)
rbr*rrhrir#r;rjrkrlrmrF�
get_nowait)r,�getters  r�get�	Queue.get�s�����j�j�l�l�� � �T�Z�Z�\�\�#�#��^�^�%�3�3�5�F��M�M� � ��(�
����
�j�j�l�l�*��� � ���

��
�
����M�M�(�(��0��!������z�z�|�|�F�,<�,<�,>�,>��%�%�d�m�m�4��s[�A;D9�>B1�B/�B1�D9�D9�/B1�1D6�C �D6� 
C-�*D6�,C-�-A	D6�6D9c��UR5(aUR(a[e[eUR	5nURUR5 U$)z�Remove and return an item from the queue.

Return an item if one is immediately available, else raise QueueEmpty.

Raises QueueShutDown if the queue has been shut down and is empty, or
if the queue has been shut down immediately.
)rbr*rrr7rFr$r<s  rrv�Queue.get_nowait�sF���:�:�<�<�� � �#�#����y�y�{�����$�-�-�(��rc��URS::a[S5eU=RS-slURS:XaURR5 gg)a.Indicate that a formerly enqueued task is complete.

Used by queue consumers. For each get() used to fetch a task,
a subsequent call to task_done() tells the queue that the processing
on the task is complete.

If a join() is currently blocking, it will resume when all items have
been processed (meaning that a task_done() call was received for every
item that had been put() into the queue).

shutdown(immediate=True) calls task_done() for each remaining item in
the queue.

Raises ValueError if called more times than there were items placed in
the queue.
rz!task_done() called too many timesr
N)r%rlr'r(r6s r�	task_done�Queue.task_done�sR��"�!�!�Q�&��@�A�A����!�#���!�!�Q�&��N�N��� �'rc��v# �URS:�a#URR5IShv�N ggN7f)aWBlock until all items in the queue have been gotten and processed.

The count of unfinished tasks goes up whenever an item is added to the
queue. The count goes down whenever a consumer calls task_done() to
indicate that the item was retrieved and all work on it is complete.
When the count of unfinished tasks drops to zero, join() unblocks.
rN)r%r'�waitr6s r�join�
Queue.join�s3����!�!�A�%��.�.�%�%�'�'�'�&�'�s�.9�7�9c���SUlU(a�UR5(dLUR5 URS:�aU=RS-slUR5(dMLURS:XaURR5 UR(aSURR5nUR5(dURS5 UR(aMSUR(aTURR5nUR5(dURS5 UR(aMSgg)aoShut-down the queue, making queue gets and puts raise QueueShutDown.

By default, gets will only raise once the queue is empty. Set
'immediate' to True to make gets raise immediately instead.

All blocked callers of put() and get() will be unblocked. If
'immediate', a task is marked as done for each item remaining in
the queue, which may unblock callers of join().
Trr
N)r*rbr7r%r'r(r#r5rBrCr$)r,�	immediaterwros    r�shutdown�Queue.shutdown�s���!�����j�j�l�l��	�	���)�)�A�-��*�*�a�/�*��j�j�l�l��%�%��*����"�"�$��m�m��]�]�*�*�,�F��;�;�=�=��!�!�$�'��m�m�m��m�m��]�]�*�*�,�F��;�;�=�=��!�!�$�'��m�m�mr)r'r#r*r r$r2r%N)r)F)rrrrrr.r)r7r>rFrOrR�classmethodr	�__class_getitem__rNr\�propertyr-rbrerprnrxrvr}r�r�rrrrrr!s���	�"�*�%�!�
�L�;�$�L�1��� ������	1�%�>)� !�>� !�.	(�(rrc�^�\rSrSrSrSr\R4Sjr\R4Sjr
Srg)riz�A subclass of Queue; retrieves entries in priority order (lowest first).

Entries are typically tuples of the form: (priority number, data).
c��/Ulgr1rar+s  rr)�PriorityQueue._init �	����rc�*�U"URU5 gr1ra)r,r=�heappushs   rr>�PriorityQueue._put#s������d�#rc�&�U"UR5$r1ra)r,�heappops  rr7�PriorityQueue._get&s���t�{�{�#�#rraN)rrrrrr)�heapqr�r>r�r7rrrrrrs(���
�#(�.�.�$�!�=�=�$rrc�*�\rSrSrSrSrSrSrSrg)ri*zEA subclass of Queue that retrieves most recently added entries first.c��/Ulgr1rar+s  rr)�LifoQueue._init-r�rc�:�URRU5 gr1r:r<s  rr>�LifoQueue._put0r@rc�6�URR5$r1)r2�popr6s rr7�LifoQueue._get3s���{�{��� � rraN)	rrrrrr)r>r7rrrrrr*s��O��!�!rr)�__all__r!r��typesr	�rr�	Exceptionrrr�_LoopBoundMixinrrrrrr�<module>r�sn���������	��	�
	�	�	�
	�I�	�
v(�F�"�"�v(�r
$�E�
$� 
!��
!r
Name
Size
Permissions
Options
__init__.cpython-313.opt-1.pyc
1.44 KB
-rw-r--r--
__init__.cpython-313.opt-2.pyc
1.385 KB
-rw-r--r--
__init__.cpython-313.pyc
1.44 KB
-rw-r--r--
__main__.cpython-313.opt-1.pyc
8.537 KB
-rw-r--r--
__main__.cpython-313.opt-2.pyc
8.537 KB
-rw-r--r--
__main__.cpython-313.pyc
8.537 KB
-rw-r--r--
base_events.cpython-313.opt-1.pyc
87.48 KB
-rw-r--r--
base_events.cpython-313.opt-2.pyc
78.463 KB
-rw-r--r--
base_events.cpython-313.pyc
87.53 KB
-rw-r--r--
base_futures.cpython-313.opt-1.pyc
3.066 KB
-rw-r--r--
base_futures.cpython-313.opt-2.pyc
2.835 KB
-rw-r--r--
base_futures.cpython-313.pyc
3.066 KB
-rw-r--r--
base_subprocess.cpython-313.opt-1.pyc
16.722 KB
-rw-r--r--
base_subprocess.cpython-313.opt-2.pyc
16.632 KB
-rw-r--r--
base_subprocess.cpython-313.pyc
16.938 KB
-rw-r--r--
base_tasks.cpython-313.opt-1.pyc
4.08 KB
-rw-r--r--
base_tasks.cpython-313.opt-2.pyc
4.08 KB
-rw-r--r--
base_tasks.cpython-313.pyc
4.08 KB
-rw-r--r--
constants.cpython-313.opt-1.pyc
0.999 KB
-rw-r--r--
constants.cpython-313.opt-2.pyc
0.999 KB
-rw-r--r--
constants.cpython-313.pyc
0.999 KB
-rw-r--r--
coroutines.cpython-313.opt-1.pyc
3.883 KB
-rw-r--r--
coroutines.cpython-313.opt-2.pyc
3.787 KB
-rw-r--r--
coroutines.cpython-313.pyc
3.939 KB
-rw-r--r--
events.cpython-313.opt-1.pyc
36.082 KB
-rw-r--r--
events.cpython-313.opt-2.pyc
27.49 KB
-rw-r--r--
events.cpython-313.pyc
36.082 KB
-rw-r--r--
exceptions.cpython-313.opt-1.pyc
3.152 KB
-rw-r--r--
exceptions.cpython-313.opt-2.pyc
2.538 KB
-rw-r--r--
exceptions.cpython-313.pyc
3.152 KB
-rw-r--r--
format_helpers.cpython-313.opt-1.pyc
4.133 KB
-rw-r--r--
format_helpers.cpython-313.opt-2.pyc
3.778 KB
-rw-r--r--
format_helpers.cpython-313.pyc
4.133 KB
-rw-r--r--
futures.cpython-313.opt-1.pyc
16.583 KB
-rw-r--r--
futures.cpython-313.opt-2.pyc
13.525 KB
-rw-r--r--
futures.cpython-313.pyc
16.984 KB
-rw-r--r--
locks.cpython-313.opt-1.pyc
27.482 KB
-rw-r--r--
locks.cpython-313.opt-2.pyc
21.014 KB
-rw-r--r--
locks.cpython-313.pyc
27.482 KB
-rw-r--r--
log.cpython-313.opt-1.pyc
0.288 KB
-rw-r--r--
log.cpython-313.opt-2.pyc
0.251 KB
-rw-r--r--
log.cpython-313.pyc
0.288 KB
-rw-r--r--
mixins.cpython-313.opt-1.pyc
1.088 KB
-rw-r--r--
mixins.cpython-313.opt-2.pyc
1.055 KB
-rw-r--r--
mixins.cpython-313.pyc
1.088 KB
-rw-r--r--
proactor_events.cpython-313.opt-1.pyc
44.28 KB
-rw-r--r--
proactor_events.cpython-313.opt-2.pyc
43.886 KB
-rw-r--r--
proactor_events.cpython-313.pyc
44.997 KB
-rw-r--r--
protocols.cpython-313.opt-1.pyc
8.223 KB
-rw-r--r--
protocols.cpython-313.opt-2.pyc
3.788 KB
-rw-r--r--
protocols.cpython-313.pyc
8.223 KB
-rw-r--r--
queues.cpython-313.opt-1.pyc
14.438 KB
-rw-r--r--
queues.cpython-313.opt-2.pyc
11.194 KB
-rw-r--r--
queues.cpython-313.pyc
14.438 KB
-rw-r--r--
runners.cpython-313.opt-1.pyc
9.904 KB
-rw-r--r--
runners.cpython-313.opt-2.pyc
8.167 KB
-rw-r--r--
runners.cpython-313.pyc
9.904 KB
-rw-r--r--
selector_events.cpython-313.opt-1.pyc
62.729 KB
-rw-r--r--
selector_events.cpython-313.opt-2.pyc
60.853 KB
-rw-r--r--
selector_events.cpython-313.pyc
62.884 KB
-rw-r--r--
sslproto.cpython-313.opt-1.pyc
40.744 KB
-rw-r--r--
sslproto.cpython-313.opt-2.pyc
37.317 KB
-rw-r--r--
sslproto.cpython-313.pyc
40.848 KB
-rw-r--r--
staggered.cpython-313.opt-1.pyc
6.23 KB
-rw-r--r--
staggered.cpython-313.opt-2.pyc
4.289 KB
-rw-r--r--
staggered.cpython-313.pyc
6.396 KB
-rw-r--r--
streams.cpython-313.opt-1.pyc
33.016 KB
-rw-r--r--
streams.cpython-313.opt-2.pyc
27.511 KB
-rw-r--r--
streams.cpython-313.pyc
33.466 KB
-rw-r--r--
subprocess.cpython-313.opt-1.pyc
11.997 KB
-rw-r--r--
subprocess.cpython-313.opt-2.pyc
11.871 KB
-rw-r--r--
subprocess.cpython-313.pyc
12.021 KB
-rw-r--r--
taskgroups.cpython-313.opt-1.pyc
8.894 KB
-rw-r--r--
taskgroups.cpython-313.opt-2.pyc
8.273 KB
-rw-r--r--
taskgroups.cpython-313.pyc
9.011 KB
-rw-r--r--
tasks.cpython-313.opt-1.pyc
42.219 KB
-rw-r--r--
tasks.cpython-313.opt-2.pyc
32.586 KB
-rw-r--r--
tasks.cpython-313.pyc
42.465 KB
-rw-r--r--
threads.cpython-313.opt-1.pyc
1.226 KB
-rw-r--r--
threads.cpython-313.opt-2.pyc
0.795 KB
-rw-r--r--
threads.cpython-313.pyc
1.226 KB
-rw-r--r--
timeouts.cpython-313.opt-1.pyc
8.335 KB
-rw-r--r--
timeouts.cpython-313.opt-2.pyc
6.852 KB
-rw-r--r--
timeouts.cpython-313.pyc
8.546 KB
-rw-r--r--
transports.cpython-313.opt-1.pyc
13.388 KB
-rw-r--r--
transports.cpython-313.opt-2.pyc
8.52 KB
-rw-r--r--
transports.cpython-313.pyc
13.409 KB
-rw-r--r--
trsock.cpython-313.opt-1.pyc
5.047 KB
-rw-r--r--
trsock.cpython-313.opt-2.pyc
4.81 KB
-rw-r--r--
trsock.cpython-313.pyc
5.047 KB
-rw-r--r--
unix_events.cpython-313.opt-1.pyc
67.951 KB
-rw-r--r--
unix_events.cpython-313.opt-2.pyc
63.316 KB
-rw-r--r--
unix_events.cpython-313.pyc
68.714 KB
-rw-r--r--
windows_events.cpython-313.opt-1.pyc
41.172 KB
-rw-r--r--
windows_events.cpython-313.opt-2.pyc
40.164 KB
-rw-r--r--
windows_events.cpython-313.pyc
41.224 KB
-rw-r--r--
windows_utils.cpython-313.opt-1.pyc
7.128 KB
-rw-r--r--
windows_utils.cpython-313.opt-2.pyc
6.715 KB
-rw-r--r--
windows_utils.cpython-313.pyc
7.295 KB
-rw-r--r--