Bug or feature?

Tom Bryan tbryan at zarlut.utexas.edu
Sat May 15 14:49:31 EDT 1999


Tim Peters wrote:
> 
> [Thomas A. Bryan]
> > ...
> > I've seen that idiom several times, but I never thought about why the
> > author was using it.  I'll have to add that to my bag-of-tricks.
> 
> Do it with care, though -- it's not a pure win.  In return for saving
> memory, attr access is slower (Python always looks in the instance dict
> first!).  

Thanks, I will.

> Something Michael was trying to get across appears to have gotten lost in
> the shuffle:  this is the way, and the mechanism by means of which, *method*
> invocation routinely works

Yes.  I understood what Michael was saying.  The reason I didn't give
any examples of using class data is that I've never done it...except 
to declare methods.

> > Newsgroups are the most frequent cause of that
> >  ah-ha-...-now-I-get-it feeling in my life.  Thanks, Tim.
> 
> Thomas, read a good book; hang out with a child; catch a fish & let it go.

Oh.  In those cases, it isn't really like "Ah ha."  It's a completely 
different experience that really doesn't inspire any verbalization.
(See, for example, the last chapter of _The_Power_of_Myth_ by 
Joseph Campbell).

it-makes-more-sense-not-to-catch-the-fish-in-the-first-place-ly yours
Tom

-- 
tbryan at zarlut.utexas.edu
Remove the z from this address to reply.
Stop spam!  http://spam.abuse.net/spam/




More information about the Python-list mailing list