Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement