[New-bugs-announce] [issue18656] setting function.__name__ doesn't affect repr()
Guido van Rossum
report at bugs.python.org
Sun Aug 4 18:55:25 CEST 2013
New submission from Guido van Rossum:
In Python 3.2 and earlier:
>>> def f(): pass
...
>>> f.__name__ = 'g'
>>> f
<function g at 0x100487628>
However in Python 3.3 and later, the last line shows 'f' instead of 'g'.
----------
components: Interpreter Core
messages: 194394
nosy: gvanrossum
priority: normal
severity: normal
status: open
title: setting function.__name__ doesn't affect repr()
type: behavior
versions: Python 3.3, Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18656>
_______________________________________
More information about the New-bugs-announce
mailing list