Advertisement
rfmonk

anydbm_intvalue.py

Jan 29th, 2014
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. import anydbm
  2.  
  3. db = anydbm.open('/tmp/example.db', 'w')
  4. try:
  5.     db['one'] = 1
  6. except TypeError, err:
  7.     print '%s: %s' % (err.__class__.__name__, err)
  8. finally:
  9.     db.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement