Sample code for shelve

suggest change

To shelve an object, first import the module and then assign the object value as follows:

import shelve 
database = shelve.open(filename.suffix) 
object = Object() 
database['key'] = object

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents