python (3.12.0)

(root)/
lib/
python3.12/
test/
__pycache__/
test_symtable.cpython-312.opt-2.pyc

Αet+x	ddlZddlZdZdZGddejZedk(rejyy)Na
import sys

glob = 42
some_var = 12
some_non_assigned_global_var = 11
some_assigned_global_var = 11

class Mine:
    instance_var = 24
    def a_method(p1, p2):
        pass

def spam(a, b, *var, **kw):
    global bar
    global some_assigned_global_var
    some_assigned_global_var = 12
    bar = 47
    some_var = 10
    x = 23
    glob
    def internal():
        return x
    def other_internal():
        nonlocal some_var
        some_var = 3
        return some_var
    return internal

def foo():
    pass

def namespace_test(): pass
def namespace_test(): pass

type Alias = int
type GenericAlias[T] = list[T]

def generic_spam[T](a):
    pass

class GenericMine[T: int]:
    pass
c\|jD]}|j|k(s|cSyN)get_childrenget_name)blocknamechs   F/BuggyBox/python/3.12.0/bootstrap/lib/python3.12/test/test_symtable.py
find_blockr7s-  "
;;=D IceZdZejeddZeedZeedZeedZ	ee	dZ
ee	dZeedZeed	Z
eed
Zeed
ZeedZeedZeedZeedZeed
ZdZdZdZdZdZdZdZdZdZdZdZdZ dZ!dZ"dZ#dZ$dZ%dZ&d Z'd!Z(d"Z)d#Z*d$Z+d%Z,d&Z-d'Z.y())SymtableTest?execMinea_methodspaminternalother_internalfooAliasGenericAliasgeneric_spamGenericMineTc|j|jjd|j|jjd|j|jjd|j|j
jd|j|jjd|j|jjd|j|jjd|j|jjd|j|jjd|j|jjd|j|jjd|j|jjd|j|jjd|j|jjdy)Nmoduleclassfunctionz
type aliasztype parameterz
TypeVar bound)assertEqualtopget_typerrrrrrrGenericAlias_innerrgeneric_spam_innerrGenericMine_innerrselfs r
	test_typezSymtableTest.test_typePs**,h7++-w7//1:>++-z://1:>**,j9,,.=**3357GH0099;\J**3357GH0099;ZH))2246FG//88:GD*O<rcL|j|jjd|j|jjd|j|jjd|j|j
jd|j|jjd|j|jjd|j|jjd|j|jjd|j|jjd|j|jjdy)Nr)
assertGreaterr!get_idrrrrrrrrrr&s r
test_idzSymtableTest.test_id`s&488??,a0499++-q14==//115499++-q14==//115488??,a04::,,.24,,335q94,,335q94++224a8rc|j|jj|j|jjyr)assertFalser!is_optimized
assertTruerr&s r
test_optimizedzSymtableTest.test_optimizedls6..01		..01rcL|j|jj|j|jj|j|jj|j|jjyr)r.r!	is_nestedrrr0rr&s r
test_nestedzSymtableTest.test_nestedqsl++-.,,./,,./

//12rc|j|jj|j|jj|j	|j
jyr)r0r!has_childrenrr.rr&s r

test_childrenzSymtableTest.test_childrenwsO--/0		..01..01rc|j|jjd|j|jjdy)Nr)r r!
get_linenorr&s r
test_linenozSymtableTest.test_lineno|s<,,.2--/4rcv|j}|jt|jgdgd}|jt|j	||jt|jgd|j|jjdy)N)abkwvar)r=r>rr?rsome_varr@x)barglobsome_assigned_global_var)rB)rr sortedget_parameters
get_localsget_globalsr	get_frees)r'funcexpecteds   r
test_function_infozSymtableTest.test_function_infosyy 3 3 568OPY 12H= 0 0 235`a002F;rc|j|jjdj|j	|jjdj|j|jjdj|j|jjdj|j	|jjdj|j	|jjdj|j|jjdj|j|jjdj|j|jjdjy)NrDrCrBinstance_varsome_non_assigned_global_varrE)	r0rlookup	is_globalr.is_declared_globalrrr!r&s r
test_globalszSymtableTest.test_globalssJ		((0::<=))&1DDFG		((/99;<		((/BBDE--c2<<>?)).9CCEF		((/99;<(FGQQST(BCMMOPrc<|j|jjdj|j	|j
jdjd}|j
|j
j|y)NrA)rA)r.rrQis_nonlocalr0rr 
get_nonlocals)r'rLs  r

test_nonlocalzSymtableTest.test_nonlocalsr))*5AACD++22:>JJLM ,,::<hGrc|j|jjdj|j	|jjdj|j|j
jdj|j|j
jdjy)NrBrCrPrE)r0rrQis_localr.r!r&s r

test_localzSymtableTest.test_locals		((-6689))%099;<(FGPPRS(BCLLNOrct|j|jjdjy)NrB)r0rrQis_freer&s r
	test_freezSymtableTest.test_frees&

,,S199;<rcT|j|jjdj|j|jjdj|j|jjdjy)NrBr)r0rrQ
is_referencedrr.r&s r
test_referencedzSymtableTest.test_referencedsp

