Title: Add virtual opcodes to the dis/opcodes modules · Issue #94216 · python/cpython · GitHub
Open Graph Title: Add virtual opcodes to the dis/opcodes modules · Issue #94216 · python/cpython
X Title: Add virtual opcodes to the dis/opcodes modules · Issue #94216 · python/cpython
Description: As we are exposing compiler optimisations to python for #93678, we also need the virtual opcodes to be available in python. We will add them to opcodes and that will make them available through dis. The virtual opcodes have values outsid...
Open Graph Description: As we are exposing compiler optimisations to python for #93678, we also need the virtual opcodes to be available in python. We will add them to opcodes and that will make them available through dis...
X Description: As we are exposing compiler optimisations to python for #93678, we also need the virtual opcodes to be available in python. We will add them to opcodes and that will make them available through dis...
Opengraph URL: https://github.com/python/cpython/issues/94216
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add virtual opcodes to the dis/opcodes modules","articleBody":"\r\nAs we are exposing compiler optimisations to python for #93678, we also need the virtual opcodes to be available in python. We will add them to opcodes and that will make them available through dis.\r\n\r\nThe virtual opcodes have values outside the [0,255] range, so they will not obey the normal relationship with ``HAS_ARGUMENT``. We will document that ``HAS_ARGUMENT`` is the threshold for non-virtual opcodes, and add a ``hasarg`` collection which includes the relevant virtual opcodes as well.\r\n\r\nFortunately the dis module is documented as unstable between python versions, so we don't need to worry too much about backward compatibility of this. However, it might be good to rename ``HAS_ARGUMENT`` to ``_HAS_ARGUMENT`` in order to push anyone who happens to be using it to use hasarg instead.\r\n\r\n\r\n","author":{"url":"https://github.com/iritkatriel","@type":"Person","name":"iritkatriel"},"datePublished":"2022-06-24T12:21:36.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/94216/cpython/issues/94216"}
| 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:f5d5090f-309e-8df6-e45b-4a97fe0ee30f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 91E0:10E844:35A09:45A65:696B3176 |
| html-safe-nonce | b33238056d4859ceceed0ef1a1e48700fa6331cac3c354602089702e5b6062e0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MUUwOjEwRTg0NDozNUEwOTo0NUE2NTo2OTZCMzE3NiIsInZpc2l0b3JfaWQiOiI0NDE0ODUwOTg0NzM1MDkzMTEwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 624061ebaada7553b73959ece710d1d4eae79387b271803ccd7d58b3ab5f5afb |
| hovercard-subject-tag | issue:1283685627 |
| 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/94216/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cbfd332275442287cd49036c2f50673139104ce143ed6fb183d408c06fbfa2ab/python/cpython/issues/94216 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cbfd332275442287cd49036c2f50673139104ce143ed6fb183d408c06fbfa2ab/python/cpython/issues/94216 |
| og:image:alt | As we are exposing compiler optimisations to python for #93678, we also need the virtual opcodes to be available in python. We will add them to opcodes and that will make them available through dis... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | iritkatriel |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| 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 | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width