관리-도구
편집 파일: weakref_finalize.cpython-312.pyc
� G��e� � �L � d Z ddlmZ ddlZddlZddlmZ dgZ G d� de� Z y)zd backports.weakref_finalize ~~~~~~~~~~~~~~~~~~ Backports the Python 3 ``weakref.finalize`` method. � )�absolute_importN)�ref�weakref_finalizec �� � e Zd ZdZdZi ZdZ ej � Z dZ dZ G d� de� Z d� Zdd�Zd � Zd � Zed� � Zed� � Zej* d � � Zd� Zed� � Zed� � Zy)r a Class for finalization of weakrefable objects finalize(obj, func, *args, **kwargs) returns a callable finalizer object which will be called when obj is garbage collected. The first time the finalizer is called it evaluates func(*arg, **kwargs) and returns the result. After this the finalizer is dead, and calling it just returns None. When the program exits any remaining finalizers for which the atexit attribute is true will be run in reverse order of creation. By default atexit is true. � Fc � � e Zd ZdZy)�weakref_finalize._Info)�weakref�func�args�kwargs�atexit�indexN)�__name__� __module__�__qualname__� __slots__r � ��/builddir/build/BUILDROOT/alt-python312-pip-23.3.1-1.el8.x86_64/opt/alt/python312/lib/python3.12/site-packages/pip/_vendor/urllib3/packages/backports/weakref_finalize.py�_Infor ( s � �L� r r c �Z � | j s*dd l}|j | j � dt _ | j � }t || � |_ ||_ ||_ |xs d |_ d|_ t | j � |_ || j | <