[Python-Dev] Dictionary tuning

Delaney, Timothy C (Timothy) tdelaney@avaya.com
Wed, 30 Apr 2003 07:51:31 +1000


> From: Guido van Rossum [mailto:guido@python.org]
>=20
> [Tim Delaney]
> > Off the top of my head, most classes I create have ...
> >=20
> > __init__
> > 3-5 other methods
> > 3-5 instance attributes
> >=20
> > Hmm - that would only be 3-5 instance __dict__ entries, with
> > 4-6 class __dict__ entries, correct?
> >=20
> > I was forgetting that methods are put into the instance __dict__.
>=20
> No, they're not.

Bah - I meant to say __class__.__dict__ - if you look at the numbers =
above
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.
>=20
> 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 ...

Tim Delaney