Title: bpo-40549: Convert posixmodule.c to multiphase init by vstinner · Pull Request #19982 · python/cpython · GitHub
Open Graph Title: bpo-40549: Convert posixmodule.c to multiphase init by vstinner · Pull Request #19982 · python/cpython
X Title: bpo-40549: Convert posixmodule.c to multiphase init by vstinner · Pull Request #19982 · python/cpython
Description: Convert posixmodule.c ("posix" or "nt" module) to the multiphase initialization (PEP 489). Create the module using PyModuleDef_Init(). Create ScandirIteratorType and DirEntryType with the new PyType_FromModuleAndSpec() (PEP 573) Get the module state from ScandirIteratorType and DirEntryType with the new PyType_GetModule() (PEP 573) Pass module to functions which access the module state. convert_sched_param() gets a new module parameter. It is now called directly since Argument Clinic doesn't support passing the module to an argument converter callback. Remove _posixstate_global macro. https://bugs.python.org/issue40549
Open Graph Description: Convert posixmodule.c ("posix" or "nt" module) to the multiphase initialization (PEP 489). Create the module using PyModuleDef_Init(). Create ScandirIteratorType and DirEntryTy...
X Description: Convert posixmodule.c ("posix" or "nt" module) to the multiphase initialization (PEP 489). Create the module using PyModuleDef_Init(). Create ScandirIteratorTyp...
Opengraph URL: https://github.com/python/cpython/pull/19982
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:4773e1e7-08fb-7ffb-e814-f303823c950c |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C038:E27E8:143FBCA:1BD2AD5:6969FDDC |
| html-safe-nonce | 60dffbc7832c5f92f5d1763a257e364b3972741f825dfd24e54071ac1b331deb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMDM4OkUyN0U4OjE0M0ZCQ0E6MUJEMkFENTo2OTY5RkREQyIsInZpc2l0b3JfaWQiOiI4MzQ0NzQ3MDMxMjM3NjIzMjYwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 5967ed4d944234e7a96d124d5bdb0fb433b836b25dab0d40ddf77e055aa7a5e7 |
| hovercard-subject-tag | pull_request:414842641 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/python/cpython/pull/19982/files |
| twitter:image | https://avatars.githubusercontent.com/u/194129?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/194129?s=400&v=4 |
| og:image:alt | Convert posixmodule.c ("posix" or "nt" module) to the multiphase initialization (PEP 489). Create the module using PyModuleDef_Init(). Create ScandirIteratorType and DirEntryTy... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| 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