-
-
Notifications
You must be signed in to change notification settings - Fork 33.1k
Closed
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-IDLEtype-featureA feature request or enhancementA feature request or enhancement
Description
Bug report
Bug description:
In 3.14, the t-string is supported, but the IDLE still hardcodes the string prefix pattern (r, u, b, f, rb, br, fr, rf),
but does not delegate to the standard tokenize
module.
The question of the hardcodes cannot fix quickly. However, change the code in make_pat
here can fix the question above:
stringprefix = r"(?i:r|u|f|t|fr|rf|b|br|rb|rt|tr)?"
If there are more supported combinations we can add them.
CPython versions tested on:
3.14
Operating systems tested on:
No response
Linked PRs
- [3.14]gh-139742: support t-string colorization in IDLE #139747
- gh-139742: colorize t-strings in IDLE #139754
- gh-139742: Add support for Python 3.14 t-string prefixes in IDLE colorizer and tests #139756
- [3.13] gh-139742: Add support for Python 3.14 t-string prefixes in IDLE colorizer and tests (GH-139756) #139830
- [3.14] gh-139742: Add support for Python 3.14 t-string prefixes in IDLE colorizer and tests (GH-139756) #139831
Metadata
Metadata
Assignees
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-IDLEtype-featureA feature request or enhancementA feature request or enhancement
Projects
Status
Done