Christian Heimes added the comment: 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'> ---------- keywords: +py3k resolution: accepted -> fixed status: open -> closed __________________________________ 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