관리-도구
편집 파일: symtable.cpython-312.opt-2.pyc
� �Q�f�0 � �l � d dl Z d dl mZmZmZmZmZmZmZmZm Z m Z mZmZm Z mZmZ d dlZg d�Zd� Z G d� d� Z e� Z G d� d� Z G d � d e� Z G d� de� Z G d � d� Zedk( r�d dlZd dlZ eej: d � 5 Zej? � Z ddd� ee ejB jE ej: d � d d� Z#e#jI � D ]9 Z%e#jM e%� Z' e(e'e'jS � e'jU � � �; yy# 1 sw Y ��xY w)� N)�USE� DEF_GLOBAL�DEF_NONLOCAL� DEF_LOCAL� DEF_PARAM� DEF_IMPORT� DEF_BOUND� DEF_ANNOT� SCOPE_OFF� SCOPE_MASK�FREE�LOCAL�GLOBAL_IMPLICIT�GLOBAL_EXPLICIT�CELL)�symtable�SymbolTable�Class�Function�Symbolc �J � t j | ||� }t ||� S �N)� _symtabler �_newSymbolTable)�code�filename�compile_type�tops �//opt/alt/python312/lib64/python3.12/symtable.pyr r s* � �� � � �T�8�\� :�C��3��)�)� c � � e Zd Zd� Zd� Zd� Zy)�SymbolTableFactoryc �6 � t j � | _ y r )�weakref�WeakValueDictionary�_SymbolTableFactory__memo��selfs r �__init__zSymbolTableFactory.__init__ s � ��1�1�3��r c � � |j t j k( rt ||� S |j t j k( rt ||� S t ||� S r )�typer � TYPE_FUNCTIONr � TYPE_CLASSr r )r( �tabler s r �newzSymbolTableFactory.new sM � ��:�:��0�0�0��E�8�,�,��:�:��-�-�-����)�)��5�(�+�+r c � � ||f}| j j |d � }|�!| j ||� x}| j |<