Title: Remove `DELETE_ATTR` bytecode instruction · Issue #145855 · python/cpython · GitHub
Open Graph Title: Remove `DELETE_ATTR` bytecode instruction · Issue #145855 · python/cpython
X Title: Remove `DELETE_ATTR` bytecode instruction · Issue #145855 · python/cpython
Description: Proposal: DELETE_ATTR can be replaced with PUSH_NULL; STORE_ATTR Since DELETE_ATTR just calls PyObject_DelAttr(v, name) which calls PyObject_SetAttr(v, name, NULL), no other changes are needed to do this. Has this already been discussed ...
Open Graph Description: Proposal: DELETE_ATTR can be replaced with PUSH_NULL; STORE_ATTR Since DELETE_ATTR just calls PyObject_DelAttr(v, name) which calls PyObject_SetAttr(v, name, NULL), no other changes are needed to d...
X Description: Proposal: DELETE_ATTR can be replaced with PUSH_NULL; STORE_ATTR Since DELETE_ATTR just calls PyObject_DelAttr(v, name) which calls PyObject_SetAttr(v, name, NULL), no other changes are needed to d...
Opengraph URL: https://github.com/python/cpython/issues/145855
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Remove `DELETE_ATTR` bytecode instruction","articleBody":"### Proposal:\n\n `DELETE_ATTR` can be replaced with `PUSH_NULL; STORE_ATTR`\n\nSince `DELETE_ATTR` just calls `PyObject_DelAttr(v, name)` which calls `PyObject_SetAttr(v, name, NULL)`, no other changes are needed to do this.\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-146216\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/markshannon","@type":"Person","name":"markshannon"},"datePublished":"2026-03-12T11:41:03.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/145855/cpython/issues/145855"}
| 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:dc182937-0071-4dd2-89b0-3e5a4ae1868a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9F28:17596C:A66B34:DCB065:6A518959 |
| html-safe-nonce | 069c179c8e3063491ad602a4f59bed6b8b1eaa2e65c241d3ba664c1f9c83e083 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjI4OjE3NTk2QzpBNjZCMzQ6RENCMDY1OjZBNTE4OTU5IiwidmlzaXRvcl9pZCI6IjM1NzUwMjAyODU1MTkxNTg2NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b0e50926028d800fe7392c6e027022c36c274d4053bed975f6e05538cce0854b |
| hovercard-subject-tag | issue:4064051175 |
| 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/145855/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b4fd9f4c103c0c346d327b4b2e7adfba02cf6f947e0b7e54944abc4c66a976b2/python/cpython/issues/145855 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b4fd9f4c103c0c346d327b4b2e7adfba02cf6f947e0b7e54944abc4c66a976b2/python/cpython/issues/145855 |
| og:image:alt | Proposal: DELETE_ATTR can be replaced with PUSH_NULL; STORE_ATTR Since DELETE_ATTR just calls PyObject_DelAttr(v, name) which calls PyObject_SetAttr(v, name, NULL), no other changes are needed to d... |
| 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 | 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 | cb77a7b8b06cd86c243be33fd8e7922d70a9d243 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width