Title: gh-105145: Remove old functions to config Python init by vstinner · Pull Request #105154 · python/cpython · GitHub
Open Graph Title: gh-105145: Remove old functions to config Python init by vstinner · Pull Request #105154 · python/cpython
X Title: gh-105145: Remove old functions to config Python init by vstinner · Pull Request #105154 · python/cpython
Description: Remove the following old functions to configure the Python initialization, deprecated in Python 3.11: PySys_AddWarnOptionUnicode() PySys_AddWarnOption() PySys_AddXOption() PySys_HasWarnOptions() PySys_SetArgvEx() PySys_SetArgv() PySys_SetPath() Py_SetPath() Py_SetProgramName() Py_SetPythonHome() Py_SetStandardStreamEncoding() _Py_SetProgramFullPath() Most of these functions are kept in the stable ABI, except: Py_SetStandardStreamEncoding() _Py_SetProgramFullPath() Update Doc/extending/embedding.rst and Doc/extending/extending.rst to use the new PyConfig API. _testembed.c: check_stdio_details() now sets stdio_encoding and stdio_errors of PyConfig. Add definitions of functions removed from the API but kept for the stable ABI. test_init_from_config() and test_init_read_set() now use PyConfig_SetString() instead of PyConfig_SetBytesString(). Remove _Py_ClearStandardStreamEncoding() internal function. Issue: gh-105145
Open Graph Description: Remove the following old functions to configure the Python initialization, deprecated in Python 3.11: PySys_AddWarnOptionUnicode() PySys_AddWarnOption() PySys_AddXOption() PySys_HasWarnOptions() P...
X Description: Remove the following old functions to configure the Python initialization, deprecated in Python 3.11: PySys_AddWarnOptionUnicode() PySys_AddWarnOption() PySys_AddXOption() PySys_HasWarnOptions() P...
Opengraph URL: https://github.com/python/cpython/pull/105154
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:4109cafa-dd41-47a9-ea8f-572e65c2d9a0 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C7B0:781E9:CC20D5:127AAA6:6A54AC68 |
| html-safe-nonce | 211080bb6d5e2823e32cd087160467eaeab88e0b06c028b18ec8044a251d98f4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDN0IwOjc4MUU5OkNDMjBENToxMjdBQUE2OjZBNTRBQzY4IiwidmlzaXRvcl9pZCI6IjIwODU5MTY0MDU5OTIzMDM3MjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0e7b901dda9b4b07c0c0faef88f124e3e01facafc91d15ce3985fe52213f045f |
| hovercard-subject-tag | pull_request:1372510813 |
| 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/105154/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 | Remove the following old functions to configure the Python initialization, deprecated in Python 3.11: PySys_AddWarnOptionUnicode() PySys_AddWarnOption() PySys_AddXOption() PySys_HasWarnOptions() P... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | f8cfff6384f62259baea531c7f58bc7040f8dd92 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width