Critics have remarked that those four worthies were truly peerless throughout the ages; yet the present falls short of the pastβ€”the ancients favored unadorned simplicity, whereas the moderns prefer refined elegance. Styles of substance and ornament rise and fall in succession, shifting with the changing mores of the times; such evolution is simply the natural order of things. The ideal lies in honoring antiquity without clashing with the present, and embracing modernity without succumbing to its flawsβ€”embodying that perfect balance of substance and refinement that defines the true gentleman. There is surely no need to abandon a carved palace in favor of a cave dwelling, or to trade a jade carriage for a primitive cart with solid wooden wheels.🌌 SpectraShell

🌌 SpectraShell

Current path: lib64/python3.6/__pycache__/



⬆️ Go up: /lib64/python3.6

πŸ“„ Viewing: queue.cpython-36.opt-2.pyc

3


 \L"οΏ½
@sοΏ½yddlZWnek
r(ddlZYnXddlmZddlmZmZddlm	Zddddd	gZ
Gd
dοΏ½deοΏ½ZGddοΏ½deοΏ½Z
GddοΏ½dοΏ½ZGd
dοΏ½deοΏ½ZGdd	οΏ½d	eοΏ½ZdS)οΏ½N)οΏ½deque)οΏ½heappushοΏ½heappop)οΏ½	monotonicοΏ½EmptyοΏ½FullοΏ½QueueοΏ½
PriorityQueueοΏ½	LifoQueuec@seZdZdS)rN)οΏ½__name__οΏ½
__module__οΏ½__qualname__οΏ½rrοΏ½/usr/lib64/python3.6/queue.pyr
sc@seZdZdS)rN)rrr
rrrrrsc@sοΏ½eZdZd ddοΏ½ZddοΏ½ZddοΏ½Zdd	οΏ½Zd
dοΏ½Zdd
οΏ½Zd!ddοΏ½Z	d"ddοΏ½Z
ddοΏ½ZddοΏ½ZddοΏ½Z
ddοΏ½ZddοΏ½ZddοΏ½ZdS)#rrcCsN||_|j|οΏ½tjοΏ½|_tj|jοΏ½|_tj|jοΏ½|_tj|jοΏ½|_d|_	dS)Nr)
οΏ½maxsizeοΏ½_initοΏ½	threadingZLockοΏ½mutexZ	ConditionοΏ½	not_emptyοΏ½not_fullοΏ½all_tasks_doneοΏ½unfinished_tasks)οΏ½selfrrrrοΏ½__init__s

zQueue.__init__c	CsH|jοΏ½8|jd}|dkr4|dkr*tdοΏ½οΏ½|jjοΏ½||_WdQRXdS)NοΏ½rz!task_done() called too many times)rrοΏ½
ValueErrorZ
notify_all)rZ
unfinishedrrrοΏ½	task_done2s

zQueue.task_donec	Cs,|jοΏ½x|jr|jjοΏ½q
WWdQRXdS)N)rrοΏ½wait)rrrrοΏ½joinHs	z
Queue.joinc	Cs|jοΏ½
|jοΏ½SQRXdS)N)rοΏ½_qsize)rrrrοΏ½qsizeUszQueue.qsizec	Cs|jοΏ½|jοΏ½SQRXdS)N)rr)rrrrοΏ½emptyZszQueue.emptyc
Cs0|jοΏ½ d|jko |jοΏ½kSSQRXdS)Nr)rrr)rrrrοΏ½fullhsz
Queue.fullTNc
CsοΏ½|jοΏ½οΏ½|jdkrοΏ½|s*|jοΏ½|jkrοΏ½tοΏ½nz|dkrRxp|jοΏ½|jkrN|jjοΏ½q4WnR|dkrdtdοΏ½οΏ½n@tοΏ½|}x4|jοΏ½|jkrοΏ½|tοΏ½}|dkrοΏ½tοΏ½|jj|οΏ½qpW|j|οΏ½|jd7_|j	j
οΏ½WdQRXdS)Nrz''timeout' must be a non-negative numbergr)rrrrrrοΏ½timeοΏ½_putrrοΏ½notify)rοΏ½itemοΏ½blockοΏ½timeoutοΏ½endtimeοΏ½	remainingrrrοΏ½putss&




z	Queue.putc	CsοΏ½|jοΏ½οΏ½|s|jοΏ½sοΏ½tοΏ½nn|dkr<xd|jοΏ½s8|jjοΏ½q$WnL|dkrNtdοΏ½οΏ½n:tοΏ½|}x.|jοΏ½sοΏ½|tοΏ½}|dkrxtοΏ½|jj|οΏ½qZW|jοΏ½}|jjοΏ½|SQRXdS)Nrz''timeout' must be a non-negative numberg)	rrrrrr#οΏ½_getrr%)rr'r(r)r*r&rrrοΏ½getοΏ½s$





z	Queue.getcCs|j|ddοΏ½S)NF)r')r+)rr&rrrοΏ½
put_nowaitοΏ½szQueue.put_nowaitcCs|jddοΏ½S)NF)r')r-)rrrrοΏ½
get_nowaitοΏ½szQueue.get_nowaitcCstοΏ½|_dS)N)rοΏ½queue)rrrrrrοΏ½szQueue._initcCs
t|jοΏ½S)N)οΏ½lenr0)rrrrrοΏ½szQueue._qsizecCs|jj|οΏ½dS)N)r0οΏ½append)rr&rrrr$οΏ½sz
Queue._putcCs
|jjοΏ½S)N)r0οΏ½popleft)rrrrr,οΏ½sz
Queue._get)r)TN)TN)rrr
rrrr r!r"r+r-r.r/rrr$r,rrrrrs


 

c@s,eZdZddοΏ½ZddοΏ½ZddοΏ½ZddοΏ½Zd	S)
r	cCs
g|_dS)N)r0)rrrrrrοΏ½szPriorityQueue._initcCs
t|jοΏ½S)N)r1r0)rrrrrοΏ½szPriorityQueue._qsizecCst|j|οΏ½dS)N)rr0)rr&rrrr$οΏ½szPriorityQueue._putcCs
t|jοΏ½S)N)rr0)rrrrr,οΏ½szPriorityQueue._getN)rrr
rrr$r,rrrrr	οΏ½sc@s,eZdZddοΏ½ZddοΏ½ZddοΏ½ZddοΏ½Zd	S)
r
cCs
g|_dS)N)r0)rrrrrrοΏ½szLifoQueue._initcCs
t|jοΏ½S)N)r1r0)rrrrrοΏ½szLifoQueue._qsizecCs|jj|οΏ½dS)N)r0r2)rr&rrrr$οΏ½szLifoQueue._putcCs
|jjοΏ½S)N)r0οΏ½pop)rrrrr,οΏ½szLifoQueue._getN)rrr
rrr$r,rrrrr
οΏ½s)rοΏ½ImportErrorZdummy_threadingοΏ½collectionsrοΏ½heapqrrr#rοΏ½__all__οΏ½	Exceptionrrrr	r
rrrrοΏ½<module>sB


πŸ“