/snap/core22/2411/usr/lib/python3.10/__pycache__
NameSizeModeActions
abc.cpython-310.pyc67510644editdlrm
aifc.cpython-310.pyc246850644editdlrm
antigravity.cpython-310.pyc8220644editdlrm
argparse.cpython-310.pyc635390644editdlrm
ast.cpython-310.pyc557390644editdlrm
asynchat.cpython-310.pyc70250644editdlrm
asyncore.cpython-310.pyc160020644editdlrm
base64.cpython-310.pyc171620644editdlrm
bdb.cpython-310.pyc258320644editdlrm
binhex.cpython-310.pyc128700644editdlrm
bisect.cpython-310.pyc25880644editdlrm
bz2.cpython-310.pyc108700644editdlrm
calendar.cpython-310.pyc263030644editdlrm
cgi.cpython-310.pyc267230644editdlrm
cgitb.cpython-310.pyc99980644editdlrm
chunk.cpython-310.pyc48600644editdlrm
cmd.cpython-310.pyc127070644editdlrm
code.cpython-310.pyc99570644editdlrm
codecs.cpython-310.pyc332190644editdlrm
codeop.cpython-310.pyc55950644editdlrm
colorsys.cpython-310.pyc32650644editdlrm
compileall.cpython-310.pyc127330644editdlrm
configparser.cpython-310.pyc454580644editdlrm
contextlib.cpython-310.pyc208950644editdlrm
contextvars.cpython-310.pyc2460644editdlrm
copy.cpython-310.pyc69960644editdlrm
copyreg.cpython-310.pyc46830644editdlrm
cProfile.cpython-310.pyc51130644editdlrm
crypt.cpython-310.pyc35500644editdlrm
csv.cpython-310.pyc117980644editdlrm
dataclasses.cpython-310.pyc265780644editdlrm
datetime.cpython-310.pyc565330644editdlrm
decimal.cpython-310.pyc3620644editdlrm
difflib.cpython-310.pyc589050644editdlrm
dis.cpython-310.pyc156560644editdlrm
doctest.cpython-310.pyc761750644editdlrm
enum.cpython-310.pyc260630644editdlrm
filecmp.cpython-310.pyc87490644editdlrm
fileinput.cpython-310.pyc140720644editdlrm
fnmatch.cpython-310.pyc42440644editdlrm
fractions.cpython-310.pyc186000644editdlrm
ftplib.cpython-310.pyc289770644editdlrm
functools.cpython-310.pyc283350644editdlrm
genericpath.cpython-310.pyc39070644editdlrm
getopt.cpython-310.pyc63390644editdlrm
getpass.cpython-310.pyc42100644editdlrm
gettext.cpython-310.pyc182210644editdlrm
glob.cpython-310.pyc58520644editdlrm
graphlib.cpython-310.pyc76160644editdlrm
gzip.cpython-310.pyc185460644editdlrm
hashlib.cpython-310.pyc68450644editdlrm
heapq.cpython-310.pyc138650644editdlrm
hmac.cpython-310.pyc69730644editdlrm
imaplib.cpython-310.pyc424320644editdlrm
imghdr.cpython-310.pyc39050644editdlrm
imp.cpython-310.pyc97860644editdlrm
inspect.cpython-310.pyc851530644editdlrm
io.cpython-310.pyc36630644editdlrm
ipaddress.cpython-310.pyc626700644editdlrm
keyword.cpython-310.pyc9270644editdlrm
linecache.cpython-310.pyc41420644editdlrm
locale.cpython-310.pyc461540644editdlrm
lzma.cpython-310.pyc121000644editdlrm
mailbox.cpython-310.pyc600910644editdlrm
mailcap.cpython-310.pyc73200644editdlrm
mimetypes.cpython-310.pyc176190644editdlrm
modulefinder.cpython-310.pyc161660644editdlrm
netrc.cpython-310.pyc39330644editdlrm
nntplib.cpython-310.pyc316230644editdlrm
ntpath.cpython-310.pyc147040644editdlrm
nturl2path.cpython-310.pyc17470644editdlrm
numbers.cpython-310.pyc118660644editdlrm
opcode.cpython-310.pyc54470644editdlrm
operator.cpython-310.pyc135080644editdlrm
optparse.cpython-310.pyc477540644editdlrm
os.cpython-310.pyc315990644editdlrm
pathlib.cpython-310.pyc420520644editdlrm
pdb.cpython-310.pyc474400644editdlrm
pickle.cpython-310.pyc468820644editdlrm
pickletools.cpython-310.pyc677600644editdlrm
pipes.cpython-310.pyc77690644editdlrm
pkgutil.cpython-310.pyc183610644editdlrm
platform.cpython-310.pyc274290644editdlrm
plistlib.cpython-310.pyc237650644editdlrm
poplib.cpython-310.pyc136700644editdlrm
posixpath.cpython-310.pyc105600644editdlrm
pprint.cpython-310.pyc178750644editdlrm
profile.cpython-310.pyc143910644editdlrm
pstats.cpython-310.pyc236210644editdlrm
pty.cpython-310.pyc41430644editdlrm
pyclbr.cpython-310.pyc97750644editdlrm
pydoc.cpython-310.pyc856450644editdlrm
py_compile.cpython-310.pyc73390644editdlrm
queue.cpython-310.pyc107920644editdlrm
quopri.cpython-310.pyc57940644editdlrm
random.cpython-310.pyc227480644editdlrm
re.cpython-310.pyc142270644editdlrm
reprlib.cpython-310.pyc52500644editdlrm
rlcompleter.cpython-310.pyc59540644editdlrm
runpy.cpython-310.pyc94110644editdlrm
sched.cpython-310.pyc61150644editdlrm
secrets.cpython-310.pyc21750644editdlrm
selectors.cpython-310.pyc171050644editdlrm
shelve.cpython-310.pyc94920644editdlrm
shlex.cpython-310.pyc77820644editdlrm
shutil.cpython-310.pyc385360644editdlrm
signal.cpython-310.pyc29350644editdlrm
site.cpython-310.pyc179220644editdlrm
sitecustomize.cpython-310.pyc2250644editdlrm
smtpd.cpython-310.pyc261470644editdlrm
smtplib.cpython-310.pyc357660644editdlrm
sndhdr.cpython-310.pyc69620644editdlrm
socket.cpython-310.pyc289630644editdlrm
socketserver.cpython-310.pyc253470644editdlrm
sre_compile.cpython-310.pyc151940644editdlrm
sre_constants.cpython-310.pyc63570644editdlrm
sre_parse.cpython-310.pyc217550644editdlrm
ssl.cpython-310.pyc452710644editdlrm
stat.cpython-310.pyc42730644editdlrm
statistics.cpython-310.pyc370510644editdlrm
string.cpython-310.pyc71020644editdlrm
stringprep.cpython-310.pyc170750644editdlrm
struct.cpython-310.pyc3070644editdlrm
subprocess.cpython-310.pyc447410644editdlrm
sunau.cpython-310.pyc164820644editdlrm
symtable.cpython-310.pyc128350644editdlrm
sysconfig.cpython-310.pyc181510644editdlrm
tabnanny.cpython-310.pyc69500644editdlrm
tarfile.cpython-310.pyc706740644editdlrm
telnetlib.cpython-310.pyc185060644editdlrm
tempfile.cpython-310.pyc273390644editdlrm
textwrap.cpython-310.pyc138120644editdlrm
this.cpython-310.pyc12640644editdlrm
threading.cpython-310.pyc449690644editdlrm
timeit.cpython-310.pyc117690644editdlrm
token.cpython-310.pyc27380644editdlrm
tokenize.cpython-310.pyc171940644editdlrm
trace.cpython-310.pyc198700644editdlrm
traceback.cpython-310.pyc217120644editdlrm
tracemalloc.cpython-310.pyc175250644editdlrm
tty.cpython-310.pyc10790644editdlrm
turtle.cpython-310.pyc1288570644editdlrm
types.cpython-310.pyc95250644editdlrm
typing.cpython-310.pyc852770644editdlrm
uu.cpython-310.pyc38670644editdlrm
uuid.cpython-310.pyc224980644editdlrm
warnings.cpython-310.pyc136460644editdlrm
wave.cpython-310.pyc175940644editdlrm
weakref.cpython-310.pyc203430644editdlrm
webbrowser.cpython-310.pyc170000644editdlrm
xdrlib.cpython-310.pyc78800644editdlrm
zipapp.cpython-310.pyc60130644editdlrm
zipfile.cpython-310.pyc618450644editdlrm
zipimport.cpython-310.pyc170330644editdlrm
_aix_support.cpython-310.pyc28790644editdlrm
_bootsubprocess.cpython-310.pyc22940644editdlrm
_collections_abc.cpython-310.pyc329250644editdlrm
_compat_pickle.cpython-310.pyc58720644editdlrm
_compression.cpython-310.pyc45120644editdlrm
_distutils_system_mod.cpython-310.pyc54220644editdlrm
_markupbase.cpython-310.pyc75720644editdlrm
_osx_support.cpython-310.pyc115350644editdlrm
_pydecimal.cpython-310.pyc1577360644editdlrm
_pyio.cpython-310.pyc736540644editdlrm
_py_abc.cpython-310.pyc46830644editdlrm
_sitebuiltins.cpython-310.pyc35470644editdlrm
_strptime.cpython-310.pyc159450644editdlrm
_sysconfigdata__linux_x86_64-linux-gnu.cpython-310.pyc353850644editdlrm
_sysconfigdata__x86_64-linux-gnu.cpython-310.pyc353790644editdlrm
_threading_local.cpython-310.pyc65390644editdlrm
_weakrefset.cpython-310.pyc76080644editdlrm
__future__.cpython-310.pyc41310644editdlrm
__phello__.foo.cpython-310.pyc1300644editdlrm
Edit: /snap/core22/2411/usr/lib/python3.10/__pycache__/symtable.cpython-310.pyc (12835B)
o `wi'@sXdZddlZddlmZmZmZmZmZmZmZm Z m Z m Z m Z m Z mZmZmZddlZgdZddZGdddZeZGd d d ZGd d d eZGd ddeZGdddZedkrddlZddlZeejd Ze Z!Wdn1s~wYee!ej"#ejdddZ$e$%D]Z&e$'e&Z(e)e(e(*e(+qdSdS)z2Interface to the compiler's internal symbol tablesN)USE DEF_GLOBAL DEF_NONLOCAL DEF_LOCAL DEF_PARAM DEF_IMPORT DEF_BOUND DEF_ANNOT SCOPE_OFF SCOPE_MASKFREELOCALGLOBAL_IMPLICITGLOBAL_EXPLICITCELL)symtable SymbolTableClassFunctionSymbolcCst|||}t||S)z Return the toplevel *SymbolTable* for the source code. *filename* is the name of the file with the code and *compile_type* is the *compile()* mode argument. ) _symtabler_newSymbolTable)codefilename compile_typetopr/usr/lib/python3.10/symtable.pyr s rc@s$eZdZddZddZddZdS)SymbolTableFactorycCst|_dSN)weakrefWeakValueDictionary_SymbolTableFactory__memoselfrrr__init__szSymbolTableFactory.__init__cCs6|jtjkr t||S|jtjkrt||St||Sr)typer TYPE_FUNCTIONr TYPE_CLASSrr)r$tablerrrrnews     zSymbolTableFactory.newcCs8||f}|j|d}|dur|||}|j|<|Sr)r"getr*)r$r)rkeyobjrrr__call__ s zSymbolTableFactory.__call__N)__name__ __module__ __qualname__r%r*r.rrrrrs rc@s|eZdZddZddZddZddZd d Zd d Zd dZ ddZ ddZ ddZ ddZ ddZddZddZdS)rcCs||_||_i|_dSr)_table _filename_symbols)r$ raw_tablerrrrr%,s zSymbolTable.__init__cCsJ|jtkrd}nd|jj}|jjdkrd||jSd||jj|jS)Nz%s rz<{0}SymbolTable for module {1}>z<{0}SymbolTable for {1} in {2}>) __class__rr/r2nameformatr3)r$kindrrr__repr__1s   zSymbolTable.__repr__cCsX|jjtjkr dS|jjtjkrdS|jjtjkrdS|jjdvs*Jd|jjdS)zwReturn the type of the symbol table. The values retuned are 'class', 'module' and 'function'. modulefunctionclass)zunexpected type: {0}N)r2r&r TYPE_MODULEr'r(r9r#rrrget_type>s zSymbolTable.get_typecC|jjS)z,Return an identifier for the table. )r2idr#rrrget_idMszSymbolTable.get_idcCrD)zReturn the table's name. This corresponds to the name of the class, function or 'top' if the table is for a class, function or global respectively. )r2r8r#rrrget_nameRszSymbolTable.get_namecCrD)zPReturn the number of the first line in the block for the table. )r2linenor#rrr get_lineno[szSymbolTable.get_linenocCst|jjtjkS)zJReturn *True* if the locals in the table are optimizable. )boolr2r&rr'r#rrr is_optimizedaszSymbolTable.is_optimizedcC t|jjS)zAReturn *True* if the block is a nested class or function.)rJr2nestedr#rrr is_nestedg zSymbolTable.is_nestedcCrL)z:Return *True* if the block has nested namespaces. )rJr2childrenr#rrr has_childrenlrOzSymbolTable.has_childrencCs |jjS)zKReturn a view object containing the names of symbols in the table. )r2symbolskeysr#rrrget_identifiersqrOzSymbolTable.get_identifierscCsT|j|}|dur(|jj|}||}|jjdk}t||||d}|j|<|S)zLLookup a *name* in the table. Returns a *Symbol* instance. Nr module_scope)r4r+r2rR_SymbolTable__check_childrenr8r)r$r8symflags namespacesrVrrrlookupvs    zSymbolTable.lookupcsfddDS)zLReturn a list of *Symbol* instances for names in the table. csg|]}|qSr)r[.0identr#rr sz+SymbolTable.get_symbols..)rTr#rr#r get_symbolsszSymbolTable.get_symbolscsfddjjDS)Ncs"g|] }|jkrt|jqSr)r8rr3r]str8r$rrr_s   z0SymbolTable.__check_children..r2rP)r$r8rrcr__check_childrens zSymbolTable.__check_childrencsfddjjDS)z3Return a list of the nested symbol tables. csg|]}t|jqSr)rr3rar#rrr_sz,SymbolTable.get_children..rdr#rr#r get_childrens zSymbolTable.get_childrenN)r/r0r1r%r;rCrFrGrIrKrNrQrTr[r`rWrfrrrrr*s   rc@sPeZdZdZdZdZdZdZddZddZ ddZ dd Z d d Z d d Z dS)rNcstfddDS)Nc3s$|] }jj|r|VqdSr)r2rRr\r$ test_funcrr sz-Function.__idents_matching..)tuplerTrgrrgr__idents_matchingszFunction.__idents_matchingcC |jdur |dd|_|jS)z6Return a tuple of parameters to the function. NcS|t@Sr)rxrrrz)Function.get_parameters..)_Function__params_Function__idents_matchingr#rrrget_parameters zFunction.get_parametersc0|jdurttffdd}|||_|jS)z2Return a tuple of locals in the function. Nc|t?t@vSrr r rnlocsrrrpz%Function.get_locals..)_Function__localsr rrsr$testrryr get_locals   zFunction.get_localscrv)z3Return a tuple of globals in the function. Ncrwrrxrnglobrrrpr{z&Function.get_globals..)_Function__globalsrrrsr}rrr get_globalsrzFunction.get_globalscCrl)z5Return a tuple of nonlocals in the function. NcSrmr)rrnrrrrprqz(Function.get_nonlocals..)_Function__nonlocalsrsr#rrr get_nonlocalsruzFunction.get_nonlocalscCs$|jdurdd}|||_|jS)z:Return a tuple of free variables in the function. NcSs|t?t@tkSr)r r r rnrrrrpr{z$Function.get_frees..)_Function__freesrs)r$is_freerrr get_freess  zFunction.get_frees)r/r0r1rrr|rrrrsrtrrrrrrrrrs  rc@seZdZdZddZdS)rNcCs6|jduri}|jjD]}d||j<q t||_|jS)z9Return a tuple of methods declared in the class. Nr?)_Class__methodsr2rPr8rj)r$drbrrr get_methodss    zClass.get_methods)r/r0r1rrrrrrrs rc@seZdZd$ddddZddZdd Zd d Zd d ZddZddZ ddZ ddZ ddZ ddZ ddZddZddZd d!Zd"d#ZdS)%rNFrUcCs.||_||_|t?t@|_|pd|_||_dS)Nr) _Symbol__name_Symbol__flagsr r _Symbol__scope_Symbol__namespaces_Symbol__module_scope)r$r8rYrZrVrrrr%s   zSymbol.__init__cCs d|jS)Nz)r9rr#rrrr;s zSymbol.__repr__cC|jS)z#Return a name of a symbol. )rr#rrrrGszSymbol.get_namecCst|jtj@S)zBReturn *True* if the symbol is used in its block. )rJrrrr#rrr is_referencedszSymbol.is_referencedcCt|jt@S)z4Return *True* if the symbol is a parameter. )rJrrr#rrr is_parameterzSymbol.is_parametercC"t|jttfvp|jo|jt@S)z0Return *True* if the sysmbol is global. )rJrrrrrrr#rrr is_globalzSymbol.is_globalcCr)z(Return *True* if the symbol is nonlocal.)rJrrr#rrr is_nonlocalzSymbol.is_nonlocalcCt|jtkS)zOReturn *True* if the symbol is declared global with a global statement.)rJrrr#rrris_declared_globalrzSymbol.is_declared_globalcCr)z.Return *True* if the symbol is local. )rJrr rrrrr#rrris_localrzSymbol.is_localcCr)z2Return *True* if the symbol is annotated. )rJrr r#rrr is_annotated rzSymbol.is_annotatedcCr)zIReturn *True* if a referenced symbol is not assigned to. )rJrr r#rrrrzSymbol.is_freecCr)zQReturn *True* if the symbol is created from an import statement. )rJrrr#rrr is_importedrzSymbol.is_importedcCr)z)Return *True* if a symbol is assigned to.)rJrrr#rrr is_assignedrzSymbol.is_assignedcCs t|jS)aReturns *True* if name binding introduces new namespace. If the name is used as the target of a function or class statement, this will be true. Note that a single name can be bound to multiple objects. If is_namespace() is true, the name may also be bound to other objects, like an int or list, that does not introduce a new namespace. )rJrr#rrr is_namespace!s zSymbol.is_namespacecCr)z.Return a list of namespaces bound to this name)rr#rrrget_namespaces.szSymbol.get_namespacescCs t|jdkr td|jdS)zReturn the single namespace bound to this name. Raises ValueError if the name is bound to multiple namespaces. r?z$name is bound to multiple namespacesr)lenr ValueErrorr#rrr get_namespace2s zSymbol.get_namespacer)r/r0r1r%r;rGrrrrrrrrrrrrrrrrrrs" r__main__r?exec),__doc__rrrrrrrrr r r r r rrrr __all__rrrrrrrr/ossysopenargvfreadsrcpathsplitmodrTr^r[infoprintrrrrrrs.D l6`