[issue22507] PyType_IsSubtype doesn't call __subclasscheck__
Maries Ionel Cristian
report at bugs.python.org
Sat Sep 27 20:23:51 CEST 2014
New submission from Maries Ionel Cristian:
It appears it just does a reference check: https://hg.python.org/cpython/file/3.4/Objects/typeobject.c#l1300
It appears it's the same in 2.7: https://hg.python.org/cpython/file/2.7/Objects/typeobject.c#l1161
But this is not the intended behaviour right?
----------
components: Interpreter Core
messages: 227706
nosy: ionel.mc
priority: normal
severity: normal
status: open
title: PyType_IsSubtype doesn't call __subclasscheck__
versions: Python 2.7, Python 3.4, Python 3.5
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22507>
_______________________________________
More information about the Python-bugs-list
mailing list