[issue18656] setting function.__name__ doesn't affect repr()
Madison May
report at bugs.python.org
Sun Aug 4 20:05:27 CEST 2013
Madison May added the comment:
Yup, here are the relevant lines of the diff for PEP 3155:
@@ -568,7 +607,7 @@
func_repr(PyFunctionObject *op)
{
return PyUnicode_FromFormat("<function %U at %p>",
- op->func_name, op);
+ op->func_qualname, op);
}
----------
nosy: +madison.may
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18656>
_______________________________________
More information about the Python-bugs-list
mailing list