Using property in classic class may not work

Neil Hodgson nhodgson at
Tue Apr 15 02:00:08 CEST 2003

    The "property" feature in Python 2.2 appears very helpful to me and 
seems to work on both classic and new-style classes. However, pychecker 
gives this error message: Using property (frame) in classic class DemonFrame may 
not work

    The class in question is derived from a wxWindows class, so I can't 
make it derive just from object. The "What's New in Python 2.2" document 
only mentions property wrt new-style clases. Can I depend on property 
working for classic classes? Is there a workaround such as deriving from 
object as well?


More information about the Python-list mailing list