[issue26421] string_richcompare invalid check Py_NotImplemented
Serhiy Storchaka
report at bugs.python.org
Sat Feb 27 02:33:15 EST 2016
Serhiy Storchaka added the comment:
PyDict_GetItem and lookdict_string use PyString_CheckExact for fast path. String subclasses are proceeded in general way. PyObject_GetAttr and string_richcompare use PyString_Check because they work with string and string subclasses. Py_TPFLAGS_STRING_SUBCLASS shouldn't be used if the type is not string subclass.
----------
resolution: -> not a bug
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26421>
_______________________________________
More information about the Python-bugs-list
mailing list