Title: Isolate the `_io` extension module · Issue #101819 · python/cpython · GitHub
Open Graph Title: Isolate the `_io` extension module · Issue #101819 · python/cpython
X Title: Isolate the `_io` extension module · Issue #101819 · python/cpython
Description: Isolate the _io extension module by moving all global variables to module state, porting static types to heap types, and implementing multi-phase init. All global variables in the _io module are static types: Modules/_io/bufferedio.c: Py...
Open Graph Description: Isolate the _io extension module by moving all global variables to module state, porting static types to heap types, and implementing multi-phase init. All global variables in the _io module are st...
X Description: Isolate the _io extension module by moving all global variables to module state, porting static types to heap types, and implementing multi-phase init. All global variables in the _io module are st...
Opengraph URL: https://github.com/python/cpython/issues/101819
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Isolate the `_io` extension module","articleBody":"Isolate the `_io` extension module by moving all global variables to module state, porting static types to heap types, and implementing multi-phase init. All global variables in the `_io` module are static types:\r\n\r\n- Modules/_io/bufferedio.c: PyBufferedIOBase_Type\r\n- Modules/_io/bufferedio.c: PyBufferedRWPair_Type\r\n- Modules/_io/bufferedio.c: PyBufferedRandom_Type\r\n- Modules/_io/bufferedio.c: PyBufferedReader_Type\r\n- Modules/_io/bufferedio.c: PyBufferedWriter_Type\r\n- Modules/_io/bytesio.c: PyBytesIO_Type\r\n- Modules/_io/bytesio.c: _PyBytesIOBuffer_Type\r\n- Modules/_io/fileio.c: PyFileIO_Type\r\n- Modules/_io/iobase.c: PyIOBase_Type\r\n- Modules/_io/iobase.c: PyRawIOBase_Type\r\n- Modules/_io/textio.c: PyIncrementalNewlineDecoder_Type\r\n- Modules/_io/textio.c: PyTextIOBase_Type\r\n- Modules/_io/textio.c: PyTextIOWrapper_Type\r\n- Modules/_io/winconsoleio.c: PyWindowsConsoleIO_Type\r\n\r\nConverting the static types to heap types involves applying PEP-687 to `_io`.\r\nAdapting multi-phase init involves applying PEP-489 to `_io`.\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-101904\n* gh-101918\n* gh-101948\n* gh-101949\n* gh-104178\n* gh-104197\n* gh-104246\n* gh-104249\n* gh-104264\n* gh-104334\n* gh-104352\n* gh-104354\n* gh-104355\n* gh-104367\n* gh-104369\n* gh-104370\n* gh-104383\n* gh-104384\n* gh-104386\n* gh-104388\n* gh-104418\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/erlend-aasland","@type":"Person","name":"erlend-aasland"},"datePublished":"2023-02-11T08:05:18.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/101819/cpython/issues/101819"}
| 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:b6e1242f-7457-6c42-5a52-0a9944424263 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B0BE:2D5987:17E44A7:2052BF6:6969AA1E |
| html-safe-nonce | d93227d5bb08bb14fe2af71b881076b0a4267bb85091fb0c6f766218f5d528ff |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMEJFOjJENTk4NzoxN0U0NEE3OjIwNTJCRjY6Njk2OUFBMUUiLCJ2aXNpdG9yX2lkIjoiNTM0NTQxNjQ1NjI5NzI5MzEwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 22e6703181b66ac9a548d03c8d71bd24e7f979d21fac366468b153fbd6df2ea1 |
| hovercard-subject-tag | issue:1580724680 |
| 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/101819/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ecf73c42d316f1bcce5d4054baec1b324f16b029d11472cc7c5c9a77175bb571/python/cpython/issues/101819 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ecf73c42d316f1bcce5d4054baec1b324f16b029d11472cc7c5c9a77175bb571/python/cpython/issues/101819 |
| og:image:alt | Isolate the _io extension module by moving all global variables to module state, porting static types to heap types, and implementing multi-phase init. All global variables in the _io module are st... |
| 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 | 24c4c97a2d520cb286b35e1a4c22d7a4df3c26a2fa28dd7cdf0e65db327b4de7 |
| 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 | 124667f43168afb6c9c03b7c02eb5b1d2e1be3d9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width