cpython/Parser
Arnesh 4192eadc82
[3.13] gh-154711: Strip comments after escaped quotes in f-string debug text (#158310)
When a replacement field ended with a string that had an escaped quote and
was followed by a comment, the comment leaked into the debug f-string output.

The comment detection loop in set_fstring_expr skips escaped characters, but
the comment stripping loop did not. So an escaped quote left the scanner
thinking it was still inside a string, and the comment was never removed.

This makes the stripping loop skip escaped characters the same way the
detection loop does. 3.14 and later already have this fix from gh-154719.
2026-09-29 23:45:21 +01:00
..
lexer [3.13] gh-154711: Strip comments after escaped quotes in f-string debug text (#158310) 2026-09-29 23:45:21 +01:00
tokenizer [3.13] gh-155525: Fix quadratic f-string tokenization (GH-156756) (#157830) 2026-09-19 22:31:16 +00:00
action_helpers.c [3.13] gh-151464: exclude '<>' token from tokenize output (GH-154854) (#158191) 2026-09-25 19:20:09 +00:00
asdl.py
asdl_c.py [3.13] gh-144169: Fix three crashes in AST objects with non-str kwargs (GH-144178) (#144260) 2026-01-27 20:37:35 -08:00
myreadline.c [3.13] gh-72353: Continue reading from the console after ignored Ctrl+C (GH-155434) (GH-156591) 2026-08-30 18:31:59 +00:00
parser.c [3.13] gh-151464: exclude '<>' token from tokenize output (GH-154854) (#158191) 2026-09-25 19:20:09 +00:00
peg_api.c
pegen.c [3.13] gh-151464: exclude '<>' token from tokenize output (GH-154854) (#158191) 2026-09-25 19:20:09 +00:00
pegen.h [3.13] gh-151464: exclude '<>' token from tokenize output (GH-154854) (#158191) 2026-09-25 19:20:09 +00:00
pegen_errors.c [3.13] gh-142724: fix error path in _PyPegen_raise_tokenizer_init_error (GH-142725) (#142727) 2025-12-14 22:35:54 +00:00
Python.asdl
string_parser.c [3.13] gh-133767: Fix use-after-free in the unicode-escape decoder with an error handler (GH-129648) (GH-133944) 2025-05-20 14:46:57 +02:00
string_parser.h
token.c