Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Bug report
- Create
foo.pycontaininga = 1 ./python -m pdb foo.py
Results in
./python -m pdb foo.py./foo.py(1)<module>()-> a = 1(Pdb) longlist 0 a = 1(Pdb)The line number should be1 instead of0.
This occurs because thelonglist command usesinspect.getsourcelines, which returns0 as the starting line number for modules.
This bug was introduced in#101674.
Your environment
- CPython versions tested on:
main