Author roger.serwy
Recipients eric.araujo, roger.serwy, terry.reedy, tlesher
Date 2011-12-07.01:32:12
SpamBayes Score 9.07225e-09
Marked as misclassified No
Message-id <1323221533.94.0.0537803321029.issue11838@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2011-12-07 01:32:14roger.serwysetrecipients: + roger.serwy, terry.reedy, tlesher, eric.araujo
2011-12-07 01:32:13roger.serwysetmessageid: <1323221533.94.0.0537803321029.issue11838@psf.upfronthosting.co.za>
2011-12-07 01:32:13roger.serwylinkissue11838 messages
2011-12-07 01:32:12roger.serwycreate