Title: Remove _Py_InitializeMain() private function · Issue #129033 · python/cpython · GitHub
Open Graph Title: Remove _Py_InitializeMain() private function · Issue #129033 · python/cpython
X Title: Remove _Py_InitializeMain() private function · Issue #129033 · python/cpython
Description: PEP 587 "Python Initialization Configuration" added a "Multi-Phase Initialization Private Provisional API": PyConfig._init_main _Py_InitializeMain() The plan was to make the "core phase" more usable. But since Python 3.8, Python doesn't ...
Open Graph Description: PEP 587 "Python Initialization Configuration" added a "Multi-Phase Initialization Private Provisional API": PyConfig._init_main _Py_InitializeMain() The plan was to make the "core phase" more usabl...
X Description: PEP 587 "Python Initialization Configuration" added a "Multi-Phase Initialization Private Provisional API": PyConfig._init_main _Py_InitializeMain() The plan was to make the &qu...
Opengraph URL: https://github.com/python/cpython/issues/129033
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Remove _Py_InitializeMain() private function","articleBody":"[PEP 587](https://peps.python.org/pep-0587/) \"Python Initialization Configuration\" added a \"Multi-Phase Initialization Private Provisional API\":\n\n* `PyConfig._init_main`\n* [_Py_InitializeMain()](https://docs.python.org/dev/c-api/init_config.html#c._Py_InitializeMain)\n\nThe plan was to make the \"core phase\" more usable. But since Python 3.8, Python doesn't use this \"Multi-Phase Initialization\" API and I failed to find any user in 3rd party code.\n\nI propose to remove this API in Python 3.14 without any deprecation since the feature was [provisional](https://docs.python.org/dev/glossary.html#term-provisional-API) and it's a private API.\n\nProvisional:\n\n\u003e A provisional API is one which has been **deliberately excluded** from the standard library’s **backwards compatibility guarantees**.\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-129034\n* gh-129048\n* gh-137379\n* gh-137382\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/vstinner","@type":"Person","name":"vstinner"},"datePublished":"2025-01-19T22:03:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/129033/cpython/issues/129033"}
| 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:ac03ff94-c7e9-d6a9-7a91-ddcd10ba2987 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E4E4:2F9DEC:1506097:1D6CB74:696A42A7 |
| html-safe-nonce | b472096451a44dfbe89e69028817d720d6930781e8df1664991371a07cd48b14 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNEU0OjJGOURFQzoxNTA2MDk3OjFENkNCNzQ6Njk2QTQyQTciLCJ2aXNpdG9yX2lkIjoiMTAzNzc1ODEzNDQ5NjE1MDE4MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 542b9e0e2609010c9e90e86113947c5a886ee04419f13f2143ba4af6488084df |
| hovercard-subject-tag | issue:2797853751 |
| 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/129033/issue_layout |
| twitter:image | https://opengraph.githubassets.com/33084d84f90df7a8548f05ddc03ba0d99845706606f19a869c4285cf1e0d5ef2/python/cpython/issues/129033 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/33084d84f90df7a8548f05ddc03ba0d99845706606f19a869c4285cf1e0d5ef2/python/cpython/issues/129033 |
| og:image:alt | PEP 587 "Python Initialization Configuration" added a "Multi-Phase Initialization Private Provisional API": PyConfig._init_main _Py_InitializeMain() The plan was to make the "core phase" more usabl... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vstinner |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3f871c8e07f0ae1886fa8dac284166d28b09ad5bada6476fc10b674e489788ef |
| 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 | 63c426b30d262aba269ef14c40e3c817b384cd61 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width