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 iritkatriel
Recipients Gerrit.Holl, iritkatriel
Date 2020-08-21.23:08:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1598051281.74.0.988118186883.issue23832@roundup.psfhosted.org>
In-reply-to
Content
I think this has been fixed by now, because I don't see the problem in Python 3.10:

python.bat -mpdb tmp1.py
Running Release|Win32 interpreter...
> c:\users\user\src\cpython\tmp1.py(2)<module>()
-> def foo(x, y=None):
(Pdb) c
Traceback (most recent call last):
  File "C:\Users\User\src\cpython\lib\pdb.py", line 1740, in main
    pdb._runscript(mainpyfile)
  File "C:\Users\User\src\cpython\lib\pdb.py", line 1609, in _runscript
    self.run(statement)
  File "C:\Users\User\src\cpython\lib\bdb.py", line 580, in run
    exec(cmd, globals, locals)
  File "<string>", line 1, in <module>
  File "c:\users\user\src\cpython\tmp1.py", line 2, in <module>
    def foo(x, y=None):
  File "c:\users\user\src\cpython\tmp1.py", line 9, in spam
    1/0
ZeroDivisionError: division by zero
Uncaught exception. Entering post mortem debugging
Running 'cont' or 'step' will restart the program
> c:\users\user\src\cpython\tmp1.py(9)spam()
-> 1/0
(Pdb) longlist
  5     @foo(foo, lambda a:a)
  6     def spam():
  7         0+0
  8         1+1
  9  ->     1/0
(Pdb)
History
Date User Action Args
2020-08-21 23:08:01iritkatrielsetrecipients: + iritkatriel, Gerrit.Holl
2020-08-21 23:08:01iritkatrielsetmessageid: <1598051281.74.0.988118186883.issue23832@roundup.psfhosted.org>
2020-08-21 23:08:01iritkatriellinkissue23832 messages
2020-08-21 23:08:01iritkatrielcreate