[issue29730] unoptimal calls to PyNumber_Check

Oren Milman report at bugs.python.org
Sun Mar 12 05:17:33 EDT 2017


Oren Milman added the comment:

"In bytes/bytearray methods -- integers and bytes-like objects."
(I guess you refer to parse_args_finds_byte (in Objects/bytes_methods.c))
so you suggest that in case (!PyIndex_Check(tmp_subobj)), we also check whether
(PyByteArray_Check(tmp_subobj) or PyBytes_Check(tmp_subobj)), and raise an
error if needed?

anyway, you and Raymond suggest different things. how do we proceed?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29730>
_______________________________________


More information about the Python-bugs-list mailing list