On Sat, Sep 10, 2011 at 4:18 PM, Richard D. Moores <[email protected]>wrote:
> On Sat, Sep 10, 2011 at 15:32, Alan Gauld <[email protected]> > wrote: > > So you open the file and from that point on treat it exactly like a > > dictionary. > > I'm still a bit shaky about dictionaries. > > That right there is the salient bit. Using shelve is just like using a dictionary; probably that's why you're finding the documentation sparse: dictionaries are core Python, so they assume you know how to use them. ("First, catch your rabbit...") I was about to write an introduction to dictionaries, but I realized it's been done, and done better than I could. I really recommend that you learn them; I think that once you do, you'll find that they're a better fit in all sorts of places where you've been using lists. (Speaking from personal experience...)
_______________________________________________ Tutor maillist - [email protected] To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