,,S1??AB		((4BBDE))#.<<>?rcdD]:}|j|jj|j<|j	|jjdjy)N)r=r@r?rB)r0rrQis_parameterr.)r'syms  r
test_parameterszSymtableTest.test_parameterss]%	BCOODII,,S1>>@A	B))#.;;=>rc|jt|jjt|jj	|jt|jjdy)Nnot_here)r lenr!get_identifiersget_symbolsassertRaisesKeyErrorrQr&s r
test_symbol_lookupzSymtableTest.test_symbol_lookupsUTXX5578TXX1134	6	
(DHHOOZ@rc|j|jjdj|j|jjdj|j|jjdj|j|j
jdj|j|jjdj|j
|j
jdj|j|jjdj|j
u|jjd}|jt|jd|jt|j|jjd}|jt|jd	|jt|jy)
Nrrrrnamespace_testrBrDr)
r0r!rQis_namespacerrr.
get_namespacer rhget_namespacesrk
ValueError)r'ns_test	ns_test_2s   r
test_namespaceszSymtableTest.test_namespacess/<<>?		((4AACD/<<>?		((4AACD(89FFHI))#.;;=>/==?499LM((//"23W3356:*g&;&;<HHOOF+	Y5578!<*i&=&=>rc4|j|jjdj|j|jjdj|j|jjdj|j|j
jdj|j
|jjdjy)NrBrCrr)r0rrQis_assignedr!rr.rr&s r

test_assignedzSymtableTest.test_assigneds		((-99;<		((/;;=>/;;=>		((4@@BC--c2>>@Arc0tjddd}|jd}|j|jdj	|j|jdj|j
|jdjtjddd}|jd}|j|jdj	|j
|jdjtjddd}|j|jdjtjddd}y)	Nzdef f():
    x: int
testrrrBzdef f():
    x = 1
zglobal x
x: intz=def g():
    x = 2
    def f():
        nonlocal x
    x: int)symtablerr0rQrZis_annotatedr.rR)r'st1st2st3st4st5st6s       r
test_annotatedzSymtableTest.test_annotateds9 8&&I #

30023

34467C2245 7H #

30023C5578 2FFC

31134!-
!'0rct|j|jjdjy)Nsys)r0r!rQis_importedr&s r

test_importedzSymtableTest.test_importeds$.::<=rcr|j|jjd|j|jjd|j|jj	djd|j|j
jdy)Nr!rrBr)r r!rrrQrr&s r
	test_namezSymtableTest.test_names**,e4++-v6))#.7793?++-v6rcX|j|jjdy)N)r)r rget_methodsr&s r
test_class_infozSymtableTest.test_class_infos..0-@rcfd}|dd|ddtjdddjt5tjdtdddddjt5tjdt	dddddjt5tjdtdddddy#1swYxYw#1swYTxYw#1swYyxYw)	Nc2	tj|ddjd|y#t$r^}j|jdj|j
dj|j|Yd}~yd}~wwxYw)Nrrzno SyntaxError for )r}failSyntaxErrorr filenamelinenooffset)
brokencoderer's   r

checkfilenamez9SymtableTest.test_filename_correct.<locals>.checkfilenames}
C!!*ff=		ZAB
3  V4  1-  622
3s/	BABBzdef f(x): foo)(r9zdef f(x): global xpasssspamr)r}rk	TypeError	bytearray
memoryviewlist)r'rs` r
test_filename_correctz"SymtableTest.test_filename_corrects	C	',*B/&'62


y
)	Bfi&8&A	B


y
)	Cfj&96B	C


y
)	=fd7mV<	=	=		B	B	C	C	=	=s$!C+!C7!D+C47DDc2tjddd}y)N42revalr}r'symbolss  r
	test_evalzSymtableTest.test_evals##D#v6rc2tjddd}y)Nrrsinglerrs  r
test_singlezSymtableTest.test_single
s##D#x8rc2tjddd}y)Nzdef f(x): return xrrrrs  r
	test_execzSymtableTest.test_exec
s##$8#vFrctjtjddd}|jt	|dd}tj|dd}|jt	|dy)Nutf8rrrs+# -*- coding: iso8859-15 -*-
class : pass
uŽ)r}	TEST_CODEencodeassertIsNotNoner)r'r!codes   r

test_byteszSymtableTest.test_bytessd	 0 0 8#vFZV45Bc62ZX67rc|jt|jd|jt|jdy)Nz<SymbolTable for module ?>z$<Function SymbolTable for spam in ?>)r strr!rr&s r
test_symtable_reprzSymtableTest.test_symtable_reprs4TXX(DETYY)OPrN)/__name__
__module____qualname__r}rr!rrrrrrrrrr#rr$rr%rr(r,r1r4r7r;rMrTrXr[r^rarermrwrzrrrrrrrrrrrr
rr=sO
(

IsF
3Cc6"D$
+Hc6"D$
+H&67N
S%
 CsG$Ec>2L#L.Ac>2L#L.AS-0K";
>;$A= 
92
32
5<
QHP=@
?
A?"B02>7A=,79G8Qrr__main__)r}unittestrrTestCaserrmainrrr
<module>rsP+
	\^Q8$$^QBzHMMOr