[issue40679] show class name in method invocation TypeError

STINNER Victor report at bugs.python.org
Wed Jun 3 08:20:50 EDT 2020


STINNER Victor <vstinner at python.org> added the comment:

> bpo-40679: Use the function's qualname in certain TypeErrors (GH-20236)

This change introduced a regression. See this bug in Cython:
https://github.com/cython/cython/issues/3641#issuecomment-638102096

I wrote a PR to use co->co_name if qualname is NULL (ex: when PyEval_EvalCodeEx() is called). I will post the PR once I finish to run the test suite locally ;-)

----------
nosy: +vstinner
resolution: fixed -> 
status: closed -> open

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


More information about the Python-bugs-list mailing list