[issue40736] better message for re.search TypeError ("expected string or bytes-like object")

zihengCat report at bugs.python.org
Tue May 26 02:07:30 EDT 2020


zihengCat <zihenglv at gmail.com> added the comment:

Does it mean modify `cpython/Modules/_sre.c` and add `PyObject` information to PyError string ?

https://github.com/python/cpython/blob/master/Modules/_sre.c#L376

----------
nosy: +zihengcat

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40736>
_______________________________________


More information about the Python-bugs-list mailing list