Subclassing a read-only class
Gerhard Häring
gh_pythonlist at gmx.de
Mon Feb 18 10:34:52 EST 2002
Hello,
For compatibility testing, I'd like to put an additional method into
window object I get from the curses module. Unfortunately, if I try to
do so, I get:
TypeError: object has read-only attributes
I'm pretty sure there is a solution, probably with a proxy object. But
currently I just don't get it.
Any ideas?
Gerhard
--
This sig powered by Python!
Außentemperatur in München: 8.1 °C Wind: 3.7 m/s
More information about the Python-list
mailing list