| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
…ion (pythonGH-156756) * pythongh-155525: Avoid quadratic f-string tokenization * fixup! pythongh-155525: Avoid quadratic f-string tokenization --------- (cherry picked from commit c1df684) Co-authored-by: gwosti <322952417+gwosti@users.noreply.github.com> Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
| Back | FazBrowse Home | New Git URL |
Backport gh-156756 to Python 3.13. Retain replacement expressions in the tokenizer buffer instead of repeatedly copying the remaining source. Preserve the expression pointers when the buffer grows, and keep the interactive buffer while a formatted string is open.
Main already received the implementation through gh-156484, so the main commit only contains tests. This manual backport resolves the missing t-string test file and adapts the original fix to the release tokenizer and adds coverage for multiline interactive expressions, which otherwise abort in a debug build.
The targeted parser and command-line tests pass in a debug build, including the CPU-resource tests.
(cherry picked from commit c1df684)