Title: REPL adds syntax highlighting to echoed stdin being read in via `input` · Issue #141998 · python/cpython · GitHub
Open Graph Title: REPL adds syntax highlighting to echoed stdin being read in via `input` · Issue #141998 · python/cpython
X Title: REPL adds syntax highlighting to echoed stdin being read in via `input` · Issue #141998 · python/cpython
Description: Bug report Bug description: When obtaining input using the input function, syntax highlighting is being applied on the echoed stdin. Notably this does not occur when reading input via sys.stdin.read. tested on nix and uv builds of python...
Open Graph Description: Bug report Bug description: When obtaining input using the input function, syntax highlighting is being applied on the echoed stdin. Notably this does not occur when reading input via sys.stdin.rea...
X Description: Bug report Bug description: When obtaining input using the input function, syntax highlighting is being applied on the echoed stdin. Notably this does not occur when reading input via sys.stdin.rea...
Opengraph URL: https://github.com/python/cpython/issues/141998
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"REPL adds syntax highlighting to echoed stdin being read in via `input`","articleBody":"# Bug report\n\n### Bug description:\n\nWhen obtaining input using the `input` function, syntax highlighting is being applied on the echoed stdin.\nNotably this does not occur when reading input via `sys.stdin.read`.\n\ntested on nix and uv builds of python3.14 - though I doubt it has any effect with regard to this issue\n\n\u003cimg width=\"1366\" height=\"768\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/b28fd91c-6bca-437a-8e71-48814a7f8b3c\" />\n\n### CPython versions tested on:\n\n3.14\n\n### Operating systems tested on:\n\nLinux\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-142036\n* gh-161790\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/TotalyEnglizLitrate","@type":"Person","name":"TotalyEnglizLitrate"},"datePublished":"2025-11-27T03:08:49Z","url":"https://github.com/python/cpython/issues/141998"}
| 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:f5e15074-d7d1-c2bf-2fb7-e9e583e7bbe9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 93F0:1D20B7:31A8D1C:3EEF0A3:6B0201ED |
| html-safe-nonce | cf2083099b3a4f559b06fce90b42a9883ad857d3be56e67c022c943483b046c3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5M0YwOjFEMjBCNzozMUE4RDFDOjNFRUYwQTM6NkIwMjAxRUQiLCJ2aXNpdG9yX2lkIjoiODM0OTI1MDE4ODUxMDEwMTk5NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c9ab8274d2a68bfba67c81847ce4f8c83fc57a9063d6a258f4de7fb92575240d |
| hovercard-subject-tag | issue:3669697644 |
| 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/141998/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2235a4da2678ea15e60be08ce9fd379a7be3c6d99c60e5f450820e2f0d42e5e4/python/cpython/issues/141998 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2235a4da2678ea15e60be08ce9fd379a7be3c6d99c60e5f450820e2f0d42e5e4/python/cpython/issues/141998 |
| og:image:alt | Bug report Bug description: When obtaining input using the input function, syntax highlighting is being applied on the echoed stdin. Notably this does not occur when reading input via sys.stdin.rea... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | TotalyEnglizLitrate |
| 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