Bug report
Bug description:
Typos and stale docstrings in Lib/traceback.py found by Claude Code using code-review-toolkit:
- Comment typo "exc_traceback, exc_value, exc_traceback" —
exc_type omitted, exc_traceback duplicated. [traceback.py:1063]
FrameSummary class docstring has broken grammar: "for the of code" should be "for the line of code". [traceback.py:296]
extract_stack docstring says items are "quadruples" — stale since Python 3.5, should reference FrameSummary objects. [traceback.py:261-268]
extract_tb docstring lists only 4 attributes — omits end_lineno, colno, end_colno added in 3.11. [traceback.py:78-89]
_display_width docstring says "extra amount of width space" — it returns total display width, not a delta. [traceback.py:976-979]
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Linked PRs
Bug report
Bug description:
Typos and stale docstrings in
Lib/traceback.pyfound by Claude Code using code-review-toolkit:exc_typeomitted,exc_tracebackduplicated.[traceback.py:1063]FrameSummaryclass docstring has broken grammar: "for the of code" should be "for the line of code".[traceback.py:296]extract_stackdocstring says items are "quadruples" — stale since Python 3.5, should referenceFrameSummaryobjects.[traceback.py:261-268]extract_tbdocstring lists only 4 attributes — omitsend_lineno,colno,end_colnoadded in 3.11.[traceback.py:78-89]_display_widthdocstring says "extra amount of width space" — it returns total display width, not a delta.[traceback.py:976-979]CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Linked PRs
Lib/traceback.py#145897