ACC SHELL

Path : /usr/lib/python/
File Upload :
Current File : //usr/lib/python/symtable.pyc

oMc@sdZddkZddklZlZlZlZlZlZlZl	Z	l
Z
lZlZl
Z
lZlZddkZddkZdddddgZd	Zd
ddYZeZdefdYZdefd
YZdefdYZdefdYZedjoddkZddkZeeidi Z!ee!ei"i#eidddZ$x@e$i%D].Z&e$i'e&Z(e(Ge(i)Ge(i*GHqWndS(s2Interface to the compiler's internal symbol tablesiN(tUSEt
DEF_GLOBALt	DEF_LOCALt	DEF_PARAMt
DEF_IMPORTt	DEF_BOUNDtOPT_IMPORT_STARtOPT_EXECt
OPT_BARE_EXECt	SCOPE_OFFt
SCOPE_MASKtFREEtGLOBAL_IMPLICITtGLOBAL_EXPLICITtsymtabletSymbolTabletClasstFunctiontSymbolcCsNti|||}x)|iD]}|idjoPq"q"Wt||S(Nttop(t	_symtableRt
itervaluestnamet_newSymbolTable(tcodetfilenametcompile_typetrawR((s/usr/lib/python2.6/symtable.pyR
s
	tSymbolTableFactorycBs#eZdZdZdZRS(cCsti|_dS(N(tweakreftWeakValueDictionaryt_SymbolTableFactory__memo(tself((s/usr/lib/python2.6/symtable.pyt__init__scCsO|itijot||S|itijot||St||S(N(ttypeRt
TYPE_FUNCTIONRt
TYPE_CLASSRR(R ttableR((s/usr/lib/python2.6/symtable.pytnews
cCsS||f}|ii|d}|djo!|i||}|i|<n|S(N(RtgettNoneR&(R R%Rtkeytobj((s/usr/lib/python2.6/symtable.pyt__call__s

!(t__name__t
__module__R!R&R+(((s/usr/lib/python2.6/symtable.pyRs		cBseZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZd
ZdZdZRS(cCs||_||_h|_dS(N(t_tablet	_filenamet_symbols(R t	raw_tableR((s/usr/lib/python2.6/symtable.pyR!+s		cCsq|itjo
d}nd|ii}|iidjodi||iSdi||ii|iSdS(Nts%s tglobals<{0}SymbolTable for module {1}>s<{0}SymbolTable for {1} in {2}>(t	__class__RR,R.RtformatR/(R tkind((s/usr/lib/python2.6/symtable.pyt__repr__0s
		cCs|iitijodS|iitijodS|iitijodS|iidjptdi|iidS(	Ntmoduletfunctiontclassiiisunexpected type: {0}(iii(R.R"RtTYPE_MODULER#R$tAssertionErrorR5(R ((s/usr/lib/python2.6/symtable.pytget_type=scCs
|iiS(N(R.tid(R ((s/usr/lib/python2.6/symtable.pytget_idGscCs
|iiS(N(R.R(R ((s/usr/lib/python2.6/symtable.pytget_nameJscCs
|iiS(N(R.tlineno(R ((s/usr/lib/python2.6/symtable.pyt
get_linenoMscCs't|iitijo|iiS(N(tboolR.R"RR#t	optimized(R ((s/usr/lib/python2.6/symtable.pytis_optimizedPscCst|iiS(N(RCR.tnested(R ((s/usr/lib/python2.6/symtable.pyt	is_nestedTscCst|iiS(N(RCR.tchildren(R ((s/usr/lib/python2.6/symtable.pythas_childrenWscCst|iittB@S(s"Return true if the scope uses exec(RCR.RDRR(R ((s/usr/lib/python2.6/symtable.pythas_execZscCst|iit@S(s&Return true if the scope uses import *(RCR.RDR(R ((s/usr/lib/python2.6/symtable.pythas_import_star^scCs|iiiS(N(R.tsymbolstkeys(R ((s/usr/lib/python2.6/symtable.pytget_identifiersbscCsc|ii|}|djo@|ii|}|i|}t|||}|i|<n|S(N(R0R'R(R.RLt_SymbolTable__check_childrenR(R Rtsymtflagst
namespaces((s/usr/lib/python2.6/symtable.pytlookupes
!cCs.g}|iD]}||i|q~S(N(RNRS(R t_[1]tident((s/usr/lib/python2.6/symtable.pytget_symbolsmscCsEg}|iiD]-}|i|jo|t||iqq~S(N(R.RHRRR/(R RRTtst((s/usr/lib/python2.6/symtable.pyt__check_childrenpscCs1g}|iiD]}|t||iq~S(N(R.RHRR/(R RTRW((s/usr/lib/python2.6/symtable.pytget_childrenus(R,R-R!R7R=R?R@RBRERGRIRJRKRNRSRVRORY(((s/usr/lib/python2.6/symtable.pyR)s 		
	
												cBsMeZdZdZdZdZdZdZdZ	dZ
dZRS(cCsFtg}|iD](}||ii|o||qq~S(N(ttupleRNR.RL(R t	test_funcRTRU((s/usr/lib/python2.6/symtable.pyt__idents_matchingscCs0|idjo|id|_n|iS(NcSs|t@S((R(tx((s/usr/lib/python2.6/symtable.pyt<lambda>s(t_Function__paramsR(t_Function__idents_matching(R ((s/usr/lib/python2.6/symtable.pytget_parametersscCs0|idjo|id|_n|iS(NcSs|t@S((R(R]((s/usr/lib/python2.6/symtable.pyR^s(t_Function__localsR(R`(R ((s/usr/lib/python2.6/symtable.pyt
get_localsscsH|idjo1ttffd}|i||_n|iS(Ncs|t?t@jS((R	R
(R](tglob(s/usr/lib/python2.6/symtable.pyR^s(t_Function__globalsR(RR
R`(R ttest((Rds/usr/lib/python2.6/symtable.pytget_globalss
cCs6|idjod}|i||_n|iS(NcSs|t?t@tjS((R	R
R(R]((s/usr/lib/python2.6/symtable.pyR^s(t_Function__freesR(R`(R tis_free((s/usr/lib/python2.6/symtable.pyt	get_freess	N(R,R-R(R_RbRhReR`RaRcRgRj(((s/usr/lib/python2.6/symtable.pyRzs				cBseZdZdZRS(cCsT|idjo=h}x!|iiD]}d||i<q#Wt||_n|iS(Ni(t_Class__methodsR(R.RHRRZ(R tdRW((s/usr/lib/python2.6/symtable.pytget_methodss
N(R,R-R(RkRm(((s/usr/lib/python2.6/symtable.pyRscBseZddZdZdZdZdZdZdZ	dZ
dZd	Zd
Z
dZdZd
ZdZdZdZRS(cCs7||_||_|t?t@|_|pd|_dS(N((t
_Symbol__namet_Symbol__flagsR	R
t_Symbol__scopet_Symbol__namespaces(R RRQRR((s/usr/lib/python2.6/symtable.pyR!s		cCsdi|iS(Ns<symbol {0!r}>(R5Rn(R ((s/usr/lib/python2.6/symtable.pyR7scCs|iS(N(Rn(R ((s/usr/lib/python2.6/symtable.pyR@scCst|iti@S(N(RCRoRR(R ((s/usr/lib/python2.6/symtable.pyt
is_referencedscCst|it@S(N(RCRoR(R ((s/usr/lib/python2.6/symtable.pytis_parameterscCst|ittfjS(N(RCRpRR
(R ((s/usr/lib/python2.6/symtable.pyt	is_globalscCstidtdtS(Ns+is_vararg() is obsolete and will be removedi(twarningstwarntDeprecationWarningtFalse(R ((s/usr/lib/python2.6/symtable.pyt	is_varargs	
cCstidtdtS(Ns/is_keywordarg() is obsolete and will be removedi(RuRvRwRx(R ((s/usr/lib/python2.6/symtable.pyt
is_keywordargs	
cCst|itjS(N(RCRpR
(R ((s/usr/lib/python2.6/symtable.pytis_declared_globalscCst|it@S(N(RCRoR(R ((s/usr/lib/python2.6/symtable.pytis_localscCst|itjS(N(RCRpR(R ((s/usr/lib/python2.6/symtable.pyRiscCst|it@S(N(RCRoR(R ((s/usr/lib/python2.6/symtable.pytis_importedscCst|it@S(N(RCRoR(R ((s/usr/lib/python2.6/symtable.pytis_assignedscCstidtddS(Ns-is_in_tuple() is obsolete and will be removedi(RuRvRw(R ((s/usr/lib/python2.6/symtable.pytis_in_tuples	cCs
t|iS(sReturns 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.
        (RCRq(R ((s/usr/lib/python2.6/symtable.pytis_namespacescCs|iS(s.Return a list of namespaces bound to this name(Rq(R ((s/usr/lib/python2.6/symtable.pytget_namespacesscCs.t|idjo
tdn|idS(sReturns the single namespace bound to this name.

        Raises ValueError if the name is bound to multiple namespaces.
        is$name is bound to multiple namespacesi(tlenRqt
ValueError(R ((s/usr/lib/python2.6/symtable.pyt
get_namespaces
N(R,R-R(R!R7R@RrRsRtRyRzR{R|RiR}R~RRRR(((s/usr/lib/python2.6/symtable.pyRs"														
	t__main__iitexec((+t__doc__RRRRRRRRRRR	R
RRR
RuRt__all__RRRtobjectRRRRR,tostsystopentargvtreadtsrctpathtsplittmodRNRURStinfoR|R(((s/usr/lib/python2.6/symtable.pyt<module>s(^		Q$
N
)


ACC SHELL 2018