Title: dis: LOAD_SPECIAL should mention the name of the attribute · Issue #120780 · python/cpython · GitHub
Open Graph Title: dis: LOAD_SPECIAL should mention the name of the attribute · Issue #120780 · python/cpython
X Title: dis: LOAD_SPECIAL should mention the name of the attribute · Issue #120780 · python/cpython
Description: Feature or enhancement Proposal: >>> import dis >>> dis.dis("with x: pass") 0 RESUME 0 1 LOAD_NAME 0 (x) COPY 1 LOAD_SPECIAL 1 SWAP 2 SWAP 3 LOAD_SPECIAL 0 It should say "LOAD_SPECIAL 1 (__exit__)" or something similar. I'll work on this...
Open Graph Description: Feature or enhancement Proposal: >>> import dis >>> dis.dis("with x: pass") 0 RESUME 0 1 LOAD_NAME 0 (x) COPY 1 LOAD_SPECIAL 1 SWAP 2 SWAP 3 LOAD_SPECIAL 0 It should say "LOAD_SPECIAL 1 (__exit__)"...
X Description: Feature or enhancement Proposal: >>> import dis >>> dis.dis("with x: pass") 0 RESUME 0 1 LOAD_NAME 0 (x) COPY 1 LOAD_SPECIAL 1 SWAP 2 SWAP 3 LOAD_SPECIAL 0 It should say...
Opengraph URL: https://github.com/python/cpython/issues/120780
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"dis: LOAD_SPECIAL should mention the name of the attribute","articleBody":"# Feature or enhancement\r\n\r\n### Proposal:\r\n\r\n```python\r\n>>> import dis\r\n>>> dis.dis(\"with x: pass\")\r\n 0 RESUME 0\r\n\r\n 1 LOAD_NAME 0 (x)\r\n COPY 1\r\n LOAD_SPECIAL 1\r\n SWAP 2\r\n SWAP 3\r\n LOAD_SPECIAL 0\r\n\r\n```\r\n\r\nIt should say \"`LOAD_SPECIAL 1 (__exit__)`\" or something similar.\r\n\r\nI'll work on this.\r\n\r\ncc @markshannon who added LOAD_SPECIAL in #120640\r\n\r\n### Has this already been discussed elsewhere?\r\n\r\nThis is a minor feature, which does not need previous discussion elsewhere\r\n\r\n### Links to previous discussion of this feature:\r\n\r\n_No response_\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-120781\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/JelleZijlstra","@type":"Person","name":"JelleZijlstra"},"datePublished":"2024-06-20T06:00:03Z","url":"https://github.com/python/cpython/issues/120780"}
| 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:51ac4faa-e406-6d06-9eb9-ffcc035032e9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C06A:3E418A:200A5BC:29F5037:6B02368A |
| html-safe-nonce | 8e60613ac9fde65e82a59f97c454e21b321305f30b075206c73d115eab7930e8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMDZBOjNFNDE4QToyMDBBNUJDOjI5RjUwMzc6NkIwMjM2OEEiLCJ2aXNpdG9yX2lkIjoiNDQ4NTMyMjc3ODA4OTc2NDQ5MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4b82ec5d49cf1cc5db283351ff4981a97e1048f79b0d781a0517bd20f3978780 |
| hovercard-subject-tag | issue:2363586503 |
| 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/120780/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a050bc036aad60c109a86a838145e2f45ce65fc5cdd6bf3dbb9bc1e6770673bb/python/cpython/issues/120780 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a050bc036aad60c109a86a838145e2f45ce65fc5cdd6bf3dbb9bc1e6770673bb/python/cpython/issues/120780 |
| og:image:alt | Feature or enhancement Proposal: >>> import dis >>> dis.dis("with x: pass") 0 RESUME 0 1 LOAD_NAME 0 (x) COPY 1 LOAD_SPECIAL 1 SWAP 2 SWAP 3 LOAD_SPECIAL 0 It should say "LOAD_SPECIAL 1 (__exit__)"... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JelleZijlstra |
| 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