mirror of
https://github.com/python/cpython
synced 2026-11-15 16:57:07 +03:00
* [ 3.15 ] 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>
8 lines
141 B
C
8 lines
141 B
C
#ifndef _PY_LEXER_LEXER_H_
|
|
#define _PY_LEXER_LEXER_H_
|
|
|
|
#include "state.h"
|
|
|
|
int _PyTokenizer_Get(struct tok_state *, struct token *);
|
|
|
|
#endif
|