관리-도구
편집 파일: _collections.cpython-37.opt-1.pyc
B �&�`� � @ s6 d dl Z G dd� de j�ZG dd� de �dd��ZdS )� Nc s( e Zd ZdZ� fdd�Zdd� Z� ZS )�FreezableDefaultDicta! Often it is desirable to prevent the mutation of a default dict after its initial construction, such as to prevent mutation during iteration. >>> dd = FreezableDefaultDict(list) >>> dd[0].append('1') >>> dd.freeze() >>> dd[1] [] >>> len(dd) 1 c s t | dt� j�|�S )N�_frozen)�getattr�super�__missing__)�self�key)� __class__� �P/opt/alt/python37/lib/python3.7/site-packages/importlib_metadata/_collections.pyr s z FreezableDefaultDict.__missing__c s � fdd�� _ d S )Nc s � � � S )N)�default_factory)r )r r r �<lambda> � z-FreezableDefaultDict.freeze.<locals>.<lambda>)r )r r )r r �freeze s zFreezableDefaultDict.freeze)�__name__� __module__�__qualname__�__doc__r r � __classcell__r r )r r r s r c @ s e Zd Zedd� �ZdS )�Pairc C s | t tj|�dd��� S )N�=� )�map�str�strip�split)�cls�textr r r �parse s z Pair.parseN)r r r �classmethodr r r r r r s r z name value)�collections�defaultdictr � namedtupler r r r r �<module> s