Title: dis: Show names of intrinsics · Issue #103963 · python/cpython · GitHub
Open Graph Title: dis: Show names of intrinsics · Issue #103963 · python/cpython
X Title: dis: Show names of intrinsics · Issue #103963 · python/cpython
Description: For CALL_INTRINSIC_* opcodes, dis currently just shows the number, which makes it hard to figure out what the code actually does: 2 LOAD_CONST 0 ('T') 4 CALL_INTRINSIC_1 7 It would be nice if this instead said 2 LOAD_CONST 0 ('T') 4 CALL...
Open Graph Description: For CALL_INTRINSIC_* opcodes, dis currently just shows the number, which makes it hard to figure out what the code actually does: 2 LOAD_CONST 0 ('T') 4 CALL_INTRINSIC_1 7 It would be nice if this ...
X Description: For CALL_INTRINSIC_* opcodes, dis currently just shows the number, which makes it hard to figure out what the code actually does: 2 LOAD_CONST 0 ('T') 4 CALL_INTRINSIC_1 7 It would be nice ...
Opengraph URL: https://github.com/python/cpython/issues/103963
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"dis: Show names of intrinsics","articleBody":"For `CALL_INTRINSIC_*` opcodes, `dis` currently just shows the number, which makes it hard to figure out what the code actually does:\r\n\r\n```\r\n 2 LOAD_CONST 0 ('T')\r\n 4 CALL_INTRINSIC_1 7\r\n```\r\n\r\nIt would be nice if this instead said\r\n\r\n```\r\n 2 LOAD_CONST 0 ('T')\r\n 4 CALL_INTRINSIC_1 7 (INTRINSIC_TYPEVAR)\r\n```\r\n\r\nPossible implementation strategy:\r\n- instrinsic names are defined in opcode.py\r\n- `pycore_intrinsics.h` is generated from opcode.py (bonus: we no longer have to manually update MAX_INTRINSIC_1)\r\n- `dis` learns to read the intrinsic names from opcode.py\r\n\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-104029\n* gh-104177\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/JelleZijlstra","@type":"Person","name":"JelleZijlstra"},"datePublished":"2023-04-28T05:09:19.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":12},"url":"https://github.com/103963/cpython/issues/103963"}
| 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:51462840-0873-f9e7-e839-941f396c0a0a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E750:361CC5:AAE778:E69851:6969E569 |
| html-safe-nonce | 503d3550d575943eeefdf1836aaa51cbc3184fd7f993c32e37744eabb8f0236e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNzUwOjM2MUNDNTpBQUU3Nzg6RTY5ODUxOjY5NjlFNTY5IiwidmlzaXRvcl9pZCI6IjI4MTQzNDU3NTQxODY0NzQ4NTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 102bf39b81520046f3c846b13031cc4ac2d8b10072c265fe2c8a0b5fae38e850 |
| hovercard-subject-tag | issue:1687910654 |
| 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/103963/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1652e5f69c40517945af477e158803f3b594af27276babb813077c1924872c72/python/cpython/issues/103963 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1652e5f69c40517945af477e158803f3b594af27276babb813077c1924872c72/python/cpython/issues/103963 |
| og:image:alt | For CALL_INTRINSIC_* opcodes, dis currently just shows the number, which makes it hard to figure out what the code actually does: 2 LOAD_CONST 0 ('T') 4 CALL_INTRINSIC_1 7 It would be nice if this ... |
| 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 | 7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8 |
| 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 | bdde15ad1b403e23b08bbd89b53fbe6bdf688cad |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width