Message197616
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
>>> |
|
Date |
User |
Action |
Args |
2013-09-13 17:28:59 | lambacck | set | recipients:
+ lambacck, barry, eli.bendersky, ethan.furman |
2013-09-13 17:28:59 | lambacck | set | messageid: <1379093339.12.0.931938190055.issue19011@psf.upfronthosting.co.za> |
2013-09-13 17:28:59 | lambacck | link | issue19011 messages |
2013-09-13 17:28:59 | lambacck | create | |
|