Title: Isolate the itertools extension module · Issue #101277 · python/cpython · GitHub
Open Graph Title: Isolate the itertools extension module · Issue #101277 · python/cpython
X Title: Isolate the itertools extension module · Issue #101277 · python/cpython
Description: Feature or enhancement Following https://github.com/ericsnowcurrently/multi-core-python/wiki/0-The-Plan we need to convert the itertools extension module to use module state. There are multiple static global type objects: cpython/Tools/c...
Open Graph Description: Feature or enhancement Following https://github.com/ericsnowcurrently/multi-core-python/wiki/0-The-Plan we need to convert the itertools extension module to use module state. There are multiple sta...
X Description: Feature or enhancement Following https://github.com/ericsnowcurrently/multi-core-python/wiki/0-The-Plan we need to convert the itertools extension module to use module state. There are multiple sta...
Opengraph URL: https://github.com/python/cpython/issues/101277
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Isolate the itertools extension module","articleBody":"# Feature or enhancement\r\n\r\nFollowing https://github.com/ericsnowcurrently/multi-core-python/wiki/0-The-Plan we need to convert the `itertools` extension module to use module state.\r\n\r\nThere are multiple static global type objects:\r\n\r\nhttps://github.com/python/cpython/blob/e244401ce508ad391295beb636e499fcc6797a2a/Tools/c-analyzer/cpython/globals-to-fix.tsv#L338-L359\r\n\r\nWe need to convert these to heap types, add module state, and implement multi-phase init.\r\n\r\nSee also PEP-687.\r\n\r\nI've got an old PR (#24065) that I'm planning on resurrecting. I'll re-submit it as multiple PRs; this is going to be a large change.\r\n\r\nFor this particular module, it could make sense to add a module state pointer to each type context, for easy and cheap state access.\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-101302\n* gh-101303\n* gh-101304\n* gh-101305\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/erlend-aasland","@type":"Person","name":"erlend-aasland"},"datePublished":"2023-01-24T08:08:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/101277/cpython/issues/101277"}
| 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:1d096940-2f35-ad03-fe5e-054372457761 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 949C:270B7A:9D98EC:D934BA:6969ED31 |
| html-safe-nonce | 571f2f498ddbc64a6a896c9ebc02e8e8b2a6d1857f0f2df0ce68324d5796eacb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NDlDOjI3MEI3QTo5RDk4RUM6RDkzNEJBOjY5NjlFRDMxIiwidmlzaXRvcl9pZCI6IjIyODcwOTkzOTU3NDUzNzc1ODUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 234e4bd81fa81ae66c065f9b054c9bfa5aa08baaf4e76ef3afe0ce2c9e455962 |
| hovercard-subject-tag | issue:1554503678 |
| 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/101277/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7b0b627ea41d269c1d0825fab035fe11add1d69c347d843789fe00bede063c28/python/cpython/issues/101277 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7b0b627ea41d269c1d0825fab035fe11add1d69c347d843789fe00bede063c28/python/cpython/issues/101277 |
| og:image:alt | Feature or enhancement Following https://github.com/ericsnowcurrently/multi-core-python/wiki/0-The-Plan we need to convert the itertools extension module to use module state. There are multiple sta... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | erlend-aasland |
| 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