[code.view]

[top] / python / PyMOTW / anydbm / anydbm_intvalue.py

     #!/usr/bin/env python
     # encoding: utf-8
     #
     # Copyright (c) 2008 Doug Hellmann All rights reserved.
     #
     """
     """
     
     __version__ = "$Id$"
     #end_pymotw_header
     
     import anydbm
     
     db = anydbm.open('/tmp/example.db', 'w')
     try:
         db['one'] = 1
     except TypeError, err:
         print '%s: %s' % (err.__class__.__name__, err)
     finally:
         db.close()
     

[top] / python / PyMOTW / anydbm / anydbm_intvalue.py

contact | logmethods.com