Chris Lambacher added the comment:

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
>>>

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19011>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to