[Python-Dev] Dictionary tuning
Delaney, Timothy C (Timothy)
Wed, 30 Apr 2003 07:51:31 +1000
> From: Guido van Rossum [mailto:firstname.lastname@example.org]
> [Tim Delaney]
> > Off the top of my head, most classes I create have ...
> > __init__
> > 3-5 other methods
> > 3-5 instance attributes
> > Hmm - that would only be 3-5 instance __dict__ entries, with
> > 4-6 class __dict__ entries, correct?
> > I was forgetting that methods are put into the instance __dict__.
> No, they're not.
Bah - I meant to say __class__.__dict__ - if you look at the numbers =
they add up that way.
> > Bah - it's too late. It's the end of the day, and I've barely
> > managed to get 2 hours real work done.
> That might explain your recent goofs. :-)
See above ;)
Well, it's a whole new day ... I've got an 8am phone call to the US
(10 minutes away) ... maybe I can do better today ...