An interesting difference between classic and new style objects

Pekka Pessi Pekka.Pessi at nokia.com
Sat Jan 12 21:45:27 CET 2002


In message <pvn0zjfgng.fsf at agni.research.nokia.com> Pekka Pessi <Pekka.Pessi at nokia.com> 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.

						Pekka



More information about the Python-list mailing list