[issue37645] Replace PyEval_GetFuncName/PyEval_GetFuncDesc

Jeroen Demeyer report at bugs.python.org
Sat Aug 17 14:29:36 EDT 2019


Jeroen Demeyer <jeroen.k.demeyer at gmail.com> added the comment:

> I'm wary of making error messages depend on the str representation of a function; that would prevent us from changing it later.

Why wouldn't we be able to change anything? Typically, the exact string of an error message is NOT part of the API (the exception *type* is, but we're not talking about that).

> I'm wary of "%S" used in error messages. Those are for the programmer, not the user

I'm not following here. Given that Python is a programming language, the user *is* the programmer.

Anyway, you don't have to be convinced. I'm trying to solve a problem here and I have two approaches (PR 14890 and PR 15295). I'm more inclined towards PR 15295, but if you like the idea of PR 14890 better, we can go with that instead.

----------

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


More information about the Python-bugs-list mailing list