+
    öÙ†j  ã                   óÞ   € R t ^ RIt^ RIt^ RIt^ RIHtHtHtHt ^RIH	t
HtHtHt . ROtRP                  4       t ! R R]4      tR t	R	 tR
 tR t]P*                  ! 4       t ! R R4      tR# )z"Subinterpreters High Level Module.N)ÚInterpreterErrorÚInterpreterNotFoundErrorÚNotShareableErrorÚis_shareable)ÚcreateÚQueueÚ
QueueEmptyÚ	QueueFullÚInterpreterÚExecutionFailedz7
{superstr}

Uncaught in the interpreter:

{formatted}
c                   óB   a a€ ] tR t^#t oRtV 3R ltV 3R ltRtVtV ;t	# )r   zrAn unhandled exception happened during execution.

This is raised from Interpreter.exec() and Interpreter.call().
c                óB  <€ VP                   pV'       gu   VP                  '       d9   VP                  '       d'   VP                  P                   R VP                   2pM*VP                  P                  ;'       g    VP                  p\        SV `  V4       Wn        R# )z: N)Ú	formattedÚtypeÚmsgÚ__name__ÚsuperÚ__init__Úexcinfo)Úselfr   r   Ú	__class__s   && €Ú7/usr/lib/python3.14/concurrent/interpreters/__init__.pyr   ÚExecutionFailed.__init__)   sn   ø€ Ø×ÑˆßØ�|�|ˆ| §§ Ø Ÿ™×.Ñ.Ð/¨r°'·+±+°Ð?‘à—l‘l×+Ñ+×:Ð:¨w¯{©{�Ü‰Ñ˜ÔØŽó    c                ó¶   <€  V P                   P                  p\        P                  \        SV `  4       VR 7      #   \         d    \        ST `  4       u # i ; i))Úsuperstrr   )r   Ú
errdisplayÚ_EXEC_FAILURE_STRÚformatr   Ú__str__Ú	Exception)r   r   r   s   & €r   r   ÚExecutionFailed.__str__3   s\   ø€ ð	ØŸ™×/Ñ/ˆIô %×+Ñ+Ü™™Ó*Ø#ð ,ó ð øô ô 	%Ü‘7‘?Ó$Ò$ð	%ús   ƒ< ¼AÁA)r   )
r   Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r   Ú__static_attributes__Ú__classdictcell__Ú__classcell__©r   Ú__classdict__s   @@r   r   r   #   s   ù‡ € ñõ
÷	õ 	r   c                 óJ   € \         P                  ! RR7      p \        V RR7      # )z'Return a new (idle) Python interpreter.T)Úreqrefs)Ú_ownsref)Ú_interpretersr   r
   )Úids    r   r   r   ?   s   € ä	×	Ò	 dÔ	+€BÜ�r DÔ)Ð)r   c            	     óx   € \         P                  ! RR7       U Uu. uF  w  r\        WR7      NK  	  upp # u upp i )z!Return all existing interpreters.T)Úrequire_ready©Ú_whence)r.   Úlist_allr
   ©r/   Úwhences     r   r4   r4   E   s?   € ô ,×4Ò4À4ÕHôJÙH‘
�ô ˜×+ÙHòJð Jùó Js   ›6c                 óH   € \         P                  ! 4       w  r\        WR7      # )z)Return the currently running interpreter.r2   )r.   Úget_currentr
   r5   s     r   r8   r8   K   s   € ä×*Ò*Ó,�J€BÜ�rÔ*Ð*r   c                 ó’   € \         P                  ! 4       w  rV\         P                  8X  g   Q \        V4      4       h\	        WR7      # )zReturn the main interpreter.r2   )r.   Úget_mainÚWHENCE_RUNTIMEÚreprr
   r5   s     r   r:   r:   Q   s:   € ä×'Ò'Ó)�J€BØ”]×1Ñ1Ô1Ð?´4¸³<Ó?Ð1Ü�rÔ*Ð*r   c                   óZ  a a€ ] tR t^Zt oRt]P                  R]P                  R]P                  R]P                  R]P                  R]P                  R/tRV 3R lltR	 tR
 tR tR tR]R]P&                  /R lt]R 4       t]R 4       tR tR tRR ltR tR tR tR tRtVt V ;t!# )r
   aA  A single Python interpreter.

