Title: Public C API for accessing code object fields · Issue #94936 · python/cpython · GitHub
Open Graph Title: Public C API for accessing code object fields · Issue #94936 · python/cpython
X Title: Public C API for accessing code object fields · Issue #94936 · python/cpython
Description: A user/maintainer of a popular library documented their use case for accessing fields in the code object. In 3.11 the fields in C are gone but still available as properties in Python. Accessing these properties can be made faster by expo...
Open Graph Description: A user/maintainer of a popular library documented their use case for accessing fields in the code object. In 3.11 the fields in C are gone but still available as properties in Python. Accessing the...
X Description: A user/maintainer of a popular library documented their use case for accessing fields in the code object. In 3.11 the fields in C are gone but still available as properties in Python. Accessing the...
Opengraph URL: https://github.com/python/cpython/issues/94936
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Public C API for accessing code object fields","articleBody":"A user/maintainer of a popular library documented their use case for accessing fields in the code object. In 3.11 the fields in C are gone but still available as properties in Python. Accessing these properties can be made faster by exposing their functions in the C API. The current option is `PyObject_GetAttrString(code, \"attr\")` which is much slower.\r\n\r\nhttps://discuss.python.org/t/getting-the-class-name-of-a-code-frame-object-in-cpython-3-11-c-api/17396\r\n\r\nA similar issue is https://github.com/python/cpython/issues/92154.\r\n\r\nI am marking this as a release blocker @pablogsal as it would be mucho bueno if we could get this before rc1.","author":{"url":"https://github.com/Fidget-Spinner","@type":"Person","name":"Fidget-Spinner"},"datePublished":"2022-07-17T19:12:31.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":14},"url":"https://github.com/94936/cpython/issues/94936"}
| 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:1759f0c4-f139-b67a-3ce8-b64735814518 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D536:84B9D:27563:372CD:696A1675 |
| html-safe-nonce | d06688518264abdd518cdaecfa89445cba05ef2cc896948229ba0db64d459372 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTM2Ojg0QjlEOjI3NTYzOjM3MkNEOjY5NkExNjc1IiwidmlzaXRvcl9pZCI6IjU1MzA5MjQ2ODM3NDY0MDI0NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5d7203cd34d39da151e8f52b582869c55fab21bc3f631c4eaa2be00882cc4d41 |
| hovercard-subject-tag | issue:1307185541 |
| 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/94936/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4d61869eba90a2807ca46c05c4dd2c09f054cd34bab4021b04b3ebdd6da41513/python/cpython/issues/94936 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4d61869eba90a2807ca46c05c4dd2c09f054cd34bab4021b04b3ebdd6da41513/python/cpython/issues/94936 |
| og:image:alt | A user/maintainer of a popular library documented their use case for accessing fields in the code object. In 3.11 the fields in C are gone but still available as properties in Python. Accessing the... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Fidget-Spinner |
| hostname | github.com |
| expected-hostname | github.com |
| None | 34a52bd10bd674f68e5c1b6b74413b79bf2ca20c551055ace3f7cdd112803923 |
| 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 | e8bd37502700f365b18a4d39acf7cb7947e11b1a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width