How to use shelve to save Python objects to disk

Опубликовано: 15 Март 2026
на канале: InfoWorld
545
22

Python's built-in shelve module lets you take most any Python object, save it to a file on disk, and read it back into memory later – typically with no more effort than you'd need to stash an object in a dictionary. Learn in this video how shelve can be used to persist objects for re-use later, and also what kinds of Python objects don't lend themselves to being shelved (and why).




-----------------------------­---
SUBSCRIBE: http://www.youtube.com/subscription_c...
FACEBOOK:   / infoworld  
TWITTER:   / infoworld  
WEBSITE: http://www.infoworld.com/