Attributes:

"id" - the unique process-global ID number for the interpreter
"whence" - indicates where the interpreter was created

If the interpreter wasn't created by this module
then any method that modifies the interpreter will fail,
i.e. .close(), .prepare_main(), .exec(), and .call()
Úunknownzruntime initzlegacy C-APIzC-APIzcross-interpreter C-APIz_interpreters modulec               ó6  <€ \        V\        4      '       g   \        R V: 24      h\        V4      pVf0   V'       d   \        P                  pM\        P
                  ! V4      pW P                  9   g   Q \        V4      4       hVf   V\        P                  8H  p \        V,          p\        VR4      '       g   Q h V#   \         dM    \        ST `1  T 4      pT\        T&   Yn        Y$n        Y4n        T'       d   \        P                   ! T4        T# i ; i)zid must be an int, got r-   )Ú
isinstanceÚintÚ	TypeErrorr.   ÚWHENCE_STDLIBr6   Ú_WHENCE_TO_STRr<   Ú_knownÚhasattrÚKeyErrorr   Ú__new__Ú_idr3   r-   Úincref)Úclsr/   r3   r-   r   r   s   ""&& €r   rH   ÚInterpreter.__new__p   sö   ø€ ä˜"œc×"Ò"ÜÐ5°b±VÐ<Ó=Ð=Ü�‹WˆØŠ?ßÜ'×5Ñ5‘ä'×.Ò.¨rÓ2�Ø×,Ñ,Ô,Ð;¬d°7«mÓ;Ð,ØÒØ¤=×#>Ñ#>Ñ>ˆHð	)Ü˜"•:ˆDÜ˜4 ×,Ò,Ð,Ñ,ð ˆøô ô 	)Ü‘7‘? 3Ó'ˆDØŒF�2‰JØŒHØ"ŒLØ$ŒMßä×$Ò$ RÔ(øØˆð	)ús   Â!C ÃADÄDc                óL   € \        V 4      P                   R V P                   R2# )Ú(Ú))r   r   r/   ©r   s   &r   Ú__repr__ÚInterpreter.__repr__‹   s$   € Ü�t“*×%Ñ%Ð& a¨¯© y°Ð2Ð2r   c                ó,   € \        V P                  4      # ©N)ÚhashrI   rP   s   &r   Ú__hash__ÚInterpreter.__hash__Ž   s   € Ü�D—H‘H‹~Ðr   c                ó&   € V P                  4        R # rT   )Ú_decrefrP   s   &r   Ú__del__ÚInterpreter.__del__‘   s   € Ø�‰Žr   c                ó2   € \        V 4      V P                  33# rT   )r   rI   rP   s   &r   Ú
__reduce__ÚInterpreter.__reduce__•   s   € Ü�T“
˜TŸX™X˜KÐ(Ð(r   r   Ú_interp_decrefc               ó~   € V P                   '       g   R # RV n          V! V P                  4       R #   T d     R # i ; i)NF)r-   rI   )r   r   r_   s   &$$r   rY   ÚInterpreter._decrefš   s:   € ð �}�}ˆ}ÙØˆŒð	Ù˜4Ÿ8™8Ö$øØ'ô 	Úð	ús   �1 ±<»<c                ó   € V P                   # rT   )rI   rP   s   &r   r/   ÚInterpreter.id¦   s   € à�x‰xˆr   c                ó<   € V P                   V P                  ,          # rT   )rD   r3   rP   s   &r   r6   ÚInterpreter.whenceª   s   € à×"Ñ" 4§<¡<Õ0Ð0r   c                óB   € \         P                  ! V P                  4      # )z<Return whether or not the identified interpreter is running.)r.   Ú
is_runningrI   rP   s   &r   rg   ÚInterpreter.is_running®   s   € ä×'Ò'¨¯©Ó1Ð1r   c                óF   € \         P                  ! V P                  RR7      # )zuFinalize and destroy the interpreter.

Attempting to destroy the current interpreter results
in an InterpreterError.
T©Úrestrict)r.   ÚdestroyrI   rP   s   &r   ÚcloseÚInterpreter.closeµ   s   € ô ×$Ò$ T§X¡X¸Ô=Ð=r   c               óp   € Ve   \        V3/ VB MTp\        P                  ! V P                  VRR7       R# )zVBind the given values into the interpreter's __main__.

The values must be shareable.
NTrj   )Údictr.   Úset___main___attrsrI   )r   ÚnsÚkwargss   "",r   Úprepare_mainÚInterpreter.prepare_main½   s/   € ð
 $&¢>ŒT�"Ñ˜Ò°vˆÜ×(Ò(¨¯©°2À×Er   c               ój   € \         P                  ! V P                  VRR7      pVe   \        V4      hR# )a@  Run the given source code in the interpreter.

