-
-
Notifications
You must be signed in to change notification settings - Fork 34.2k
Open
Labels
type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
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_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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error