%PDF- %PDF-
Direktori : /lib/python3/dist-packages/blinker/__pycache__/ |
Current File : //lib/python3/dist-packages/blinker/__pycache__/_utilities.cpython-312.pyc |
� �]ue( � � � d dl mZ d dlZd dlmZ d dlmZ ej ej e e f ee f Z G d� d� Z de _ G d� d� Zdd �ZeefZ G d � de� Z d dd�Zdd �Z G d� d� Zy)� )�annotationsN)�ref)�BoundMethodWeakrefc � � e Zd Zd� Zd� Zd� Zy)�_symbolc � � |x| _ | _ y)zConstruct a new named symbol.N)�__name__�name)�selfr s �4/usr/lib/python3/dist-packages/blinker/_utilities.py�__init__z_symbol.__init__ s � �$(�(�� �� � c �( � t | j ffS �N)�symbolr �r s r � __reduce__z_symbol.__reduce__ s � ��� � �|�#�#r c � � | j S r )r r s r �__repr__z_symbol.__repr__ s � ��y�y�r N)r � __module__�__qualname__r r r � r r r r s � �)�$�r r r c � � e Zd ZdZi Zd� Zy)r a? A constant symbol. >>> symbol('foo') is symbol('foo') True >>> symbol('foo') foo A slight refinement of the MAGICCOOKIE=object() pattern. The primary advantage of symbol() is its repr(). They are also singletons. Repeated calls of symbol('name') will all return the same instance. c � � | j | S # t $ r( | j j |t |� � cY S w xY wr )�symbols�KeyError� setdefaultr )�clsr s r �__new__zsymbol.__new__+ s@ � � ?��;�;�t�$�$��� ?��;�;�)�)�$��� �>�>� ?�s � �.A�AN)r r r �__doc__r r r r r r r s � �� �G�?r c � � t | d� r*t | j � t | j � fS t | d� r*t | j � t | j � fS t | t t f� r| S t | � S )N�__func__�im_func) �hasattr�idr"