This is essentially the same as calling the builtin "exec"
with this interpreter, using the __dict__ of its __main__
module as both globals and locals.

There is no return value.

If the code raises an unhandled exception then an ExecutionFailed
exception is raised, which summarizes the unhandled exception.
The actual exception is discarded because objects cannot be
shared between interpreters.

This blocks the current Python thread until done.  During
that time, the previous interpreter is allowed to run
in other threads.
Trj   N)r.   ÚexecrI   r   )r   Úcoder   s   "" r   rw   ÚInterpreter.execÅ   s2   € ô$  ×$Ò$ T§X¡X¨t¸dÔCˆØÒÜ! 'Ó*Ð*ñ r   c                óp   € \         P                  ! V P                  WVR R7      w  rEVe   \        V4      hV# )Trj   )r.   ÚcallrI   r   )r   ÚcallableÚargsrs   Úresr   s   &&&&  r   Ú_callÚInterpreter._callÛ   s5   € Ü$×)Ò)¨$¯(©(°HÀFÐUYÔZ‰ˆØÒÜ! 'Ó*Ð*Øˆ
r   c               ó&   € V P                  WV4      # )aú  Call the object in the interpreter with given args/kwargs.

Nearly all callables, args, kwargs, and return values are
supported.  All "shareable" objects are supported, as are
"stateless" functions (meaning non-closures that do not use
any globals).  This method will fall back to pickle.

If the callable raises an exception then the error display
(including full traceback) is sent back between the interpreters
and an ExecutionFailed exception is raised, much like what
happens with Interpreter.exec().
)r   )r   r|   r}   rs   s   ""*,r   r{   ÚInterpreter.callá   s   € ð �z‰z˜(¨&Ó1Ð1r   c               ón   € \         P                  ! V P                  WV3R7      pVP                  4        V# )zxReturn a new thread that calls the object in the interpreter.

The return value and any raised exception are discarded.
)Útargetr}   )Ú	threadingÚThreadr   Ústart)r   r|   r}   rs   Úts   ""*, r   Úcall_in_threadÚInterpreter.call_in_threadð   s-   € ô
 ×Ò D§J¡J°hÀfÐ5MÔNˆØ	�‰Œ	Øˆr   )rI   r-   r3   )NNrT   )"r   r"   r#   r$   r%   r.   ÚWHENCE_UNKNOWNr;   ÚWHENCE_LEGACY_CAPIÚWHENCE_CAPIÚ	WHENCE_XIrC   rD   rH   rQ   rV   rZ   r]   r   ÚdecrefrY   Úpropertyr/   r6   rg   rm   rt   rw   r   r{   r‰   r&   r'   r(   r)   s   @@r   r
   r
   Z   sÜ   ù‡ € ñ
ð ×#Ñ# YØ×#Ñ# ^Ø×'Ñ'¨Ø× Ñ  'Ø×ÑÐ 9Ø×"Ñ"Ð$:ð€N÷ò63òòò)ð

Ø)Að
à,×3Ñ3ô
ð ñó ðð ñ1ó ð1ò2ò>ôFò+ò,ò2÷ò r   )r8   r:   r   r4   r   r
   r   r   r   r   Úcreate_queuer   r   r	   )r%   r…   Úweakrefr.   r   r   r   r   Ú_queuesr   r‘   r   r   r	   Ú__all__Ústripr   r   r4   r8   r:   ÚWeakValueDictionaryrE   r
   © r   r   Ú<module>r˜      s}   ðÙ (ã Û Û ÷ó ÷ó ò€ð÷ 
�EƒGð ôÐ&ô ò8*òJò+ò+ð 
×	$Ò	$Ó	&€÷]ó ]r   