[Tutor] RE: class again
Danny Yoo
dyoo@hkn.eecs.berkeley.edu
Sun, 2 Dec 2001 13:18:10 -0800 (PST)
On Sun, 2 Dec 2001 fleet@teachout.org wrote:
> Why can't these blinding flashes of instant knowledge occur *BEFORE* one
> hits the send button. I had simply failed to precede the class name with
> the module name. john = addrbook.AddrBookEntry('John Doe',
> '405-555-1212') works just fine.
No problem. This happens to me all the time. *grin* I think it's the
same sort of effect that Gregor noticed: the act of asking a question
usually jogs the mental gears enough to start rolling again.
> Somewhere (in Core Python Programming) I recall seeing something that
> implied data in a class was not preserved in lists or dictionaries. I
> don't think I understand this. In the address book example; where
> would the information about "john" be stored for later retrieval if
> not in a dictionary (or at least a flat file database).?
Hmmm... if you can give a page number, we can check up on that. I finally
have a copy of Wesley's Core Python Programming book. (Thanks Wes!)
I'm not familiar with the term "implied data" though; can someone clarify?
Good luck to you!