Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import shelve
- from contextlib import closing
- with closing(shelve.open('test_shelf.db')) as s:
- existing = s['key1']
- print existing
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement