René's URL Explorer Experiment


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

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:4109cafa-dd41-47a9-ea8f-572e65c2d9a0
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC7B0:781E9:CC20D5:127AAA6:6A54AC68
html-safe-nonce211080bb6d5e2823e32cd087160467eaeab88e0b06c028b18ec8044a251d98f4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDN0IwOjc4MUU5OkNDMjBENToxMjdBQUE2OjZBNTRBQzY4IiwidmlzaXRvcl9pZCI6IjIwODU5MTY0MDU5OTIzMDM3MjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac0e7b901dda9b4b07c0c0faef88f124e3e01facafc91d15ce3985fe52213f045f
hovercard-subject-tagpull_request:1372510813
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/105154/files
twitter:imagehttps://avatars.githubusercontent.com/u/194129?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/194129?s=400&v=4
og:image:altRemove 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_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasef8cfff6384f62259baea531c7f58bc7040f8dd92
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/105154/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F105154%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F105154%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/105154/files
Reloadhttps://github.com/python/cpython/pull/105154/files
Reloadhttps://github.com/python/cpython/pull/105154/files
Please reload this pagehttps://github.com/python/cpython/pull/105154/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/105154/files
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 35k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.8k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.3k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality 0 https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
vstinnerhttps://github.com/vstinner
python:mainhttps://github.com/python/cpython/tree/main
vstinner:remove_old_init_funcshttps://github.com/vstinner/cpython/tree/remove_old_init_funcs
Conversation 1 https://github.com/python/cpython/pull/105154
Commits 2 https://github.com/python/cpython/pull/105154/commits
Checks 0 https://github.com/python/cpython/pull/105154/checks
Files changed https://github.com/python/cpython/pull/105154/files
Please reload this pagehttps://github.com/python/cpython/pull/105154/files
gh-105145: Remove old functions to config Python init https://github.com/python/cpython/pull/105154/files#top
Show all changes 2 commits https://github.com/python/cpython/pull/105154/files
1453a74 gh-105145: Remove old functions to config Python init vstinner May 31, 2023 https://github.com/python/cpython/pull/105154/commits/1453a749073160c9e55662a0502ff86fde448daf
833ddf7 Run make regen-limited-abi vstinner May 31, 2023 https://github.com/python/cpython/pull/105154/commits/833ddf7fd53be71741fc000551ea8a480e84bcb5
Clear filters https://github.com/python/cpython/pull/105154/files
Please reload this pagehttps://github.com/python/cpython/pull/105154/files
Please reload this pagehttps://github.com/python/cpython/pull/105154/files
init.rst https://github.com/python/cpython/pull/105154/files#diff-41fc528d7972e974b1da5b110ac23586c0251c19c63575f7d1fe7414c85ca50a
init_config.rst https://github.com/python/cpython/pull/105154/files#diff-283c61ee582a6dbb765f3a03a57930c2b6e4948a67464e50b6fec3d80a12df1f
intro.rst https://github.com/python/cpython/pull/105154/files#diff-26bf4e55db06af36f4418f4e2937171bf0d16cec44486d799ce29e4a19b053bc
sys.rst https://github.com/python/cpython/pull/105154/files#diff-625eb612ccaffd9f1592a2f1145764c59314ab3c8f39b80219fd1a69d80fa7bd
stable_abi.dat https://github.com/python/cpython/pull/105154/files#diff-e87eccb88c979495c493aed4127b9f9932c320edfe4d95c8e28e2ca92e8e33f3
embedding.rst https://github.com/python/cpython/pull/105154/files#diff-ace2ff98800a919da6805fd307b196594645e14ee9ee2c40ced39c7a509ec2d3
extending.rst https://github.com/python/cpython/pull/105154/files#diff-c8029375131ddc13f3113a9eb67810de9dcf954277b4bf193d4220d6834741b3
sys_path_init.rst https://github.com/python/cpython/pull/105154/files#diff-e076f2cd935c9026fffc2c917298d9b46ab0c9339679f8974efa656ae55ca23e
windows.rst https://github.com/python/cpython/pull/105154/files#diff-10646dae07701f50c80fe6fa218f1b6a8865144a71fb7f8160ad3fb328a59d0a
3.13.rst https://github.com/python/cpython/pull/105154/files#diff-0eef04c1aae0cf8389945464f271ff6789259ef8985f5fdbb21c9a99c4b5021f
pylifecycle.h https://github.com/python/cpython/pull/105154/files#diff-0bf60487b94c5152e970cc86cbc5d8fcaa7e729628b15f3e83f3ad31406dcaee
pycore_pylifecycle.h https://github.com/python/cpython/pull/105154/files#diff-654f110e8bb3ccaa35433482309c4552cd8d74958bfb8b780daa6222f8ab2859
pylifecycle.h https://github.com/python/cpython/pull/105154/files#diff-04cebdfb695b1ad3aa046d76250d4c11ca627afab9e204e106ed79d64a3f5af2
sysmodule.h https://github.com/python/cpython/pull/105154/files#diff-6e5b3d0668abf2d934277e8ba7c6ca08f57f93e971114397de27b20bf9ae6b01
2023-05-31-16-51-18.gh-issue-105145.b3B6lJ.rst https://github.com/python/cpython/pull/105154/files#diff-f8357c8103712ef827366cdff4345d1c7bfa275ebde86c2b4e20be6da1652af7
stable_abi.toml https://github.com/python/cpython/pull/105154/files#diff-f098b9ddf231fb279a9f5b4b8ed22c4241e1ffed7fe0deffb2c76bb2126d2911
main.c https://github.com/python/cpython/pull/105154/files#diff-79e40dbd94b164b5f42a960224cc7496e33c189b4c66a6810904eda7d703b6f2
_testembed.c https://github.com/python/cpython/pull/105154/files#diff-68b4b67b7265522a6f47393ef786b2034f5d6c53f1a9574780d72662c2361fad
initconfig.c https://github.com/python/cpython/pull/105154/files#diff-bde30a9f2283aadeea54d703778ec8edf01c71bac3cfe6479035fc13ddc3296b
pathconfig.c https://github.com/python/cpython/pull/105154/files#diff-09327e0a986b458413322c8ef2c9f7ff06f191cc79520787f95db7598e633415
pylifecycle.c https://github.com/python/cpython/pull/105154/files#diff-69223f5bb01f359a23246afbbf75b45c622e719424418d658674fbb6c2b36fad
sysmodule.c https://github.com/python/cpython/pull/105154/files#diff-a3a5c73931235f7f344c072dc755d6508e13923db3f5d581c5e88652075871cb
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L114
Doc/c-api/init.rsthttps://github.com/python/cpython/pull/105154/files#diff-41fc528d7972e974b1da5b110ac23586c0251c19c63575f7d1fe7414c85ca50a
View file https://github.com/vstinner/cpython/blob/833ddf7fd53be71741fc000551ea8a480e84bcb5/Doc/c-api/init.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/105154/{{ revealButtonHref }}
https://github.com/python/cpython/pull/105154/files#diff-41fc528d7972e974b1da5b110ac23586c0251c19c63575f7d1fe7414c85ca50a
https://github.com/python/cpython/pull/105154/files#diff-41fc528d7972e974b1da5b110ac23586c0251c19c63575f7d1fe7414c85ca50a
https://github.com/python/cpython/pull/105154/files#diff-41fc528d7972e974b1da5b110ac23586c0251c19c63575f7d1fe7414c85ca50a
https://github.com/python/cpython/pull/105154/files#diff-41fc528d7972e974b1da5b110ac23586c0251c19c63575f7d1fe7414c85ca50a
https://github.com/python/cpython/pull/105154/files#diff-41fc528d7972e974b1da5b110ac23586c0251c19c63575f7d1fe7414c85ca50a
https://github.com/python/cpython/pull/105154/files#diff-41fc528d7972e974b1da5b110ac23586c0251c19c63575f7d1fe7414c85ca50a
https://github.com/python/cpython/pull/105154/files#diff-41fc528d7972e974b1da5b110ac23586c0251c19c63575f7d1fe7414c85ca50a
https://github.com/python/cpython/pull/105154/files#diff-41fc528d7972e974b1da5b110ac23586c0251c19c63575f7d1fe7414c85ca50a
https://github.com/python/cpython/pull/105154/files#diff-41fc528d7972e974b1da5b110ac23586c0251c19c63575f7d1fe7414c85ca50a
https://github.com/python/cpython/pull/105154/files#diff-41fc528d7972e974b1da5b110ac23586c0251c19c63575f7d1fe7414c85ca50a
https://github.com/python/cpython/pull/105154/files#diff-41fc528d7972e974b1da5b110ac23586c0251c19c63575f7d1fe7414c85ca50a
https://github.com/python/cpython/pull/105154/files#diff-41fc528d7972e974b1da5b110ac23586c0251c19c63575f7d1fe7414c85ca50a
https://github.com/python/cpython/pull/105154/files#diff-41fc528d7972e974b1da5b110ac23586c0251c19c63575f7d1fe7414c85ca50a
https://github.com/python/cpython/pull/105154/files#diff-41fc528d7972e974b1da5b110ac23586c0251c19c63575f7d1fe7414c85ca50a
https://github.com/python/cpython/pull/105154/files#diff-41fc528d7972e974b1da5b110ac23586c0251c19c63575f7d1fe7414c85ca50a
Please reload this pagehttps://github.com/python/cpython/pull/105154/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.