[issue2786] Names in traceback should have class names, if they're methods
Daniil Bondarev
report at bugs.python.org
Tue Feb 3 07:32:18 CET 2015
Daniil Bondarev added the comment:
Made a straightforward patch for this. Probably not that pretty, so suggestions are welcome.
Note that some function names will become pretty long in exceptions:
>>> class A:
... def __init__(self):
... def f():
... pass
... f(1,2,3)
...
>>> A()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<stdin>", line 5, in __init__
TypeError: A.__init__.<locals>.f() takes 0 positional arguments but 3 were given
Passing UTs from lastest snapshot.
----------
keywords: +patch
nosy: +xonatius
Added file: http://bugs.python.org/file37994/full_names.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2786>
_______________________________________
More information about the Python-bugs-list
mailing list