/snap/core24/1643/usr/lib/python3.12/test/support/__pycache__
Edit: /snap/core24/1643/usr/lib/python3.12/test/support/__pycache__/interpreters.cpython-312.pyc (9599B)
Цi d Z ddlZddlZddlZddlmZmZ ddlmZm Z m
Z
g dZdddZd Z
d
Zd Z G d d
Zd Zd Z G d d Z e Z G d de Z G d de Zy)z"Subinterpreters High Level Module. N)is_shareableRunFailedError)ChannelErrorChannelNotFoundErrorChannelEmptyError)
Interpreterget_currentget_maincreatelist_allSendChannelRecvChannelcreate_channellist_all_channelsr r r r Tisolatedc H t j | }t || S )z'Return a new (idle) Python interpreter.r )
_interpretersr r )r ids 0/usr/lib/python3.12/test/support/interpreters.pyr r s x 0BrH-- c b t j D cg c]
} t | c} S c c} w )z!Return all existing interpreters.)r r r r s r r r s# &3&<&<&>?KO???s ,c @ t j } t | S )z)Return the currently running interpreter.)r r r r s r r r " s " " $Br?r c @ t j } t | S )zReturn the main interpreter.)r r
r r s r r
r
( s !Br?r c f e Zd ZdZdddZd Zd Zd Zed Z ed Z
d
Zd Zddd
Z
y)r zA single Python interpreter.Nr c | t |t t j f st d| || _ || _ y Nzid must be an int, got )
isinstanceintr
InterpreterID TypeError_id _isolated)selfr r s r __init__zInterpreter.__init__1 s8 "sM$?$?@A5bV<==!r c t t | j | j }d |j D }t | j ddj | dS )N)r r c 3 0 K | ] \ }}| d | yw)=N ).0kvs r
z'Interpreter.__repr__..9 s 841aQCq,8s (z, ))dictr r# r$ itemstype__name__join)r% datakwargss r __repr__zInterpreter.__repr__7 sR s488}t~~>84::<8t*%%&a &(9':!<