[issue18275] Make isinstance() work with super type instances
Brett Cannon
report at bugs.python.org
Sat Jun 22 00:40:13 CEST 2013
Brett Cannon added the comment:
That solution looks right. Problem is that it would need to either go directly into isinstance() or type would need to grow an __instancecheck__ to deal with this case since you can't override isinstance from the instance end. That I'm not sure people are okay with.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18275>
_______________________________________
More information about the Python-bugs-list
mailing list