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 :  C:/Python315/Lib/profiling/sampling/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/profiling/sampling/__pycache__/string_table.cpython-315.opt-1.pyc
R
>lqj�c� �QsQQ2sP!)zRString table implementation for memory-efficient string storage in profiling data.c�D`�\sQs]snQsQsQsQsQsQs	Qs
UsP!)�StringTablez?A string table for interning strings and reducing memory usage.c�$�,Um-UmP!)N)�_strings�_string_to_index��selfs&�4C:\Python315\\Lib\profiling\sampling\string_table.py�__init__�StringTable.__init__s����
� "���c��[U[2%f[U2oVO7cUOU*![UO2oUOOU2V OU$U!)z�Intern a string and return its index.

Args:
    string: The string to intern

Returns:
    int: The index of the string in the table
)�
isinstance�strr�lenr�append)r�string�indexs&& r�intern�StringTable.intern
sj���&�#�&�&���[�F��*�*�*��(�(��0�0��D�M�M�"���
�
���V�$�(-���f�%��rc�z�]St96:c[UO26cLP!UOU*!P!)z�Get a string by its index.

Args:
    index: The index of the string

Returns:
    str: The string at the given index, or empty string if invalid
�rr)rrs&&r�
get_string�StringTable.get_strings1��
��*��D�M�M�*�*���=�=��'�'�rc�8�UOO2!)zYGet the list of all strings in the table.

Returns:
    list: A copy of the strings list
)r�copyrs&r�get_strings�StringTable.get_strings+s���}�}�!�!�#�#rc�.�[UO2!)z*Return the number of strings in the table.rrs&r�__len__�StringTable.__len__3s���4�=�=�!�!r)rr)�__name__�
__module__�__qualname__�__firstlineno__�__doc__r	rrrr�__static_attributes__�__classdictcell__)�
__classdict__s@rrrs&����I�#��(�$�"�"rr)r$r�rr�<module>r)s��X�2"�2"r

Youez - 2016 - github.com/yon3zu
LinuXploit