Title: IndentationError in new repl · Issue #133541 · python/cpython · GitHub
Open Graph Title: IndentationError in new repl · Issue #133541 · python/cpython
X Title: IndentationError in new repl · Issue #133541 · python/cpython
Description: Bug report Bug description: Python version: Python 3.14.0a7+ (heads/main-dirty:8d0e07eb899. To reproduce type the following class definition in the REPL: class C: def m Then set the cursor to the space before m and press backspace to cor...
Open Graph Description: Bug report Bug description: Python version: Python 3.14.0a7+ (heads/main-dirty:8d0e07eb899. To reproduce type the following class definition in the REPL: class C: def m Then set the cursor to the s...
X Description: Bug report Bug description: Python version: Python 3.14.0a7+ (heads/main-dirty:8d0e07eb899. To reproduce type the following class definition in the REPL: class C: def m Then set the cursor to the s...
Opengraph URL: https://github.com/python/cpython/issues/133541
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"IndentationError in new repl","articleBody":"# Bug report\n\n### Bug description:\n\nPython version: Python 3.14.0a7+ (heads/main-dirty:8d0e07eb899.\n\nTo reproduce type the following class definition in the REPL:\n\n```\nclass C:\n def\n m\n```\n\nThen set the cursor to the space before ``m`` and press backspace to correct the incorrect newline.\n\nBehaviour: the REPL exits with an ``IndentationError``.\n\nTyping backspace works correctly when the cursor is on ``m``.\n\nThe exit/crash does not happen in 3.14a7.\n\n\n### CPython versions tested on:\n\n3.14, CPython main branch\n\n### Operating systems tested on:\n\nmacOS\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-133606\n* gh-133709\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/ronaldoussoren","@type":"Person","name":"ronaldoussoren"},"datePublished":"2025-05-06T21:31:59.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/133541/cpython/issues/133541"}
| 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:edce31e5-52fd-0092-2c61-081f0f74a498 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ECAA:17A244:285F6D8:3700128:6A53B716 |
| html-safe-nonce | cf2d3e63ab32fd532059a35f7985cccc8f514b3ae89f69279bf8861436a173ed |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQ0FBOjE3QTI0NDoyODVGNkQ4OjM3MDAxMjg6NkE1M0I3MTYiLCJ2aXNpdG9yX2lkIjoiMzgyNzY3NjQyMzY0MjEzNDI5NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | aa7a7d12422afa16665d291fb9e91fb9d63fe33588cf34b1f81f65c399841e8a |
| hovercard-subject-tag | issue:3044058439 |
| 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/133541/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bdc57ff970cb7a13838c3b4aca0497c72d2acbf352fbdd01c583a939536fa1be/python/cpython/issues/133541 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bdc57ff970cb7a13838c3b4aca0497c72d2acbf352fbdd01c583a939536fa1be/python/cpython/issues/133541 |
| og:image:alt | Bug report Bug description: Python version: Python 3.14.0a7+ (heads/main-dirty:8d0e07eb899. To reproduce type the following class definition in the REPL: class C: def m Then set the cursor to the s... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ronaldoussoren |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width