cpython/Misc/NEWS.d/next/Tools-Demos
Victor Stinner aadb44ee98
bpo-34989: python-gdb.py: fix current_line_num() (GH-9889) (GH-9899)
python-gdb.py now handles errors on computing the line number
of a Python frame.

Changes:

* PyFrameObjectPtr.current_line_num() now catchs any Exception on
  calling addr2line(), instead of failing with a surprising "<class
  'TypeError'> 'FakeRepr' object is not subscriptable" error.
* All callers of current_line_num() now handle current_line_num()
  returning None.
* PyFrameObjectPtr.current_line() now also catchs IndexError on
  getting a line from the Python source file.

(cherry picked from commit 2e438cc255)
2018-10-16 00:06:23 +02:00
..
2018-06-14-16-16-53.bpo-32962.2YfdwI.rst bpo-32962: Backport python-gdb.py and test_gdb.py from master (GH-7726) 2018-06-15 23:59:56 +02:00
2018-06-14-16-23-07.bpo-32962.Q3Dwns.rst bpo-32962: Backport python-gdb.py and test_gdb.py from master (GH-7726) 2018-06-15 23:59:56 +02:00
2018-06-15-23-07-50.bpo-29367.52w9Uq.rst bpo-32962: Backport python-gdb.py and test_gdb.py from master (GH-7726) 2018-06-15 23:59:56 +02:00
2018-08-25-17-13-24.bpo-34500.Edz41x.rst bpo-34500: Fix ResourceWarning in difflib.py (GH-8926) 2018-09-02 21:48:08 -04:00
2018-10-15-13-22-28.bpo-34989.hU4fra.rst bpo-34989: python-gdb.py: fix current_line_num() (GH-9889) (GH-9899) 2018-10-16 00:06:23 +02:00
README.rst Add "Misc/NEWS.d" directory tree for "blurb". (#2333) 2017-06-22 16:00:05 -07:00

README.rst

Put news entry ``blurb`` files for the *Tools/Demos* section in this directory.