-
-
Notifications
You must be signed in to change notification settings - Fork 34.7k
Typos and stale docstrings in Lib/traceback.py #145896
Copy link
Copy link
Closed
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dirstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Metadata
Metadata
Assignees
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dirstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
Todo
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