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 lambacck
Recipients barry, eli.bendersky, ethan.furman, lambacck
Date 2013-09-13.17:28:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1379093339.12.0.931938190055.issue19011@psf.upfronthosting.co.za>
In-reply-to
Content
You are not comparing the same thing. Normally when there is a class parameter, those are available from instances of the class.

>>> class Test:
...    pass
...
>>> Test.this = Test()
>>> Test.that = Test()
>>> Test.this.that
<__main__.Test instance at 0x7ff681bd3560>
>>>
>>> isinstance(Test.this, Test)
True
>>> from enum import IntEnum

>>> class Color(IntEnum):
...     red = 1
...     blue = 2
...     green = 3
...
>>> isinstance(Color.red, Color)
True
>>>
History
Date User Action Args
2013-09-13 17:28:59lambaccksetrecipients: + lambacck, barry, eli.bendersky, ethan.furman
2013-09-13 17:28:59lambaccksetmessageid: <1379093339.12.0.931938190055.issue19011@psf.upfronthosting.co.za>
2013-09-13 17:28:59lambaccklinkissue19011 messages
2013-09-13 17:28:59lambacckcreate