[New-bugs-announce] [issue39208] PDB pm function throws exception without sys import
ThePokestarFan
report at bugs.python.org
Fri Jan 3 19:04:37 EST 2020
New submission from ThePokestarFan <sarkaraoyan at gmail.com>:
When testing PDB in python 3.8.1, PDB throws an exception when I call the pm() function in PDB without importing system.
[Fresh session]
>>> import pdb
>>> pdb.pm()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/pdb.py", line 1631, in pm
post_mortem(sys.last_traceback)
AttributeError: module 'sys' has no attribute 'last_traceback'
>>> import sys
>>> pdb.pm()
> /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/pdb.py(1631)pm()
-> post_mortem(sys.last_traceback)
...
----------
components: Library (Lib), macOS
messages: 359264
nosy: ThePokestarFan, ned.deily, ronaldoussoren
priority: normal
severity: normal
status: open
title: PDB pm function throws exception without sys import
type: behavior
versions: Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39208>
_______________________________________
More information about the New-bugs-announce
mailing list