U
    Š±Ëh#  ã                   @  s"   d Z ddlmZ G dd„ dƒZdS )z The core's core. é    )Úannotationsc                   @  s$   e Zd ZdZdZdd„ Zdd„ ZdS )ÚRegistrya  
    Base class for registry objects.

    Registries map a name to an object using attribute notation. Registry
    classes behave singletonically: all their instances share the same state,
    which is stored in the class object.

    All subclasses should set `__slots__ = ()`.
    © c                 C  s   t | j||ƒ d S ©N)ÚsetattrÚ	__class__)ÚselfÚnameÚobjr   r   ú3/tmp/pip-unpacked-wheel-6t8vlncq/sympy/core/core.pyÚ__setattr__   s    zRegistry.__setattr__c                 C  s   t | j|ƒ d S r   )Údelattrr   )r   r	   r   r   r   Ú__delattr__   s    zRegistry.__delattr__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú	__slots__r   r   r   r   r   r   r      s   	r   N)r   Ú
__future__r   r   r   r   r   r   Ú<module>   s   