An interesting difference between classic and new style objects

Pekka Pessi Pekka.Pessi at
Sat Jan 12 15:45:27 EST 2002

In message <pvn0zjfgng.fsf at> Pekka Pessi <Pekka.Pessi at> writes:
>	What is a difference of a method and an attribute? Method is
>	always an attribute of the class. The new-style classes are
>	immutable, so it is not possible to modify methods of a new
>	style object.

	Hmph. It seems to me that I had an old version of Python 2.2
	lying around, in the release version the new-style classes (or
	types) are modifiable.


More information about the Python-list mailing list