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 Ú