grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026ó þkSº».ÿùãó:•SrSSKrSSKrSSKJr SSKJrJr SSKJ r SSK J r /SQr SSK Jr "S S \5r"S S\5r"SS5r"SS\5r"SS\5r"SS5r\ c\r gg!\ a Sr N\f=f!\ a "S S \5rNhf=f)z'A multi-producer, multi-consumer queue.éN)Údeque)ÚheappushÚheappop)Ú monotonic)Ú SimpleQueue)ÚEmptyÚFullÚShutDownÚQueueÚ PriorityQueueÚ LifoQueuer)rcó•\rSrSrSrSrg)réz4Exception raised by Queue.get(block=0)/get_nowait().©N©Ú__name__Ú __module__Ú __qualname__Ú__firstlineno__Ú__doc__Ú__static_attributes__róÚ,/opt/alt/python313/lib64/python3.13/queue.pyrrs†Ù>Ú rrcó•\rSrSrSrSrg)r éz4Exception raised by Queue.put(block=0)/put_nowait().rNrrrrr r s†Ù:Úrr có•\rSrSrSrSrg)r é$z)Raised when put/get with shut-down queue.rNrrrrr r $s†Ü3rr có¦•\rSrSrSrSSjrSrSrSrSr Sr SS jr SS jr S r S rSSjrSrSrSrSr\"\R,5rSrg )r é(zbCreate a queue object with a given maximum size. If maxsize is <= 0, the queue size is infinite. có`•XlURU5 [R"5Ul[R "UR5Ul[R "UR5Ul[R "UR5UlSUl SUl g)NrF) ÚmaxsizeÚ_initÚ threadingÚLockÚmutexÚ ConditionÚ not_emptyÚnot_fullÚall_tasks_doneÚunfinished_tasksÚ is_shutdown©Úselfr!s rÚ__init__ÚQueue.__init__.s~€ØŒ Ø � ‰ �7Ôô —^’^Ó%ˆŒ ô#×,Ò,¨T¯Z©ZÓ8ˆŒô"×+Ò+¨D¯J©JÓ7ˆŒ ô(×1Ò1°$·*±*Ó=ˆÔØ !ˆÔð!ˆÕrcóÜ•UR URS- nUS::a+US:a [S5eURR5 XlSSS5 g!,(df  g=f)aæIndicate that a formerly enqueued task is complete. Used by Queue consumer threads. 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). Raises a ValueError if called more times than there were items placed in the queue. érz!task_done() called too many timesN)r)r*Ú ValueErrorÚ notify_all)r-Ú unfinisheds rÚ task_doneÚQueue.task_doneHs[€ð× Ó Ø×.Ñ.°Ñ2ˆJؘQ‹Ø “>Ü$Ð%HÓIÐIØ×#Ñ#×.Ñ.Ô0Ø$.Ô !÷ !× Ö ús �AAÁ A+cóÌ•UR UR(a-URR5 UR(aM-SSS5 g!,(df  g=f)a[Blocks 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 thread calls task_done() to indicate the item was retrieved and all work on it is complete. When the count of unfinished tasks drops to zero, join() unblocks. N)r)r*Úwait©r-s rÚjoinÚ Queue.join^sB€ð× Ó Ø×'×'Ø×#Ñ#×(Ñ(Ô*ð×'×'Ñ'÷!× Ö ús �=AÁ A#cóp•UR UR5sSSS5 $!,(df  g=f)ú9Return the approximate size of the queue (not reliable!).N©r%Ú_qsizer9s rÚqsizeÚ Queue.qsizeks€à �Z‹ZØ—;‘;“=÷�Z�Zús�'§ 5cóz•UR UR5(+sSSS5 $!,(df  g=f)a¥Return True if the queue is empty, False otherwise (not reliable!). This method is likely to be removed at some point. Use qsize() == 0 as a direct substitute, but be aware that either approach risks a race condition where a queue can grow before the result of empty() or qsize() can be used. To create code that needs to wait for all queued tasks to be completed, the preferred technique is to use the join() method. Nr>r9s rÚemptyÚ Queue.emptyps!€ð�Z‹ZØ—{‘{“}Ô$÷�Z�Zús�,¬ :cóª•UR SURs=:=(a UR5:*Os sSSS5 $!,(df  g=f)a'Return True if the queue is full, False otherwise (not reliable!). This method is likely to be removed at some point. Use qsize() >= n as a direct substitute, but be aware that either approach risks a race condition where a queue can shrink before the result of full() or qsize() can be used. rN)r%r!r?r9s rÚfullÚ Queue.full~s/€ð�Z‹ZØ�t—|‘|×4Ó4 t§{¡{£}Ô4÷�Z�Zús �-AÁ ANcó®•UR UR(a[eURS:”GaGU(d&UR 5UR:¼a[ eGOUcpUR 5UR:¼aQURR 5 UR(a[eUR 5UR:¼aMQO§US:a [S5e[5U-nUR 5UR:¼akU[5- nUS::a[ eURR U5 UR(a[eUR 5UR:¼aMkURU5 U=RS- sl URR5 SSS5 g!,(df  g=f)aPut an item into the queue. If optional args 'block' is true and 'timeout' is None (the default), block if necessary until a free slot is available. If 'timeout' is a non-negative number, it blocks at most 'timeout' seconds and raises the Full exception if no free slot was available within that time. Otherwise ('block' is false), put an item on the queue if a free slot is immediately available, else raise the Full exception ('timeout' is ignored in that case). Raises ShutDown if the queue has been shut down. rNú''timeout' must be a non-negative numberçr1) r(r+r r!r?r r8r2ÚtimeÚ_putr*r'Únotify)r-ÚitemÚblockÚtimeoutÚendtimeÚ remainings rÚputÚ Queue.put‰sF€ð�]‹]Ø××Ü�Ø�|‰|˜aÔÞØ—{‘{“}¨¯ © Ó4Ü"˜ ñ5à‘_ØŸ+™+›-¨4¯<©<Ó7ØŸ ™ ×*Ñ*Ô,Ø×+×+Ü"*˜NðŸ+™+›-¨4¯<©<Õ7øð˜q“[Ü$Ð%NÓOÐOä"›f wÑ.�GØŸ+™+›-¨4¯<©<Ó7Ø$+¬d«fÑ$4˜ Ø$¨Ó+Ü"&˜JØŸ ™ ×*Ñ*¨9Ô5Ø×+×+Ü"*˜Nð Ÿ+™+›-¨4¯<©<Õ7ð �I‰I�dŒOØ × !Ò ! QÑ &Õ !Ø �N‰N× !Ñ !Ô #÷3�]Ž]ús�CGÃB&GÅ=AGÇ Gcóˆ•UR UR(aUR5(d[eU(dUR5(d[eGO UcsUR5(d]URR 5 UR(aUR5(d[eUR5(dM]OªUS:a [ S5e[5U-nUR5(dwU[5- nUS::a[eURR U5 UR(aUR5(d[eUR5(dMwUR5nURR5 UsSSS5 $!,(df  g=f)a6Remove and return an item from the queue. If optional args 'block' is true and 'timeout' is None (the default), block if necessary until an item is available. If 'timeout' is a non-negative number, it blocks at most 'timeout' seconds and raises the Empty exception if no item was available within that time. Otherwise ('block' is false), return an item if one is immediately available, else raise the Empty exception ('timeout' is ignored in that case). Raises ShutDown if the queue has been shut down and is empty, or if the queue has been shut down immediately. NrrIrJ) r'r+r?r rr8r2rKÚ_getr(rM)r-rOrPrQrRrNs rÚgetÚ Queue.get±s'€ð�^‹^Ø×ר¯ © ¯ © Ü�ÞØ—{‘{—}‘}Ü�Kñ%à‘ØŸ+™+Ÿ-™-Ø—N‘N×'Ñ'Ô)Ø×'×'°· ± · ± Ü&˜ðŸ+™+Ÿ-›-øð˜1“Ü Ð!JÓKÐKä›& 7Ñ*�ØŸ+™+Ÿ-™-Ø '¬$«&Ñ 0�IØ  CÓ'Ü#˜ Ø—N‘N×'Ñ'¨ Ô2Ø×'×'°· ± · ± Ü&˜ð Ÿ+™+Ÿ-›-ð—9‘9“;ˆDØ �M‰M× Ñ Ô "Ø÷1�^�^ús�CF3ÃB)F3Å>+F3Æ3 Gcó"•URUSS9$)z‘Put an item into the queue without blocking. Only enqueue the item if a free slot is immediately available. Otherwise raise the Full exception. F©rO©rS©r-rNs rÚ put_nowaitÚQueue.put_nowaitÙó€ð �x‰x˜ EˆxÐ*Ð*rcó •URSS9$©z“Remove and return an item from the queue without blocking. Only get an item if one is immediately available. Otherwise raise the Empty exception. FrZ©rWr9s rÚ get_nowaitÚQueue.get_nowaitáó€ð �x‰x˜eˆxÐ$Ð$rcóÊ•UR SUlU(a{UR5(aLUR5 URS:”aU=RS-slUR5(aMLUR R 5 URR 5 URR 5 SSS5 g!,(df  g=f)aªShut-down the queue, making queue gets and puts raise ShutDown. 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', the queue is drained and unfinished tasks is reduced by the number of drained tasks. If unfinished tasks is reduced to zero, callers of Queue.join are unblocked. Trr1N) r%r+r?rVr*r)r3r'r()r-Ú immediates rÚshutdownÚQueue.shutdownés”€ð�Z‹ZØ#ˆDÔ ÞØ—k‘k—m‘mØ—I‘I”KØ×,Ñ,¨qÓ0Ø×-Ò-°Ñ2Õ-ð—k‘k—m“mð ×#Ñ#×.Ñ.Ô0à �N‰N× %Ñ %Ô 'Ø �M‰M× $Ñ $Ô &÷�ZŽZús�A.CÁ=ACà C"có"•[5Ulg©N)rÚqueuer,s rr"Ú Queue._inits €Ü“Wˆ� rcó,•[UR5$rk©Úlenrlr9s rr?Ú Queue._qsize ó€Ü�4—:‘:‹Ðrcó:•URRU5 grk©rlÚappendr\s rrLÚ Queue._putó€Ø � ‰ ×ј$Õrcó6•URR5$rk)rlÚpopleftr9s rrVÚ Queue._gets€Ø�z‰z×!Ñ!Ó#Ð#r)r)r+r!r%r'r(rlr*)r©TN)F)rrrrrr.r5r:r@rCrFrSrWr]rcrhr"r?rLrVÚ classmethodÚtypesÚ GenericAliasÚ__class_getitem__rrrrr r (sg†ñô !ò4/ò, +ò!ò %ò 5ô&$ôP&òP+ò%ô'ò<òò ò$ñ$ E×$6Ñ$6Ó7Órr có0•\rSrSrSrSrSrSrSrSr g) r iz”Variant of Queue that retrieves open entries in priority order (lowest first). Entries are typically tuples of the form: (priority number, data). có•/Ulgrk©rlr,s rr"ÚPriorityQueue._initó €Øˆ� rcó,•[UR5$rkror9s rr?ÚPriorityQueue._qsize!rrrcó0•[URU5 grk)rrlr\s rrLÚPriorityQueue._put$s€Ü�—‘˜TÕ"rcó,•[UR5$rk)rrlr9s rrVÚPriorityQueue._get's€Ü�t—z‘zÓ"Ð"rr‚N© rrrrrr"r?rLrVrrrrr r s†ñò òò#õ#rr có0•\rSrSrSrSrSrSrSrSr g) r i+zBVariant of Queue that retrieves most recently added entries first.có•/Ulgrkr‚r,s rr"ÚLifoQueue._init.r„rcó,•[UR5$rkror9s rr?ÚLifoQueue._qsize1rrrcó:•URRU5 grkrtr\s rrLÚLifoQueue._put4rwrcó6•URR5$rk)rlÚpopr9s rrVÚLifoQueue._get7s€Ø�z‰z�~‰~ÓÐrr‚Nr‹rrrr r +s†ÙLòòò õ rr cón•\rSrSrSrSrS SjrS SjrSrSr S r S r \ "\ R5rS rg) Ú_PySimpleQueuei;zQSimple, unbounded FIFO queue. This pure Python implementation is not reentrant. cóX•[5Ul[R"S5Ulg)Nr)rÚ_queuer#Ú SemaphoreÚ_countr9s rr.Ú_PySimpleQueue.__init__Es€Ü“gˆŒ Ü×)Ò)¨!Ó,ˆ� rNcón•URRU5 URR5 g)z®Put the item on the queue. The optional 'block' and 'timeout' arguments are ignored, as this method never blocks. They are provided for compatibility with the Queue class. N)r™rur›Úrelease)r-rNrOrPs rrSÚ_PySimpleQueue.putIs&€ð � ‰ ×ј4Ô Ø � ‰ ×ÑÕrcóª•UbUS:a [S5eURRX5(d[eURR 5$)aÇRemove and return an item from the queue. If optional args 'block' is true and 'timeout' is None (the default), block if necessary until an item is available. If 'timeout' is a non-negative number, it blocks at most 'timeout' seconds and raises the Empty exception if no item was available within that time. Otherwise ('block' is false), return an item if one is immediately available, else raise the Empty exception ('timeout' is ignored in that case). rrI)r2r›Úacquirerr™ry)r-rOrPs rrWÚ_PySimpleQueue.getRsI€ð Ñ  7¨Q£;ÜÐFÓGÐ GØ�{‰{×"Ñ" 5×2Ñ2܈KØ�{‰{×"Ñ"Ó$Ð$rcó"•URUSS9$)z¢Put an item into the queue without blocking. This is exactly equivalent to `put(item, block=False)` and is only provided for compatibility with the Queue class. FrZr[r\s rr]Ú_PySimpleQueue.put_nowaitcr_rcó •URSS9$rarbr9s rrcÚ_PySimpleQueue.get_nowaitkrercó2•[UR5S:H$)zCReturn True if the queue is empty, False otherwise (not reliable!).r©rpr™r9s rrCÚ_PySimpleQueue.emptyss€ä�4—;‘;Ó 1Ñ$Ð$rcó,•[UR5$)r=r¨r9s rr@Ú_PySimpleQueue.qsizews€ä�4—;‘;ÓÐr)r›r™r{)rrrrrr.rSrWr]rcrCr@r|r}r~rrrrrr—r—;s=†ñò-ôô%ò"+ò%ò%ò ñ$ E×$6Ñ$6Ó7Órr—)rr#r}Ú collectionsrÚheapqrrrKrr™rÚ ImportErrorÚ__all__rÚ Exceptionr r r r r r—rrrÚr±s½ðÙ-ãÛ Ýß#Ý"ðÝ"ò €ð Ýô  ˆ9ô ô 4ˆyô4÷m8ñm8ô`#�Eô#ô&  �ô  ÷ @8ñ@8ðFÑØ �Kðøði óØ‚Kðûð ó ô � ö ð ús" A8«BÁ8BÂBÂBÂB