This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gvanrossum
Recipients amaury.forgeotdarc, christian.heimes, gvanrossum
Date 2007-11-13.05:14:01
SpamBayes Score 0.1467438
Marked as misclassified No
Message-id <1194930842.0.0.557723370045.issue1265@psf.upfronthosting.co.za>
In-reply-to
Content
Good work indeed!

Here's another way:

>>> class C:
...   @property
...   def __class__(self): return D
... 
>>> class D: pass
... 
>>> C().__class__
<class '__main__.D'>
>>>
History
Date User Action Args
2007-11-13 05:14:02gvanrossumsetspambayes_score: 0.146744 -> 0.1467438
recipients: + gvanrossum, amaury.forgeotdarc, christian.heimes
2007-11-13 05:14:02gvanrossumsetspambayes_score: 0.146744 -> 0.146744
messageid: <1194930842.0.0.557723370045.issue1265@psf.upfronthosting.co.za>
2007-11-13 05:14:01gvanrossumlinkissue1265 messages
2007-11-13 05:14:01gvanrossumcreate