On 11/09/11 00:18, Richard D. Moores wrote:

Now which part don't you understand?

Much of what comes after that is beyond me.

I meant to add, you can pretty much ignore all the stuff at the end of the Help page about class definitions. You only need that if you intend to create your own specialised Shelf object. All you need to know is in the pseudocode bit that I posted.

open() the file
use the shelf like a dictionary
close() the file

And there are two main caveats given:
1) Don't try to edit mutable data objects (lists) in place.
   Extract them, modify them and replace them
2) Don't use the writeback=True setting when you open large data sets.

That's it.

Alan G.

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to