[Tutor] need advice about a dictionary ({})
Alan Gauld
alan.gauld at btinternet.com
Sun Sep 11 02:41:35 CEST 2011
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.
More information about the Tutor
mailing list