File: //proc/3/root/usr/lib64/python2.4/Demo/classes/Dbm.pyo
mò
‚=5Dc @ s' d f d „ ƒ YZ d „ Z e ƒ d S( t Dbmc B sP t Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( Nc C s% d k } | i | | | ƒ | _ d S( N( t dbmt opent filenamet modet permt selft db( R R R R R ( ( t( /usr/lib64/python2.4/Demo/classes/Dbm.pyt __init__ s c C sf d } xQ | i ƒ D]C } t | ƒ d t | | ƒ } | o d | } n | | } q Wd | d S( Nt s : s , t {t }( t sR t keyst keyt reprt t( R R
R R ( ( R t __repr__
s
c C s
t | i ƒ S( N( t lenR R ( R ( ( R t __len__ s c C s t | i t | ƒ ƒ S( N( t evalR R R R ( R R ( ( R t __getitem__ s c C s t | ƒ | i t | ƒ <d S( N( R t valueR R R ( R R R ( ( R t __setitem__ s c C s | i t | ƒ =d S( N( R R R R ( R R ( ( R t __delitem__ s c C s7 g } x* | i i ƒ D] } | i t | ƒ ƒ q W| S( N( t resR R R R t appendR ( R R R ( ( R R ! s
c C s | i i t | ƒ ƒ S( N( R R t has_keyR R ( R R ( ( R R ' s (
t __name__t
__module__R R R R R R R R ( ( ( R R s c C sÅ t d d d ƒ } | GHx¢ ye t d ƒ } | i | ƒ o | | } d G| GHn t d ƒ } | d j o | | =n | | | <Wq t j
o d GH| GHq t j
o
d GHPq Xq W| GHd S(
Ns @dbmt rwi€ i s key: s
currently:s value: R
s [eof]( R t dt inputR R R t Nonet KeyboardInterruptt EOFError( R R R ( ( R t test+ s(
N( R R% ( R% R ( ( R t ? s $