[issue18656] setting function.__name__ doesn't affect repr()

Benjamin Peterson report at bugs.python.org
Sun Aug 4 22:58:43 CEST 2013


Benjamin Peterson added the comment:

That's because argument error messages use the code's co_name rather than the functions. (This is a dupe of another bug about this that I can't find.)

----------
nosy: +benjamin.peterson

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


More information about the Python-bugs-list mailing list