Skip to content

gh-153569: consolidate tokenizer input, layout, and diagnostics - #157055

Merged
pablogsal merged 6 commits into
python:mainfrom
pablogsal:gh-153569-tokenizer-input-diagnostics
Sep 24, 2026
Merged

pablogsal merged 6 commits into
python:mainfrom
pablogsal:gh-153569-tokenizer-input-diagnostics

Conversation

@pablogsal

@pablogsal pablogsal commented Sep 7, 2026 •

Copy link
Copy Markdown
Member

Put decoded input ownership and interactive-input control in the reader, and group indentation and logical-line handling in the layout state.

Record diagnostic locations and source spans separately from the scanning cursor. Parser consumers use the tokenizer snapshot and view APIs, including the diagnostic context. Remove the unused cursor and source lookup APIs, duplicate accessors, obsolete state, and dead lexer header and debug helper.

Part of gh-153569. Last PR in the stack; the preceding PRs have landed.

@pablogsal
pablogsal force-pushed the gh-153569-tokenizer-input-diagnostics branch from d03c162 to 9016f1d Compare September 24, 2026 15:52
@pablogsal
pablogsal enabled auto-merge (squash) September 24, 2026 16:18
@pablogsal
pablogsal merged commit 2a96282 into python:main Sep 24, 2026
80 checks passed
@pablogsal
pablogsal deleted the gh-153569-tokenizer-input-diagnostics branch September 24, 2026 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant