[Python-Dev] Possible low-hanging optimization
13 Dec 2002 10:33:13 +0000
David Abrahams <email@example.com> writes:
> Skip Montanaro <firstname.lastname@example.org> writes:
> > Guido> For classic classes, it would be too much of a break with
> > Guido> history.
> > In addition, since most classes exist to associate state with methods that
> > operate on it you'd probably only be delaying the creation of self.__dict__
> > by a few milliseconds in the common case.
> That's why I mentioned that it might help for new-style classes with
And why everyone seems to think we do it already in that case but
isn't quite sure :) (I'm in that camp too).
Just point your web browser at http://www.python.org/search/ and
look for "program", "doesn't", "work", or "my". Whenever you find
someone else whose program didn't work, don't do what they
did. Repeat as needed. -- Tim Peters, on python-help, 16 Jun 1998