Guido van Rossum added the comment: Good work indeed!
Here's another way: >>> class C: ... @property ... def __class__(self): return D ... >>> class D: pass ... >>> C().__class__ <class '__main__.D'> >>> __________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1265> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com