homepage

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 christian.heimes
Recipients amaury.forgeotdarc, christian.heimes, gvanrossum
Date 2007年11月13日.01:43:57
SpamBayes Score 0.0015708968
Marked as misclassified No
Message-id <1194918237.6.0.82872312822.issue1265@psf.upfronthosting.co.za>
In-reply-to
Content
Good work Amaury! :)
I also wonder how type(cls) != cls.__class__ is possible with new style
classes. So far I found only one way and it ain't beautiful:
>>> class Meta(type):
... def __getattribute__(self, key):
... if key == "__class__": return object
... return type.__getattribute__(self, key)
...
>>> class Example(metaclass=Meta): pass
...
>>> Example.__class__
<type 'object'>
>>> type(Example)
<class '__main__.Meta'>
History
Date User Action Args
2007年11月13日 01:43:57christian.heimessetspambayes_score: 0.0015709 -> 0.0015708968
recipients: + christian.heimes, gvanrossum, amaury.forgeotdarc
2007年11月13日 01:43:57christian.heimessetspambayes_score: 0.0015709 -> 0.0015709
messageid: <1194918237.6.0.82872312822.issue1265@psf.upfronthosting.co.za>
2007年11月13日 01:43:57christian.heimeslinkissue1265 messages
2007年11月13日 01:43:57christian.heimescreate

AltStyle によって変換されたページ (->オリジナル) /