[issue39208] PDB pm function throws exception without sys import

2020-01-03 Thread Zachary Ware
Zachary Ware added the comment: Try varying the order of what you're doing there: >>> import pdb, sys >>> pdb.pm() Traceback ... >>> pdb.pm() See https://docs.python.org/3/library/sys.html#sys.last_traceback, which notes that this attribute is not always present (it won't be if no exception

[issue39208] PDB pm function throws exception without sys import

2020-01-03 Thread ThePokestarFan
New submission from ThePokestarFan : 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 "", line 1, in File "/Library/Frameworks/Pytho