Title: Modernize Code In IDLELib Editor Backspace · Issue #136556 · python/cpython · GitHub
Open Graph Title: Modernize Code In IDLELib Editor Backspace · Issue #136556 · python/cpython
X Title: Modernize Code In IDLELib Editor Backspace · Issue #136556 · python/cpython
Description: (and potentially deprecate handling of tabs in IDLE, though likely separate issue) In #136061, cpython/Lib/idlelib/editor.py Lines 1365 to 1385 in 561212a # Ick. It may require *inserting* spaces if we back up over a # tab character! Thi...
Open Graph Description: (and potentially deprecate handling of tabs in IDLE, though likely separate issue) In #136061, cpython/Lib/idlelib/editor.py Lines 1365 to 1385 in 561212a # Ick. It may require *inserting* spaces i...
X Description: (and potentially deprecate handling of tabs in IDLE, though likely separate issue) In #136061, cpython/Lib/idlelib/editor.py Lines 1365 to 1385 in 561212a # Ick. It may require *inserting* spaces i...
Opengraph URL: https://github.com/python/cpython/issues/136556
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Modernize Code In IDLELib Editor Backspace","articleBody":"(and potentially deprecate handling of tabs in IDLE, though likely separate issue)\n\nIn https://github.com/python/cpython/issues/136061, https://github.com/python/cpython/blob/561212a03306cb2f246771e9c4748bec1dc41405/Lib/idlelib/editor.py#L1365-L1385 is mentioned as an area of code with quadratic complexity, which may lead to performance issues; though this is unlikely to be of large impact in practice because attackers with the ability to get a huge file loaded and/or modify configuration files to change the tab width can do much worse things than getting IDLE to hang on hitting backspace.\n\nHowever, the complexity there comes from a loop which handles situations (files with tabs) that either cannot or should not occur; in the current default IDLE, you can't put tabs, and a space after a tab should just be deleted in a file coming from elsewhere as in indicated in https://github.com/python/cpython/pull/134874#issuecomment-3014981765. Therefore, simplifying the function specification and/or deprecating IDLE to handle tabs (which we should do) will allow elimination of this piece of obsolete code, as indicated in https://github.com/python/cpython/issues/136061#issuecomment-3016093746.","author":{"url":"https://github.com/johnzhou721","@type":"Person","name":"johnzhou721"},"datePublished":"2025-07-11T18:27:48Z","url":"https://github.com/python/cpython/issues/136556"}
| 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:32a789a9-bab0-a213-6d3e-a50de4d06ee1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C6D6:22DB35:3DD893B:4ED848B:6B020202 |
| html-safe-nonce | a0295982999ccdc659e20870f25e4e5ef960b4d4dfa7978a9ac223e868c235bd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNkQ2OjIyREIzNTozREQ4OTNCOjRFRDg0OEI6NkIwMjAyMDIiLCJ2aXNpdG9yX2lkIjoiMjkxNzQ0MjM3NjgxOTY3MTU1NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7e97f16c81c98077cd521ad76db91c4188cc5d7a11d62ea795ad61ea60fe9c6b |
| hovercard-subject-tag | issue:3223831418 |
| 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/136556/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b6cca079f087d3d984ef255386faf385f224f3a462fee11a034941c232eee5a4/python/cpython/issues/136556 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b6cca079f087d3d984ef255386faf385f224f3a462fee11a034941c232eee5a4/python/cpython/issues/136556 |
| og:image:alt | (and potentially deprecate handling of tabs in IDLE, though likely separate issue) In #136061, cpython/Lib/idlelib/editor.py Lines 1365 to 1385 in 561212a # Ick. It may require *inserting* spaces i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | johnzhou721 |
| 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