Roger Serwy <[email protected]> added the comment:
This issue relates to #1178
A traceback does not necessarily mean that the last statement had the error.
For example:
>>> a = lambda: 1/0
>>> a()
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
a()
File "<pyshell#0>", line 1, in <lambda>
a = lambda: 1/0
ZeroDivisionError: integer division or modulo by zero
I suppose that the specification should be extended such that the above to get
transformed to:
a = lambda: 1/0
#ERROR>>> a()
#
#Traceback (most recent call last):
#....
or something similar. Thoughts?
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue11838>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com