b374k
m1n1 1.01
Apache/2.2.15 (CentOS)
Linux obd60-6c49958d75-2q7cw 5.4.0-174-generic #193-Ubuntu SMP Thu Mar 7 14:29:28 UTC 2024 x86_64
uid=48(apache) gid=48(apache) groups=48(apache)
server ip : 172.67.192.52 | your ip : 10.244.126.0
safemode OFF
 >  / usr / lib64 / python2.6 / compiler /
Filename/usr/lib64/python2.6/compiler/symbols.pyc
Size17.42 kb
Permissionrw-r--r--
Ownerapache
Create time23-Dec-2025 17:41
Last modified20-Jun-2019 19:45
Last accessed20-Jun-2019 19:45
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
Ñò
§ÚêLc@sNdZddklZddklZlZlZlZlZddk l
Z
ddk Z ddk Z dZ
ddd��YZd efd
��YZd efd ��YZd
efd��YZdefd��YZdefd��YZddd��YZd�Zedjo4ddk Z ddklZlZddkZd�Zxúe idD]çZeGHee�Zei�Z ei!�eie ed�Z"ee"�Z#ee�Z$e�Z%ee$e%�e%i&e$i�Z'ee#e'�p1HdGeGHe(e#�GHe(e'�GHe i)d�nhZ*e*i+e%i&�e*e$=e*i,�Z&[*xôe"i-�D]æZ%e%i.�oÓgZ/e&D]'Z0e0i1e%i2�jo e/e0qvqv[/Z3e4e3�djodGe%i2�GHq>eee%i5��e3di��pHe%i2�GHe(ee%i5���GHe(e3di��GHe i)d�q>qXqXWq[WndS( sModule symbol-table generatoriÿÿÿÿ(tast(tSC_LOCALt SC_GLOBALtSC_FREEtSC_CELLt
SC_UNKNOWN(tmangleNitScopecBs¤eZdd�Zd�Zd�Zd�Zd�Zd�Zd�Z d�Z
d�Z d �Z d
�Z
d �Zd �Zd
�Zd�Zd�Zd�ZRS(cCsÁ||_||_h|_h|_h|_h|_h|_h|_g|_d|_
d|_ d|_ |dj oDxAt
t|��D])}||djo|||_ Pq�q�WndS(Nt_(tnametmoduletdefstusestglobalstparamstfreestcellstchildrentNonetnestedt generatortklasstrangetlen(tselfR R
Rti((s(/usr/lib64/python2.6/compiler/symbols.pyt__init__s$            

cCsd|ii|ifS(Ns<%s: %s>(t __class__t__name__R (R((s(/usr/lib64/python2.6/compiler/symbols.pyt__repr__$scCs%|idjo|St||i�S(N(RRR(RR ((s(/usr/lib64/python2.6/compiler/symbols.pyR'scCsd|i|i|�<dS(Ni(R R(RR ((s(/usr/lib64/python2.6/compiler/symbols.pytadd_def,scCsd|i|i|�<dS(Ni(R R(RR ((s(/usr/lib64/python2.6/compiler/symbols.pytadd_use/scCs~|i|�}||ijp||ijon||ijotd||if�nd|i|<|ii|�dS(Ns %s in %s is global and parameteri( RR R Rt SyntaxErrorR R
R
R(RR ((s(/usr/lib64/python2.6/compiler/symbols.pyt
add_global2s 
cCs-|i|�}d|i|<d|i|<dS(Ni(RR R(RR ((s(/usr/lib64/python2.6/compiler/symbols.pyt add_param<s
cCs@h}|i|i�|i|i�|i|i�|i�S(N(tupdateR R R
tkeys(Rtd((s(/usr/lib64/python2.6/compiler/symbols.pyt get_namesAs
cCs|ii|�dS(N(Rtappend(Rtchild((s(/usr/lib64/python2.6/compiler/symbols.pyt add_childHscCs|iS(N(R(R((s(/usr/lib64/python2.6/compiler/symbols.pyt get_childrenKscCs�ti|iI|iodpdIJtidI|iIJtidI|iIJtidI|iIJtidI|iIJtidI|iIJdS(NRts
globals: s cells: s defs: s uses: s frees:( tsyststderrR RR
RR R R(R((s(/usr/lib64/python2.6/compiler/symbols.pytDEBUGNs 'cCs�||ijotS||ijotS||ijotS|io%||ijp||ijot S|iot
StSdS(sbReturn scope of name.

The scope of a name could be LOCAL, GLOBAL, FREE, or CELL.
N( R
RRRR RRRR RR(RR ((s(/usr/lib64/python2.6/compiler/symbols.pyt
check_nameVs*
cCsw|ipdSh}|i|i�xE|ii�D]4}||ijo||ijod||<q5q5W|i�S(Ni((RR#RR R$R R
(RtfreeR ((s(/usr/lib64/python2.6/compiler/symbols.pyt
get_free_varshs
 cCsQxJ|iD]?}|i�}|i|�}x|D]}|i|�q2Wq
WdS(N(RR1t add_freest force_global(RR(RR
R ((s(/usr/lib64/python2.6/compiler/symbols.pythandle_childrenrs
 cCsjd|i|<||ijo|i|=nx8|iD]-}|i|�tjo|i|�q5q5WdS(sÞForce name to be global in scope.

Some child of the current node had a free reference to name.
When the child was processed, it was labelled a free
variable. Now that all its enclosing scope have been
processed, the name is known to be a global or builtin. So
walk back down the child chain and set the name to be global
rather than free.

Be careful to stop if a child does not think the name is
free.
iN(R
RRR/RR3(RR R(((s(/usr/lib64/python2.6/compiler/symbols.pyR3ys


cCsg}x |D]}|i|�}|io©|tjp|tjpt|t�od|i|<q|tjo|i|�qt|t �o|t
jod|i |<q|t jo|i|�qq
|t
jod|i |<q
|t jo|i|�q
q
W|S(sþProcess list of free vars from nested scope.

Returns a list of names that are either 1) declared global in the
parent or 2) undefined in a top-level parent. In either case,
the nested scope should treat them as globals.
i(
R/RRRt
isinstancet
ClassScopeRRR't
FunctionScopeRRR(Rtnamest
child_globalsR tsc((s(/usr/lib64/python2.6/compiler/symbols.pyR2�s&




cCs
|ii�S(N(RR$(R((s(/usr/lib64/python2.6/compiler/symbols.pyt
get_cell_vars¨sN(Rt
__module__RRRRRRR!R"R&R)R*R.R/R1R4R3R2R;(((s(/usr/lib64/python2.6/compiler/symbols.pyR
s"     
     
  t ModuleScopecBseZeiZd�ZRS(cCs|id|�dS(Ntglobal(t_ModuleScope__super_init(R((s(/usr/lib64/python2.6/compiler/symbols.pyR®s(RR<RRR?(((s(/usr/lib64/python2.6/compiler/symbols.pyR=«s R7cBseZRS((RR<(((s(/usr/lib64/python2.6/compiler/symbols.pyR7±st GenExprScopecBs,eZeiZdZdd�Zd�ZRS(icCs@|i}|id7_|id|||�|id�dS(Nisgenerator expression<%d>s.0(t_GenExprScope__countert_GenExprScope__super_initR"(RR
RR((s(/usr/lib64/python2.6/compiler/symbols.pyR¹s cCsti|�}|S(N(RR&(RR$((s(/usr/lib64/python2.6/compiler/symbols.pyR&¿sN(RR<RRRBRARR&(((s(/usr/lib64/python2.6/compiler/symbols.pyR@´s  t LambdaScopecBs#eZeiZdZdd�ZRS(icCs3|i}|id7_|id|||�dS(Nis lambda.%d(t_LambdaScope__countert_LambdaScope__super_init(RR
RR((s(/usr/lib64/python2.6/compiler/symbols.pyRÈs N(RR<RRRERDR(((s(/usr/lib64/python2.6/compiler/symbols.pyRCÃs R6cBseZeiZd�ZRS(cCs|i|||�dS(N(t_ClassScope__super_init(RR R
((s(/usr/lib64/python2.6/compiler/symbols.pyRÐs(RR<RRRF(((s(/usr/lib64/python2.6/compiler/symbols.pyR6Ís t
SymbolVisitorcBseZd�Zd�ZeZd�Zd�Zd�Zd�Zd�Z dd�Z
d �Z d
�Z d �Z
dd �Zd
�Zd�Zd�Zd�Zd�Zdd�Zdd�Zdd�Zdd�Zd�ZeieieifZd�Zd�ZRS(cCsh|_d|_dS(N(tscopesRR(R((s(/usr/lib64/python2.6/compiler/symbols.pyRÔs cCs2t�}|_|i|<|i|i|�dS(N(R=R
RHtvisittnode(RRJtscope((s(/usr/lib64/python2.6/compiler/symbols.pyt visitModuleÚscCsÞ|io|i|i|�n|i|i�x!|iD]}|i||�q;Wt|i|i|i�}|ipt |t�o
d|_n||i
|<|i ||i �|i|i
|�|i||�dS(Ni(t
decoratorsRIRR tdefaultsR7R
RRR5RHt_do_argstargnamestcodethandle_free_vars(RRJtparenttnRK((s(/usr/lib64/python2.6/compiler/symbols.pyt
visitFunctionàs



cCs�t|i|i�}|ip t|t�pt|t�o
d|_n||i|<|i|i|�|i ||�dS(Ni(
R@R
RRR5R7RHRIRQRR(RRJRSRK((s(/usr/lib64/python2.6/compiler/symbols.pyt visitGenExprîs

cCs;x!|iD]}|i||�q
W|i|i|�dS(N(tqualsRItexpr(RRJRKtgenfor((s(/usr/lib64/python2.6/compiler/symbols.pytvisitGenExprInnerùs
cCsQ|i|i|d�|i|i|�x!|iD]}|i||�q3WdS(Ni(RItassigntitertifs(RRJRKtif_((s(/usr/lib64/python2.6/compiler/symbols.pytvisitGenExprForÿs

cCs|i|i|�dS(N(RIttest(RRJRK((s(/usr/lib64/python2.6/compiler/symbols.pytvisitGenExprIfsicCs¶| pt�x!|iD]}|i||�qWt|i|i�}|ipt|t�o
d|_n||i |<|i
||i �|i|i |�|i
||�dS(Ni(tAssertionErrorRNRIRCR
RRR5R7RHRORPRQRR(RRJRSR[RTRK((s(/usr/lib64/python2.6/compiler/symbols.pyt visitLambdas


cCsLxE|D]=}t|�tijo|i||�q|i|�qWdS(N(ttypettypest TupleTypeROR"(RRKtargsR ((s(/usr/lib64/python2.6/compiler/symbols.pyROs
cCs|i|�|i�dS(N(R)R4(RRKRS((s(/usr/lib64/python2.6/compiler/symbols.pyRRs
cCsð|i|i�x!|iD]}|i||�qWt|i|i�}|ipt|t�o
d|_n|i dj o|id�n|id�||i |<|i }|i|_ |i|i
|�||_ |i||�dS(Nit__doc__R<(RR tbasesRIR6R
RR5R7tdocRRHRRQRR(RRJRSRTRKtprev((s(/usr/lib64/python2.6/compiler/symbols.pyt
visitClass#s 



   cCs/|o|i|i�n|i|i�dS(N(RR R(RRJRKR[((s(/usr/lib64/python2.6/compiler/symbols.pyt visitName:scCsa|i|i|d�|i|i|�|i|i|�|io|i|i|�ndS(Ni(RIR[tlisttbodytelse_(RRJRK((s(/usr/lib64/python2.6/compiler/symbols.pytvisitForBs

cCsFx?|iD]4\}}|djoq
n|i|p|�q
WdS(Nt*(R8R(RRJRKR tasname((s(/usr/lib64/python2.6/compiler/symbols.pyt visitFromIs


cCs\xU|iD]J\}}|id�}|djo|| }n|i|p|�q
WdS(Nt.iÿÿÿÿ(R8tfindR(RRJRKR RsR((s(/usr/lib64/python2.6/compiler/symbols.pyt visitImportOs 

cCs%x|iD]}|i|�q
WdS(N(R8R!(RRJRKR ((s(/usr/lib64/python2.6/compiler/symbols.pyt visitGlobalVs
cCs>x$|iD]}|i||d�q
W|i|i|�dS(s.Propagate assignment flag down to child nodes.

The Assign node doesn't itself contains the variables being
assigned to. Instead, the children in node.nodes are visited
with the assign flag set to true. When the names occur in
those nodes, they are marked as defs.

Some names that occur in an assignment target are not bound by
the assignment, e.g. a name occurring inside a slice. The
visitor handles these nodes specially; they do not propagate
the assign flag to their children.
iN(tnodesRIRX(RRJRKRT((s(/usr/lib64/python2.6/compiler/symbols.pyt visitAssignZs
icCs|i|i�dS(N(RR (RRJRKR[((s(/usr/lib64/python2.6/compiler/symbols.pyt visitAssNamekscCs|i|i|d�dS(Ni(RIRX(RRJRKR[((s(/usr/lib64/python2.6/compiler/symbols.pyt visitAssAttrnscCsA|i|i|d�x$|iD]}|i||d�q WdS(Ni(RIRXtsubs(RRJRKR[RT((s(/usr/lib64/python2.6/compiler/symbols.pytvisitSubscriptqs
cCsb|i|i|d�|io|i|i|d�n|io|i|i|d�ndS(Ni(RIRXtlowertupper(RRJRKR[((s(/usr/lib64/python2.6/compiler/symbols.pyt
visitSlicevs


cCsZ|i|i|�t|iti�o|i|i|d�n|i|i|�dS(Ni(RIRJR5RtNameRX(RRJRK((s(/usr/lib64/python2.6/compiler/symbols.pytvisitAugAssign}scCs¤x||iD]q\}}t|ti�o2t|i�|ijo|ipq
qWq[n|i||�|i||�q
W|io|i|i|�ndS(N( ttestsR5RtConstRdtvaluet _const_typesRIRp(RRJRKR`Ro((s(/usr/lib64/python2.6/compiler/symbols.pytvisitIf�s


cCs d|_|i|i|�dS(Ni(RRIR�(RRJRK((s(/usr/lib64/python2.6/compiler/symbols.pyt
visitYield�s ( RR<RRLtvisitExpressionRURVRZR_RaRcRORRRlRmRqRtRwRxRzR{R|R~R�R�Ret
StringTypetIntTypet FloatTypeR�R�R�(((s(/usr/lib64/python2.6/compiler/symbols.pyRGÓs4                    

cCst|�t|�jS(N(tsorted(tl1tl2((s(/usr/lib64/python2.6/compiler/symbols.pytlist_eq�st__main__(t parseFiletwalkcCsjg}g}|i�D]}||i�q~D]1}|id�p
|id�p ||q2q2~S(Ns_[Ru(t get_symbolstget_namet
startswith(tsymst_[1]t_[2]ts((s(/usr/lib64/python2.6/compiler/symbols.pyR&¢s8itexectoopstskippingi(((6RhtcompilerRtcompiler.constsRRRRRt
compiler.miscRReR,t
MANGLE_LENRR=R7R@RCR6RGR�RR�R�tsymtableR&targvtfiletopentftreadtbuftcloseR�t mod_namesttreeR�RHtnames2R�texitR%R#tvaluesR�t is_namespaceR�R:R R�tlRt
get_namespace(((s(/usr/lib64/python2.6/compiler/symbols.pyt<module>sn(  �
Ç 
     
   
    

*