AlkantarClanX12

Your IP : 18.227.49.73


Current Path : /opt/alt/python33/lib64/python3.3/__pycache__/
Upload File :
Current File : //opt/alt/python33/lib64/python3.3/__pycache__/symtable.cpython-33.pyc

�
��f�c@s�dZddlZddlmZmZmZmZmZmZmZm	Z	m
Z
mZmZm
Z
mZmZddlZdddddgZd	d�ZGd
d�d�Ze�ZGdd�de�ZGd
d�de�ZGdd�de�ZGdd�de�Zedkr�ddlZddlZeejd�j�Z ee ej!j"ejd�dd�Z#xBe#j$�D]1Z%e#j&e%�Z'e(e'e'j)�e'j*��q�WndS(u2Interface to the compiler's internal symbol tablesiN(uUSEu
DEF_GLOBALu	DEF_LOCALu	DEF_PARAMu
DEF_IMPORTu	DEF_BOUNDuOPT_IMPORT_STARu	SCOPE_OFFu
SCOPE_MASKuFREEuLOCALuGLOBAL_IMPLICITuGLOBAL_EXPLICITuCELLusymtableuSymbolTableuClassuFunctionuSymbolcCs"tj|||�}t||�S(N(u	_symtableusymtableu_newSymbolTable(ucodeufilenameucompile_typeutop((u-/opt/alt/python33/lib64/python3.3/symtable.pyusymtablescBs8|EeZdZdd�Zdd�Zdd�ZdS(uSymbolTableFactorycCstj�|_dS(N(uweakrefuWeakValueDictionaryu_SymbolTableFactory__memo(uself((u-/opt/alt/python33/lib64/python3.3/symtable.pyu__init__suSymbolTableFactory.__init__cCsK|jtjkrt||�S|jtjkr>t||�St||�S(N(utypeu	_symtableu
TYPE_FUNCTIONuFunctionu
TYPE_CLASSuClassuSymbolTable(uselfutableufilename((u-/opt/alt/python33/lib64/python3.3/symtable.pyunews


uSymbolTableFactory.newcCsQ||f}|jj|d�}|dkrM|j||�}|j|<n|S(N(u_SymbolTableFactory__memougetuNoneunew(uselfutableufilenameukeyuobj((u-/opt/alt/python33/lib64/python3.3/symtable.pyu__call__s
 uSymbolTableFactory.__call__N(u__name__u
__module__u__qualname__u__init__unewu__call__(u
__locals__((u-/opt/alt/python33/lib64/python3.3/symtable.pyuSymbolTableFactorysuSymbolTableFactorycBs�|EeZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zdd�Zdd �Zd!S("uSymbolTablecCs||_||_i|_dS(N(u_tableu	_filenameu_symbols(uselfu	raw_tableufilename((u-/opt/alt/python33/lib64/python3.3/symtable.pyu__init__'s		uSymbolTable.__init__cCsm|jtkrd}nd|jj}|jjdkrMdj||j�Sdj||jj|j�SdS(Nuu%s uglobalu<{0}SymbolTable for module {1}>u<{0}SymbolTable for {1} in {2}>(u	__class__uSymbolTableu__name__u_tableunameuformatu	_filename(uselfukind((u-/opt/alt/python33/lib64/python3.3/symtable.pyu__repr__,s			uSymbolTable.__repr__cCs||jjtjkrdS|jjtjkr2dS|jjtjkrKdS|jjdksxtdj|jj���dS(	Numoduleufunctionuclassiiiuunexpected type: {0}(iii(u_tableutypeu	_symtableuTYPE_MODULEu
TYPE_FUNCTIONu
TYPE_CLASSuAssertionErroruformat(uself((u-/opt/alt/python33/lib64/python3.3/symtable.pyuget_type9suSymbolTable.get_typecCs
|jjS(N(u_tableuid(uself((u-/opt/alt/python33/lib64/python3.3/symtable.pyuget_idCsuSymbolTable.get_idcCs
|jjS(N(u_tableuname(uself((u-/opt/alt/python33/lib64/python3.3/symtable.pyuget_nameFsuSymbolTable.get_namecCs
|jjS(N(u_tableulineno(uself((u-/opt/alt/python33/lib64/python3.3/symtable.pyu
get_linenoIsuSymbolTable.get_linenocCs&t|jjtjko"|jj�S(N(uboolu_tableutypeu	_symtableu
TYPE_FUNCTIONu	optimized(uself((u-/opt/alt/python33/lib64/python3.3/symtable.pyuis_optimizedLsuSymbolTable.is_optimizedcCst|jj�S(N(uboolu_tableunested(uself((u-/opt/alt/python33/lib64/python3.3/symtable.pyu	is_nestedPsuSymbolTable.is_nestedcCst|jj�S(N(uboolu_tableuchildren(uself((u-/opt/alt/python33/lib64/python3.3/symtable.pyuhas_childrenSsuSymbolTable.has_childrencCsdS(u7Return true if the scope uses exec.  Deprecated method.F(uFalse(uself((u-/opt/alt/python33/lib64/python3.3/symtable.pyuhas_execVsuSymbolTable.has_execcCst|jjt@�S(u&Return true if the scope uses import *(uboolu_tableu	optimizeduOPT_IMPORT_STAR(uself((u-/opt/alt/python33/lib64/python3.3/symtable.pyuhas_import_starZsuSymbolTable.has_import_starcCs|jjj�S(N(u_tableusymbolsukeys(uself((u-/opt/alt/python33/lib64/python3.3/symtable.pyuget_identifiers^suSymbolTable.get_identifierscCsa|jj|�}|dkr]|jj|}|j|�}t|||�}|j|<n|S(N(u_symbolsugetuNoneu_tableusymbolsu_SymbolTable__check_childrenuSymbol(uselfunameusymuflagsu
namespaces((u-/opt/alt/python33/lib64/python3.3/symtable.pyulookupas uSymbolTable.lookupcs�fdd��j�D�S(Ncsg|]}�j|��qS((ulookup(u.0uident(uself(u-/opt/alt/python33/lib64/python3.3/symtable.pyu
<listcomp>js	u+SymbolTable.get_symbols.<locals>.<listcomp>(uget_identifiers(uself((uselfu-/opt/alt/python33/lib64/python3.3/symtable.pyuget_symbolsisuSymbolTable.get_symbolscs ��fdd��jjD�S(Ncs1g|]'}|j�krt|�j��qS((unameu_newSymbolTableu	_filename(u.0ust(unameuself(u-/opt/alt/python33/lib64/python3.3/symtable.pyu
<listcomp>ms	u0SymbolTable.__check_children.<locals>.<listcomp>(u_tableuchildren(uselfuname((unameuselfu-/opt/alt/python33/lib64/python3.3/symtable.pyu__check_childrenlsuSymbolTable.__check_childrencs�fdd��jjD�S(Ncs"g|]}t|�j��qS((u_newSymbolTableu	_filename(u.0ust(uself(u-/opt/alt/python33/lib64/python3.3/symtable.pyu
<listcomp>rs	u,SymbolTable.get_children.<locals>.<listcomp>(u_tableuchildren(uself((uselfu-/opt/alt/python33/lib64/python3.3/symtable.pyuget_childrenqsuSymbolTable.get_childrenN(u__name__u
__module__u__qualname__u__init__u__repr__uget_typeuget_iduget_nameu
get_linenouis_optimizedu	is_nesteduhas_childrenuhas_execuhas_import_staruget_identifiersulookupuget_symbolsu_SymbolTable__check_childrenuget_children(u
__locals__((u-/opt/alt/python33/lib64/python3.3/symtable.pyuSymbolTable%s 

cBsh|EeZdZdZdZdZdZdd�Zdd�Z	dd�Z
dd�Zd	d
�ZdS(uFunctioncs&t��fdd��j�D��S(Ncs,g|]"}��jj|�r|�qS((u_tableusymbols(u.0uident(uselfu	test_func(u-/opt/alt/python33/lib64/python3.3/symtable.pyu
<listcomp>s	u.Function.__idents_matching.<locals>.<listcomp>(utupleuget_identifiers(uselfu	test_func((uselfu	test_funcu-/opt/alt/python33/lib64/python3.3/symtable.pyu__idents_matching~suFunction.__idents_matchingcCs1|jdkr*|jdd��|_n|jS(NcSs|t@S(N(u	DEF_PARAM(ux((u-/opt/alt/python33/lib64/python3.3/symtable.pyu<lambda>�su)Function.get_parameters.<locals>.<lambda>(u_Function__paramsuNoneu_Function__idents_matching(uself((u-/opt/alt/python33/lib64/python3.3/symtable.pyuget_parameters�suFunction.get_parameterscsI|jdkrBttf��fdd�}|j|�|_n|jS(Ncs|t?t@�kS(N(u	SCOPE_OFFu
SCOPE_MASK(ux(ulocs(u-/opt/alt/python33/lib64/python3.3/symtable.pyu<lambda>�su%Function.get_locals.<locals>.<lambda>(u_Function__localsuNoneuLOCALuCELLu_Function__idents_matching(uselfutest((ulocsu-/opt/alt/python33/lib64/python3.3/symtable.pyu
get_locals�s
uFunction.get_localscsI|jdkrBttf��fdd�}|j|�|_n|jS(Ncs|t?t@�kS(N(u	SCOPE_OFFu
SCOPE_MASK(ux(uglob(u-/opt/alt/python33/lib64/python3.3/symtable.pyu<lambda>�su&Function.get_globals.<locals>.<lambda>(u_Function__globalsuNoneuGLOBAL_IMPLICITuGLOBAL_EXPLICITu_Function__idents_matching(uselfutest((uglobu-/opt/alt/python33/lib64/python3.3/symtable.pyuget_globals�s
uFunction.get_globalscCs7|jdkr0dd�}|j|�|_n|jS(NcSs|t?t@tkS(N(u	SCOPE_OFFu
SCOPE_MASKuFREE(ux((u-/opt/alt/python33/lib64/python3.3/symtable.pyu<lambda>�su$Function.get_frees.<locals>.<lambda>(u_Function__freesuNoneu_Function__idents_matching(uselfuis_free((u-/opt/alt/python33/lib64/python3.3/symtable.pyu	get_frees�suFunction.get_freesN(
u__name__u
__module__u__qualname__uNoneu_Function__paramsu_Function__localsu_Function__freesu_Function__globalsu_Function__idents_matchinguget_parametersu
get_localsuget_globalsu	get_frees(u
__locals__((u-/opt/alt/python33/lib64/python3.3/symtable.pyuFunctionvscBs&|EeZdZdZdd�ZdS(uClasscCsR|jdkrKi}x!|jjD]}d||j<q"Wt|�|_n|jS(Ni(u_Class__methodsuNoneu_tableuchildrenunameutuple(uselfudust((u-/opt/alt/python33/lib64/python3.3/symtable.pyuget_methods�suClass.get_methodsN(u__name__u
__module__u__qualname__uNoneu_Class__methodsuget_methods(u
__locals__((u-/opt/alt/python33/lib64/python3.3/symtable.pyuClass�scBs�|EeZdZddd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Z	d
d�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zdd�ZdS(uSymbolcCs6||_||_|t?t@|_|p,f|_dS(N(u
_Symbol__nameu_Symbol__flagsu	SCOPE_OFFu
SCOPE_MASKu_Symbol__scopeu_Symbol__namespaces(uselfunameuflagsu
namespaces((u-/opt/alt/python33/lib64/python3.3/symtable.pyu__init__�s		uSymbol.__init__cCsdj|j�S(Nu<symbol {0!r}>(uformatu
_Symbol__name(uself((u-/opt/alt/python33/lib64/python3.3/symtable.pyu__repr__�suSymbol.__repr__cCs|jS(N(u
_Symbol__name(uself((u-/opt/alt/python33/lib64/python3.3/symtable.pyuget_name�suSymbol.get_namecCst|jtj@�S(N(uboolu_Symbol__flagsu	_symtableuUSE(uself((u-/opt/alt/python33/lib64/python3.3/symtable.pyu
is_referenced�suSymbol.is_referencedcCst|jt@�S(N(uboolu_Symbol__flagsu	DEF_PARAM(uself((u-/opt/alt/python33/lib64/python3.3/symtable.pyuis_parameter�suSymbol.is_parametercCst|jttfk�S(N(uboolu_Symbol__scopeuGLOBAL_IMPLICITuGLOBAL_EXPLICIT(uself((u-/opt/alt/python33/lib64/python3.3/symtable.pyu	is_global�suSymbol.is_globalcCst|jtk�S(N(uboolu_Symbol__scopeuGLOBAL_EXPLICIT(uself((u-/opt/alt/python33/lib64/python3.3/symtable.pyuis_declared_global�suSymbol.is_declared_globalcCst|jt@�S(N(uboolu_Symbol__flagsu	DEF_BOUND(uself((u-/opt/alt/python33/lib64/python3.3/symtable.pyuis_local�suSymbol.is_localcCst|jtk�S(N(uboolu_Symbol__scopeuFREE(uself((u-/opt/alt/python33/lib64/python3.3/symtable.pyuis_free�suSymbol.is_freecCst|jt@�S(N(uboolu_Symbol__flagsu
DEF_IMPORT(uself((u-/opt/alt/python33/lib64/python3.3/symtable.pyuis_imported�suSymbol.is_importedcCst|jt@�S(N(uboolu_Symbol__flagsu	DEF_LOCAL(uself((u-/opt/alt/python33/lib64/python3.3/symtable.pyuis_assigned�suSymbol.is_assignedcCs
t|j�S(u�Returns 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.
        (uboolu_Symbol__namespaces(uself((u-/opt/alt/python33/lib64/python3.3/symtable.pyuis_namespace�suSymbol.is_namespacecCs|jS(u.Return a list of namespaces bound to this name(u_Symbol__namespaces(uself((u-/opt/alt/python33/lib64/python3.3/symtable.pyuget_namespaces�suSymbol.get_namespacescCs/t|j�dkr$td��n|jdS(u�Returns the single namespace bound to this name.

        Raises ValueError if the name is bound to multiple namespaces.
        iu$name is bound to multiple namespacesi(ulenu_Symbol__namespacesu
ValueError(uself((u-/opt/alt/python33/lib64/python3.3/symtable.pyu
get_namespace�suSymbol.get_namespaceN(u__name__u
__module__u__qualname__uNoneu__init__u__repr__uget_nameu
is_referenceduis_parameteru	is_globaluis_declared_globaluis_localuis_freeuis_importeduis_assigneduis_namespaceuget_namespacesu
get_namespace(u
__locals__((u-/opt/alt/python33/lib64/python3.3/symtable.pyuSymbol�s
u__main__iuexec(+u__doc__u	_symtableuUSEu
DEF_GLOBALu	DEF_LOCALu	DEF_PARAMu
DEF_IMPORTu	DEF_BOUNDuOPT_IMPORT_STARu	SCOPE_OFFu
SCOPE_MASKuFREEuLOCALuGLOBAL_IMPLICITuGLOBAL_EXPLICITuCELLuweakrefu__all__usymtableuSymbolTableFactoryu_newSymbolTableuobjectuSymbolTableuFunctionuClassuSymbolu__name__uosusysuopenuargvureadusrcupathusplitumoduget_identifiersuidentulookupuinfouprintuis_localuis_namespace(((u-/opt/alt/python33/lib64/python3.3/symtable.pyu<module>s$^	Q&
@)