Title: Remove `DELETE_GLOBAL` bytecode instruction · Issue #145857 · python/cpython · GitHub
Open Graph Title: Remove `DELETE_GLOBAL` bytecode instruction · Issue #145857 · python/cpython
X Title: Remove `DELETE_GLOBAL` bytecode instruction · Issue #145857 · python/cpython
Description: Feature or enhancement Proposal: DELETE_GLOBAL could be removed by making STORE_GLOBAL handle a NULL value and replacing DELETE_GLOBAL with PUSH_NULL; STORE_GLOBAL. This wouldn't have an effect on performance or code size, as STORE_GLOBA...
Open Graph Description: Feature or enhancement Proposal: DELETE_GLOBAL could be removed by making STORE_GLOBAL handle a NULL value and replacing DELETE_GLOBAL with PUSH_NULL; STORE_GLOBAL. This wouldn't have an effect on ...
X Description: Feature or enhancement Proposal: DELETE_GLOBAL could be removed by making STORE_GLOBAL handle a NULL value and replacing DELETE_GLOBAL with PUSH_NULL; STORE_GLOBAL. This wouldn't have an effect...
Opengraph URL: https://github.com/python/cpython/issues/145857
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Remove `DELETE_GLOBAL` bytecode instruction","articleBody":"# Feature or enhancement\n\n### Proposal:\n\n`DELETE_GLOBAL` could be removed by making `STORE_GLOBAL` handle a `NULL` value and replacing `DELETE_GLOBAL` with `PUSH_NULL; STORE_GLOBAL`.\n\nThis wouldn't have an effect on performance or code size, as `STORE_GLOBAL` would also need to do the job of `DELETE_GLOBAL` but it would free up an opcode for future use. Also, once https://github.com/python/cpython/issues/145854 and https://github.com/python/cpython/issues/145855 are implemented, it would make the bytecode for deletion more consistent. \n\n### Has this already been discussed elsewhere?\n\nThis is a minor feature, which does not need previous discussion elsewhere\n\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-146314\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/markshannon","@type":"Person","name":"markshannon"},"datePublished":"2026-03-12T11:48:35.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/145857/cpython/issues/145857"}
| 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:6be71535-9ca7-4451-059a-7af1227d0914 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BAC0:1FE206:2CCEA:3C23F:6A51215A |
| html-safe-nonce | 73376c72543d3531a3c21e548dea93aeb17c0ccdb803e005af24911dfb69e97f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQUMwOjFGRTIwNjoyQ0NFQTozQzIzRjo2QTUxMjE1QSIsInZpc2l0b3JfaWQiOiIxMTY5NDUxMzc1MjIzOTcyMTg2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0a193ae5dd9eca9624a7e66f5dc34e13a6fb2aa415aaaa80a0565834b2781c3a |
| hovercard-subject-tag | issue:4064089216 |
| 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/145857/issue_layout |
| twitter:image | https://opengraph.githubassets.com/644cfd02b52acf539f89ae7c5bbc4ce2197b2e12ff2182be5d64b18edd1ff161/python/cpython/issues/145857 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/644cfd02b52acf539f89ae7c5bbc4ce2197b2e12ff2182be5d64b18edd1ff161/python/cpython/issues/145857 |
| og:image:alt | Feature or enhancement Proposal: DELETE_GLOBAL could be removed by making STORE_GLOBAL handle a NULL value and replacing DELETE_GLOBAL with PUSH_NULL; STORE_GLOBAL. This wouldn't have an effect on ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | markshannon |
| hostname | github.com |
| expected-hostname | github.com |
| None | 689b683944b0d7f015d0e776452c970832fa81b82dc15284469b556ecced715b |
| 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 | 942b51ed3bd5feee3d5e2719f890a5fe286edbbb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width