Title: IDLE - support t-string prefix in colorizer · Issue #139742 · python/cpython · GitHub
Open Graph Title: IDLE - support t-string prefix in colorizer · Issue #139742 · python/cpython
X Title: IDLE - support t-string prefix in colorizer · Issue #139742 · python/cpython
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 can...
Open Graph 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 m...
X 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 m...
Opengraph URL: https://github.com/python/cpython/issues/139742
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"IDLE - support t-string prefix in colorizer","articleBody":"# Bug report\n\n### Bug description:\n\nIn 3.14, the t-string is supported, but the IDLE still hardcodes the string prefix pattern (r, u, b, f, rb, br, fr, rf),\nbut does not delegate to the standard `tokenize` module.\n\nThe question of the hardcodes cannot fix quickly. However, change the code in `make_pat` here can fix the question above:\n\n```python\nstringprefix = r\"(?i:r|u|f|t|fr|rf|b|br|rb|rt|tr)?\"\n```\n\nIf there are more supported combinations we can add them.\n\n\n### CPython versions tested on:\n\n3.14\n\n### Operating systems tested on:\n\n_No response_\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-139747\n* gh-139754\n* gh-139756\n* gh-139830\n* gh-139831\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/Locked-chess-official","@type":"Person","name":"Locked-chess-official"},"datePublished":"2025-10-08T01:43:07Z","url":"https://github.com/python/cpython/issues/139742"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:51668ac3-e34b-5cf2-1c2b-da0093b1f7f3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A056:2D40DE:2F94E9F:3C98141:6B020261 |
| html-safe-nonce | 528ac4bf7f7ca2a91dbe1e3029872dc61afbce038b44ddc60de33970bd927f0b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMDU2OjJENDBERToyRjk0RTlGOjNDOTgxNDE6NkIwMjAyNjEiLCJ2aXNpdG9yX2lkIjoiNTQxMjk2NjM0MTcxMzk4NjE0NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a39056f1431fcc61b16c5155e7e46d21634971584734a7f8f604c98860fa51f4 |
| hovercard-subject-tag | issue:3493528727 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/139742/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3f78dd0c3595567d89ef3badb8b5f832b91d6ede1cf5dab7e6dfdb6affe22d91/python/cpython/issues/139742 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3f78dd0c3595567d89ef3badb8b5f832b91d6ede1cf5dab7e6dfdb6affe22d91/python/cpython/issues/139742 |
| og:image:alt | 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 m... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Locked-chess-official |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width