You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Move keyword typo suggestions into the parser #159672
The current keyword typo suggestions work, but the approach is a bit hacky and has some problems.
traceback copies source text and compiles each possible keyword replacement. It needs full-source metadata or access to the source file. Hints can disappear in larger files or differ between file and string input. Repeated calls can also change the formatted output.
Move this work into the parser and use its cached tokens, keyword tables, and grammar. Attach the hint to SyntaxError for traceback to display.
Activity
pythongh-159672: Retain tokens for syntax error diagnostics
pythongh-159672: Generate keyword typo hints in the parser
pythongh-159672: Remove obsolete keyword typo support
pythongh-159672: Keep typo budgets off the normal parser path
pythongh-159672: Bound keyword replay source and total work
pythongh-159672: Size keyword replay limits for stdlib modules
pythongh-159672: Cover keyword repairs across logical statements
pythongh-159672: Remove obsolete keyword typo support
pythongh-159672: Keep typo budgets off the normal parser path
pythongh-159672: Bound keyword replay source and total work
pythongh-159672: Size keyword replay limits for stdlib modules
pythongh-159672: Cover keyword repairs across logical statements
pythongh-159672: Simplify keyword trial cleanup
pythongh-159672: Remove obsolete keyword typo support
pythongh-159672: Keep typo budgets off the normal parser path
pythongh-159672: Bound keyword replay source and total work
pythongh-159672: Size keyword replay limits for stdlib modules
pythongh-159672: Cover keyword repairs across logical statements
pythongh-159672: Simplify keyword trial cleanup
pythongh-159672: Release trial identifiers with their arena
pythongh-159672: Separate keyword replay stages