ACC SHELL

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

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
		cCsU|iitijodS|iitijodS|iitijodSdS(Ntmoduletfunctiontclass(R.R"RtTYPE_MODULER#R$(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(RBR.tnested(R ((s/usr/lib/python2.6/symtable.pyt	is_nestedTscCst|iiS(N(RBR.tchildren(R ((s/usr/lib/python2.6/symtable.pythas_childrenWscCst|iittB@S(s"Return true if the scope uses exec(RBR.RCRR(R ((s/usr/lib/python2.6/symtable.pythas_execZscCst|iit@S(s&Return true if the scope uses import *(RBR.RCR(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.RKt_SymbolTable__check_childrenR(R Rtsymtflagst
namespaces((s/usr/lib/python2.6/symtable.pytlookupes
!cCs.g}|iD]}||i|q~S(N(RMRR(R t_[1]tident((s/usr/lib/python2.6/symtable.pytget_symbolsmscCsEg}|iiD]-}|i|jo|t||iqq~S(N(R.RGRRR/(R RRStst((s/usr/lib/python2.6/symtable.pyt__check_childrenpscCs1g}|iiD]}|t||iq~S(N(R.RGRR/(R RSRV((s/usr/lib/python2.6/symtable.pytget_childrenus(R,R-R!R7R<R>R?RARDRFRHRIRJRMRRRURNRX(((s/usr/lib/python2.6/symtable.pyR)s 		
	
												cBsMeZdZdZdZdZdZdZdZ	dZ
dZRS(cCsFtg}|iD](}||ii|o||qq~S(N(ttupleRMR.RK(R t	test_funcRSRT((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((Rcs/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^RaRgRdR_R`RbRfRi(((s/usr/lib/python2.6/symtable.pyRzs				cBseZdZdZRS(cCsT|idjo=h}x!|iiD]}d||i<q#Wt||_n|iS(Ni(t_Class__methodsR(R.RGRRY(R tdRV((s/usr/lib/python2.6/symtable.pytget_methodss
N(R,R-R(RjRl(((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 RRPRQ((s/usr/lib/python2.6/symtable.pyR!s		cCsdi|iS(Ns<symbol {0!r}>(R5Rm(R ((s/usr/lib/python2.6/symtable.pyR7scCs|iS(N(Rm(R ((s/usr/lib/python2.6/symtable.pyR?scCst|iti@S(N(RBRnRR(R ((s/usr/lib/python2.6/symtable.pyt
is_referencedscCst|it@S(N(RBRnR(R ((s/usr/lib/python2.6/symtable.pytis_parameterscCst|ittfjS(N(RBRoR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(RtRuRvRw(R ((s/usr/lib/python2.6/symtable.pyt
is_keywordargs	
cCst|itjS(N(RBRoR
(R ((s/usr/lib/python2.6/symtable.pytis_declared_globalscCst|it@S(N(RBRnR(R ((s/usr/lib/python2.6/symtable.pytis_localscCst|itjS(N(RBRoR(R ((s/usr/lib/python2.6/symtable.pyRhscCst|it@S(N(RBRnR(R ((s/usr/lib/python2.6/symtable.pytis_importedscCst|it@S(N(RBRnR(R ((s/usr/lib/python2.6/symtable.pytis_assignedscCstidtddS(Ns-is_in_tuple() is obsolete and will be removedi(RtRuRv(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.
        (RBRp(R ((s/usr/lib/python2.6/symtable.pytis_namespacescCs|iS(s.Return a list of namespaces bound to this name(Rp(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(tlenRpt
ValueError(R ((s/usr/lib/python2.6/symtable.pyt
get_namespaces
N(R,R-R(R!R7R?RqRrRsRxRyRzR{RhR|R}R~RRR(((s/usr/lib/python2.6/symtable.pyRs"														
	t__main__iitexec((+t__doc__RRRRRRRRRRR	R
RRR
RtRt__all__RRRtobjectRRRRR,tostsystopentargvtreadtsrctpathtsplittmodRMRTRRtinfoR{R(((s/usr/lib/python2.6/symtable.pyt<module>s(^		Q$
N
)


ACC SHELL 2018