Title: Clarifying the `PyGILState_` API for per-GIL subinterpreters · Issue #123672 · python/cpython · GitHub
Open Graph Title: Clarifying the `PyGILState_` API for per-GIL subinterpreters · Issue #123672 · python/cpython
X Title: Clarifying the `PyGILState_` API for per-GIL subinterpreters · Issue #123672 · python/cpython
Description: Documentation Both #123488 and #123134 have made it clear that PEP-684 and multithreading from C haven't been documented properly. In both issues, the following line was misinterpreted: Python supports the creation of additional interpre...
Open Graph Description: Documentation Both #123488 and #123134 have made it clear that PEP-684 and multithreading from C haven't been documented properly. In both issues, the following line was misinterpreted: Python supp...
X Description: Documentation Both #123488 and #123134 have made it clear that PEP-684 and multithreading from C haven't been documented properly. In both issues, the following line was misinterpreted: Python ...
Opengraph URL: https://github.com/python/cpython/issues/123672
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Clarifying the `PyGILState_` API for per-GIL subinterpreters","articleBody":"# Documentation\r\n\r\nBoth #123488 and #123134 have made it clear that PEP-684 and multithreading from C haven't been documented properly. In both issues, the following line was misinterpreted:\r\n\r\n> Python supports the creation of additional interpreters (using [Py_NewInterpreter()](https://docs.python.org/3/c-api/init.html#c.Py_NewInterpreter)), but mixing multiple interpreters and the PyGILState_* API is unsupported.\r\n\r\nThis has been interpreted as \"it's safe to call `Py_NewInterpreter` (or `Py_NewInterpreterFromConfig`) without the GIL,\" which it definitely is not! It's just that we can't switch interpreters via `PyGILState_*` -- that should be clarified.\r\n\r\n(@encukou, this needs `topic-subinterpreters`)\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-123728\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/ZeroIntensity","@type":"Person","name":"ZeroIntensity"},"datePublished":"2024-09-04T14:24:59Z","url":"https://github.com/python/cpython/issues/123672"}
| 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:d530b1b7-e89b-2231-a586-89ea69d9d4bd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B4FA:EA09B:35F5960:4783B7E:6B02025E |
| html-safe-nonce | eebcff044a2f35f803df2da004da33a486cc528679fc109c0efc37248b172843 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNEZBOkVBMDlCOjM1RjU5NjA6NDc4M0I3RTo2QjAyMDI1RSIsInZpc2l0b3JfaWQiOiI4NjMyMDg0MTMwNTA1NjkzMTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c388f2fd4e6b7820205f56d356c62ac0d2e132d61dc600dd2e5ec2ca70493573 |
| hovercard-subject-tag | issue:2505525606 |
| 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/123672/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e033b4548684c0bbeec2b8064385f2df9220d695af2d97339d11176b2b65a800/python/cpython/issues/123672 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e033b4548684c0bbeec2b8064385f2df9220d695af2d97339d11176b2b65a800/python/cpython/issues/123672 |
| og:image:alt | Documentation Both #123488 and #123134 have made it clear that PEP-684 and multithreading from C haven't been documented properly. In both issues, the following line was misinterpreted: Python supp... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ZeroIntensity |
| 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