Title: C API: Remove legacy API functions to configure Python initialization · Issue #105145 · python/cpython · GitHub
Open Graph Title: C API: Remove legacy API functions to configure Python initialization · Issue #105145 · python/cpython
X Title: C API: Remove legacy API functions to configure Python initialization · Issue #105145 · python/cpython
Description: The following C API functions were deprecated in Python 3.11 by issue #88279: PySys_AddWarnOptionUnicode() PySys_AddWarnOption() PySys_AddXOption() PySys_HasWarnOptions() PySys_SetArgvEx() PySys_SetArgv() PySys_SetPath() Py_SetPath() Py_...
Open Graph Description: The following C API functions were deprecated in Python 3.11 by issue #88279: PySys_AddWarnOptionUnicode() PySys_AddWarnOption() PySys_AddXOption() PySys_HasWarnOptions() PySys_SetArgvEx() PySys_Se...
X Description: The following C API functions were deprecated in Python 3.11 by issue #88279: PySys_AddWarnOptionUnicode() PySys_AddWarnOption() PySys_AddXOption() PySys_HasWarnOptions() PySys_SetArgvEx() PySys_Se...
Opengraph URL: https://github.com/python/cpython/issues/105145
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"C API: Remove legacy API functions to configure Python initialization","articleBody":"The following C API functions were deprecated in Python 3.11 by issue #88279:\r\n\r\n* ``PySys_AddWarnOptionUnicode()``\r\n* ``PySys_AddWarnOption()``\r\n* ``PySys_AddXOption()``\r\n* ``PySys_HasWarnOptions()``\r\n* ``PySys_SetArgvEx()``\r\n* ``PySys_SetArgv()``\r\n* ``PySys_SetPath()``\r\n* ``Py_SetPath()``\r\n* ``Py_SetProgramName()``\r\n* ``Py_SetPythonHome()``\r\n* ``Py_SetStandardStreamEncoding()``\r\n* ``_Py_SetProgramFullPath()``\r\n\r\nIMO it's now time to remove them: the new PyConfig API is available since Python 3.8: https://docs.python.org/dev/c-api/init_config.html\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-105154\n* gh-105179\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/vstinner","@type":"Person","name":"vstinner"},"datePublished":"2023-05-31T14:50:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/105145/cpython/issues/105145"}
| 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:e78b3aad-7896-7976-c6ec-e6c5a9ac26eb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B068:F3BC0:350962:4B1521:6A5483D8 |
| html-safe-nonce | 65d20c24da4750b1426d81a60a23018bd34788a0801042ed4f6c72b49e28d0e5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDY4OkYzQkMwOjM1MDk2Mjo0QjE1MjE6NkE1NDgzRDgiLCJ2aXNpdG9yX2lkIjoiMTk1NzUyMTIwMTk0NjcyMzI4OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4c840441adbbee899af84ab80dedf5f467aa21075d18651540989580992529e8 |
| hovercard-subject-tag | issue:1734409208 |
| 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/105145/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ad583baa64861e6259a7ce9720e659b2be92eb40cf1b6ebfa3b1a5851f24f54a/python/cpython/issues/105145 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ad583baa64861e6259a7ce9720e659b2be92eb40cf1b6ebfa3b1a5851f24f54a/python/cpython/issues/105145 |
| og:image:alt | The following C API functions were deprecated in Python 3.11 by issue #88279: PySys_AddWarnOptionUnicode() PySys_AddWarnOption() PySys_AddXOption() PySys_HasWarnOptions() PySys_SetArgvEx() PySys_Se... |
| 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 | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | 6d28624802c2f7d9500239dd6870ed7031b7353b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width