Skip to content

gh-103718: Correctly set f-string buffers in all cases #103815

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

lysnikolaou
Copy link
Member

@lysnikolaou lysnikolaou commented Apr 25, 2023

Turns out we always need to remember/restore fstring buffers in all of the stack of tokenizer modes, cause they might change to TOK_REGULAR_MODE and have newlines inside the braces (which is when we need to reallocate the buffer and restore the fstring ones).

@pablogsal pablogsal enabled auto-merge (squash) April 25, 2023 00:18
@lysnikolaou lysnikolaou disabled auto-merge April 25, 2023 01:27
@lysnikolaou lysnikolaou enabled auto-merge (squash) April 25, 2023 01:28
@lysnikolaou lysnikolaou merged commit 57f8f9a into python:main Apr 25, 2023
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.

3 participants