cpython/Parser/tokenizer
Miss Islington (bot) 1145c05620
[3.14] gh-155525: Fix quadratic f-string tokenization (GH-156756) (#157829)
* [ 3.14 ] gh-155525: Avoid quadratic f-string tokenization

Adapt the original expression-span fix to the release tokenizer and retain interactive buffers while a formatted string is open.

Co-authored-by: gwosti <322952417+gwosti@users.noreply.github.com>

* gh-155525: Cover quadratic f-string tokenization regression (GH-156756)

* gh-155525: Avoid quadratic f-string tokenization

* fixup! gh-155525: Avoid quadratic f-string tokenization

---------
(cherry picked from commit c1df6843d3)

Co-authored-by: gwosti <322952417+gwosti@users.noreply.github.com>
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>

---------

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Co-authored-by: gwosti <322952417+gwosti@users.noreply.github.com>
2026-09-19 22:34:31 +00:00
..
file_tokenizer.c [3.14] gh-155525: Fix quadratic f-string tokenization (GH-156756) (#157829) 2026-09-19 22:34:31 +00:00
helpers.c [3.14] gh-157378: Fix SyntaxError.offset for "Non-UTF-8 code" error (GH-157412) (#157489) 2026-09-14 11:09:26 -04:00
helpers.h [3.14] gh-151461: Fix encoding-related exception handling in file tokenizer (GH-151462) (GH-151474) 2026-06-14 13:10:39 +00:00
readline_tokenizer.c [3.14] gh-155525: Fix quadratic f-string tokenization (GH-156756) (#157829) 2026-09-19 22:34:31 +00:00
string_tokenizer.c [3.14] gh-145234: Normalize decoded CR in string tokenizer (GH-145281) (#145310) 2026-02-27 13:11:40 +00:00
tokenizer.h
utf8_tokenizer.c