Title: [Windows] Python 3.13 New REPL prompt swallows characters with print(..., end=" ") · Issue #128067 · python/cpython · GitHub
Open Graph Title: [Windows] Python 3.13 New REPL prompt swallows characters with print(..., end=" ") · Issue #128067 · python/cpython
X Title: [Windows] Python 3.13 New REPL prompt swallows characters with print(..., end=" ") · Issue #128067 · python/cpython
Description: Bug report Bug description: I encountered the following unexpected behavior when working with the new REPL on Windows 10's cmd just now: Actual Behavior >>> for i in range(0, 14, 2): ... print(i, end=" ") ... >>> 4 6 8 10 12 When I use p...
Open Graph Description: Bug report Bug description: I encountered the following unexpected behavior when working with the new REPL on Windows 10's cmd just now: Actual Behavior >>> for i in range(0, 14, 2): ... print(i, e...
X Description: Bug report Bug description: I encountered the following unexpected behavior when working with the new REPL on Windows 10's cmd just now: Actual Behavior >>> for i in range(0, 14, 2): ....
Opengraph URL: https://github.com/python/cpython/issues/128067
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Windows] Python 3.13 New REPL prompt swallows characters with print(..., end=\" \")","articleBody":"# Bug report\n\n### Bug description:\n\nI encountered the following unexpected behavior when working with the new REPL on Windows 10's `cmd` just now: \n\n## Actual Behavior\n\n```python\n\u003e\u003e\u003e for i in range(0, 14, 2):\n... print(i, end=\" \")\n...\n\u003e\u003e\u003e 4 6 8 10 12\n```\n\n - When I use print and pass an argument to the `end`-parameter, the resulting line is missing 4 characters.\n - The four chars of the REPL prompt `\u003e\u003e\u003e ` appear to write over the line, as the cursor blinks on the first visible position (indicator sits under the number 4)\n - Typing overwrites the shown chars. \n\n## Expected Behavior\n\n```python\n\u003e\u003e\u003e for i in range(0, 14, 2):\n... print(i, end=\" \")\n...\n0 2 4 6 8 10 12 \u003e\u003e\u003e _\n```\n\n - REPL on Python 3.12 works as expected. \n - Results are printed in one line, prompt appears at the end, cursor follows at end of line.\n\n## Note: \n\nThis works as expected: \n\n```python\n\u003e\u003e\u003e for i in range(0, 14, 2):\n... print(i)\n...\n0\n2\n4\n6\n8\n10\n12\n```\n\n\n\n### CPython versions tested on:\n\n3.13\n\n### Operating systems tested on:\n\nWindows\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-131011\n* gh-138732\n* gh-143350\n* gh-143351\n* gh-143356\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/cessor","@type":"Person","name":"cessor"},"datePublished":"2024-12-18T13:29:47.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":25},"url":"https://github.com/128067/cpython/issues/128067"}
| 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:24cc5b7d-f92d-3dbb-07d0-376b99c95e73 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9A2E:DC47A:26E6F16:377B3BD:6A50FDFB |
| html-safe-nonce | 74da08110892eb38ac484ab06530a13ea2f9e8bbed308b1a549fc596b34938bc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QTJFOkRDNDdBOjI2RTZGMTY6Mzc3QjNCRDo2QTUwRkRGQiIsInZpc2l0b3JfaWQiOiI0MjAwMjIzNDU4ODU1MDI2MTcxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 50b84d3568a84c362ca12e28d3ed68c6a57c819c3b5792b93204d885afee0ae0 |
| hovercard-subject-tag | issue:2747825781 |
| 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/128067/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8fce1371cdce6d4671fab206850a5947c92d883d5fcf4a295aba891c32f422c8/python/cpython/issues/128067 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8fce1371cdce6d4671fab206850a5947c92d883d5fcf4a295aba891c32f422c8/python/cpython/issues/128067 |
| og:image:alt | Bug report Bug description: I encountered the following unexpected behavior when working with the new REPL on Windows 10's cmd just now: Actual Behavior >>> for i in range(0, 14, 2): ... print(i, e... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | cessor |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5266e58c17a510c403505cc811606465e90a881d2007ee7df1c4800d5c659838 |
| 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 | 8d836581d020676cc0ef4a83cd2fe17e4af02c3d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width