Class variable inheritance

HPJ henrypijames at
Wed Sep 9 01:50:17 CEST 2009

> would you expect the B class to have a copy of the foo method?

Sorta. I would expect B to have a copy of the "foo" attribute, which
then refers to the same method as So the method itself will be
be copied, but its address stored separately in and

More information about the Python-list mailing list