property problem

François Pinard pinard at iro.umontreal.ca
Thu Jul 18 10:48:49 EDT 2002


[Peter Maas]

> while experimenting with class properties using Python 2.2.1
> I encountered the following weird behaviour: [...]

This is documented.  To use properties, you need new-style classes.
I guess you may change "class proptest:" by "class proptest(object):".

-- 
François Pinard   http://www.iro.umontreal.ca/~pinard






More information about the Python-list mailing list