This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xdegaye
Recipients asvetlov, giampaolo.rodola, nailor, xdegaye
Date 2013-02-25.12:07:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1361794042.06.0.749176588524.issue16446@psf.upfronthosting.co.za>
In-reply-to
Content
There is an error in my patch (already fixed in pdb-clone) and in Jyrki's patch.
Running Jyrki's patch on quit.py produces the following output where the line
number in the last entry of the backtrace is incorrect (should be line 9 instead
of line 7):

$ python quit.py
--Return--
> /tmp/quit.py(4)bar()->None
-> pdb.Pdb().set_trace()
(Pdb) quit
Traceback (most recent call last):
  File "quit.py", line 11, in <module>
    foo()
  File "quit.py", line 7, in foo
    bar()
ZeroDivisionError: integer division or modulo by zero

This problem does not occur when issue 17277 is fixed.
Meanwhile the attached patch, based on Jyrki's patch and based on the 2.7
branch, fixes this.
History
Date User Action Args
2013-02-25 12:07:22xdegayesetrecipients: + xdegaye, giampaolo.rodola, asvetlov, nailor
2013-02-25 12:07:22xdegayesetmessageid: <1361794042.06.0.749176588524.issue16446@psf.upfronthosting.co.za>
2013-02-25 12:07:22xdegayelinkissue16446 messages
2013-02-25 12:07:21xdegayecreate