Bug or wart? You make the call.

Thomas Wouters thomas at xs4all.net
Sat Mar 8 19:51:30 CET 2003

On Sat, Mar 08, 2003 at 10:39:28AM -0800, Jeremy Fincher wrote:
> Jp Calderone <exarkun at intarweb.us> wrote in message news:<mailman.1047068354.22570.python-list at python.org>...
> >   There is one very practical reason.  Method objects (not "class methods" -
> > those are something else) are created anew every time they are fetched!

> What's the rationale behind this behavior?

It doesn't have an official rationale, but it's easily considered. Python is
a very dynamic language. An instance's __class__ and a class's __bases__ can
be dynamically changed. It is part of how Python Works.

Thomas Wouters <thomas at xs4all.net>

Hi! I'm a .signature virus! copy me into your .signature file to help me spread!

More information about the Python-list mailing list