
    _d                         d Z  G d de      Zy)zJYet another implementation of bunch

attribute-access of items on a dict.
c                   "    e Zd ZdZd Zd Zd Zy)BunchzA dict with attribute-accessc                 V    	 | j                  |      S # t        $ r t        |      w xY wN)__getitem__KeyErrorAttributeError)selfkeys     7/usr/lib/python3/dist-packages/traitlets/utils/bunch.py__getattr__zBunch.__getattr__   s2    	&##C(( 	& %%	&s    (c                 (    | j                  ||       y r   )__setitem__)r	   r
   values      r   __setattr__zBunch.__setattr__   s    e$    c                 Z    t        i       }|j                  | j                                |S r   )dirextendkeys)r	   namess     r   __dir__zBunch.__dir__   s"    BTYY[!r   N)__name__
__module____qualname____doc__r   r   r    r   r   r   r   
   s    &&%r   r   N)r   dictr   r   r   r   <module>r      s   D r   