Server: appserver-7f0f8755-nginx-15961cad18524ec5a9db05f2a6a7e440
Current directory: /usr/lib/python3.11/__pycache__
Software: nginx/1.27.5
Shell Command
Create a new file
Upload file
File: weakref.cpython-311.pyc
� ��h T � �< � d Z ddlmZmZmZmZmZmZmZm Z ddl mZmZ ddl Z ddlZddlZeefZg d�Ze j � e� � G d� de� � Z G d� d e j � � Z G d � de� � Z G d� d e j � � Z G d� d� � ZdS )ztWeak reference support for Python. This module is an implementation of PEP 205: https://peps.python.org/pep-0205/ � )�getweakrefcount�getweakrefs�ref�proxy�CallableProxyType� ProxyType� ReferenceType�_remove_dead_weakref)�WeakSet�_IterationGuardN) r r r r �WeakKeyDictionaryr r r � ProxyTypes�WeakValueDictionaryr � WeakMethod�finalizec �H � � e Zd ZdZdZdd�Z� fd�Zd� Zd� Ze j Z � xZS ) r z� A custom `weakref.ref` subclass which simulates a weak reference to a bound method, working around the lifetime problem of bound methods. )� _func_ref� _meth_type�_alive�__weakref__Nc �\ ��� |j }|j }n># t $ r1 t d� t |� � � � � � d �w xY w��fd�}t j | ||� � }t ||� � |_ t |� � |_ d|_ t |� � �|S )Nz)argument should be a bound method, not {}c �Z �� �� � }|j rd|_ �� �|� � d S d S d S �NF)r )�arg�self�callback�self_wrs ���/usr/lib/python3.11/weakref.py�_cbzWeakMethod.__new__.
._cb5 sH �� � �7�9�9�D��{� #�#����'��H�T�N�N�N�N�N� #� #�'�'� T)�__self__�__func__�AttributeError� TypeError�format�typer �__new__r r r )�cls�methr �obj�funcr r r s ` @r r' zWeakMethod.__new__. s� ��� � ;��-�C��=�D�D��� ;� ;� ;��G�#�V�D��J�J�/�/�1� 1�6:� ;� ;���� #� #� #� #� #� #� �{�3��S�)�)���T�3������t�*�*�������d�)�)���s � �;Ac � �� t � � � � � }| � � � }|�|�d S | � ||� � S �N)�super�__call__r r )r r* r+ � __class__s �r r/ zWeakMethod.__call__D sI �� ��g�g��� � ���~�~�����;�$�,��4����t�S�)�)�)r c � � t |t � � r7| j r|j s| |u S t j | |� � o| j |j k S t S r- )� isinstancer r r �__eq__r �NotImplemented�r �others r r3 zWeakMethod.__eq__K sX � ��e�Z�(�(� Q��;� %�e�l� %��u�}�$��:�d�E�*�*�P�t�~���/P�P��r c � � t |t � � r7| j r|j s| |uS t j | |� � p| j |j k S t S r- )r2 r r r �__ne__r r4 r5 s r r8 zWeakMethod.__ne__R sY � ��e�Z�(�(� P��;� )�e�l� )��5�(�(��:�d�E�*�*�O�d�n���.O�O��r r- )�__name__� __module__�__qualname__�__doc__� __slots__r' r/ r3 r8 r �__hash__� __classcell__�r0 s @r r r &