René's URL Explorer Experiment


Title: bpo-40910: Export Py_GetArgcArgv() function by vstinner · Pull Request #20721 · python/cpython · GitHub

Open Graph Title: bpo-40910: Export Py_GetArgcArgv() function by vstinner · Pull Request #20721 · python/cpython

X Title: bpo-40910: Export Py_GetArgcArgv() function by vstinner · Pull Request #20721 · python/cpython

Description: Export explicitly the Py_GetArgcArgv() function to the C API and document the function. Previously, it was exported implicitly which no longer works since Python is built with -fvisibility=hidden. Add PyConfig._orig_argv member. Py_InitializeFromConfig() no longer calls _PyConfig_Write() twice. PyConfig_Read() no longer initializes Py_GetArgcArgv(): it is now _PyConfig_Write() responsibility. _PyConfig_Write() result type becomes PyStatus instead of void. Write an unit test on Py_GetArgcArgv(). https://bugs.python.org/issue40910

Open Graph Description: Export explicitly the Py_GetArgcArgv() function to the C API and document the function. Previously, it was exported implicitly which no longer works since Python is built with -fvisibility=hidden. ...

X Description: Export explicitly the Py_GetArgcArgv() function to the C API and document the function. Previously, it was exported implicitly which no longer works since Python is built with -fvisibility=hidden. ...

Opengraph URL: https://github.com/python/cpython/pull/20721

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:2323d4de-9026-f016-d4af-2db80ed7b539
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8266:B5AA6:295653C:393D025:6A4F5603
html-safe-nonce882ed12a21035459eb1097683b1fbad91340961fc5b3bc6297e9408e26b99981
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MjY2OkI1QUE2OjI5NTY1M0M6MzkzRDAyNTo2QTRGNTYwMyIsInZpc2l0b3JfaWQiOiI5MTE5NzAxMDY3MjM1Mjg0NDgzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmaca4a4c2d70fa8d793ee105375f747ddb57976abed5aa04254052d1b73530e56f3
hovercard-subject-tagpull_request:431162793
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/20721/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:altExport explicitly the Py_GetArgcArgv() function to the C API and document the function. Previously, it was exported implicitly which no longer works since Python is built with -fvisibility=hidden. ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneb92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9
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
releaseb14b8c6d72fdb96ca48aba85dec94fe96ce5adbe
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/20721/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F20721%2Ffiles
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%2F20721%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/20721/files
Reloadhttps://github.com/python/cpython/pull/20721/files
Reloadhttps://github.com/python/cpython/pull/20721/files
Please reload this pagehttps://github.com/python/cpython/pull/20721/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/20721/files
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 34.8k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.6k 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:masterhttps://github.com/python/cpython/tree/master
Conversation 1 https://github.com/python/cpython/pull/20721
Commits 2 https://github.com/python/cpython/pull/20721/commits
Checks 0 https://github.com/python/cpython/pull/20721/checks
Files changed https://github.com/python/cpython/pull/20721/files
Please reload this pagehttps://github.com/python/cpython/pull/20721/files
bpo-40910: Export Py_GetArgcArgv() function https://github.com/python/cpython/pull/20721/files#top
Show all changes 2 commits https://github.com/python/cpython/pull/20721/files
274143a bpo-40910: Export Py_GetArgcArgv() function vstinner Jun 8, 2020 https://github.com/python/cpython/pull/20721/commits/274143afbce6f4d3023a331ddbfb5b1b534175c5
860fdf7 Remove outdated comment vstinner Jun 8, 2020 https://github.com/python/cpython/pull/20721/commits/860fdf7d498003e3ff6320cbb28a04d6b23506d7
Clear filters https://github.com/python/cpython/pull/20721/files
Please reload this pagehttps://github.com/python/cpython/pull/20721/files
Please reload this pagehttps://github.com/python/cpython/pull/20721/files
init_config.rst https://github.com/python/cpython/pull/20721/files#diff-283c61ee582a6dbb765f3a03a57930c2b6e4948a67464e50b6fec3d80a12df1f
initconfig.h https://github.com/python/cpython/pull/20721/files#diff-35a650b0af7753c2aee8a2a7512fe62158d8b7150bf79ebf1c32201b00cc5124
pycore_initconfig.h https://github.com/python/cpython/pull/20721/files#diff-18955faf9bcc909d91ecdd289135e41643c0c499eb5039424c26ee6f18be53f7
test_embed.py https://github.com/python/cpython/pull/20721/files#diff-573be25566e43f5adc6650ad1b58d106dbbd79521cb9c6e6d5df9588616a1ffd
2020-06-08-15-59-06.bpo-40910.L56oI0.rst https://github.com/python/cpython/pull/20721/files#diff-e4c7eb4900af4160b0d02fdf7a42d3673d73a4351d7b6f05d750a5796cb0f0c7
python3.def https://github.com/python/cpython/pull/20721/files#diff-a047a3ba52889584c613807fad7e2aa6797b2694868f756dd5bc05667f013497
_testembed.c https://github.com/python/cpython/pull/20721/files#diff-68b4b67b7265522a6f47393ef786b2034f5d6c53f1a9574780d72662c2361fad
bootstrap_hash.c https://github.com/python/cpython/pull/20721/files#diff-711e9ece55e6c88a5f41a37929104331637766b4b922274a8a7892530fb356e4
initconfig.c https://github.com/python/cpython/pull/20721/files#diff-bde30a9f2283aadeea54d703778ec8edf01c71bac3cfe6479035fc13ddc3296b
pylifecycle.c https://github.com/python/cpython/pull/20721/files#diff-69223f5bb01f359a23246afbbf75b45c622e719424418d658674fbb6c2b36fad
Doc/c-api/init_config.rsthttps://github.com/python/cpython/pull/20721/files#diff-283c61ee582a6dbb765f3a03a57930c2b6e4948a67464e50b6fec3d80a12df1f
View file https://github.com/python/cpython/blob/860fdf7d498003e3ff6320cbb28a04d6b23506d7/Doc/c-api/init_config.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/20721/{{ revealButtonHref }}
https://github.com/python/cpython/pull/20721/files#diff-283c61ee582a6dbb765f3a03a57930c2b6e4948a67464e50b6fec3d80a12df1f
https://github.com/python/cpython/pull/20721/files#diff-283c61ee582a6dbb765f3a03a57930c2b6e4948a67464e50b6fec3d80a12df1f
https://github.com/python/cpython/pull/20721/files#diff-283c61ee582a6dbb765f3a03a57930c2b6e4948a67464e50b6fec3d80a12df1f
https://github.com/python/cpython/pull/20721/files#diff-283c61ee582a6dbb765f3a03a57930c2b6e4948a67464e50b6fec3d80a12df1f
Include/cpython/initconfig.hhttps://github.com/python/cpython/pull/20721/files#diff-35a650b0af7753c2aee8a2a7512fe62158d8b7150bf79ebf1c32201b00cc5124
View file https://github.com/python/cpython/blob/860fdf7d498003e3ff6320cbb28a04d6b23506d7/Include/cpython/initconfig.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/20721/{{ revealButtonHref }}
https://github.com/python/cpython/pull/20721/files#diff-35a650b0af7753c2aee8a2a7512fe62158d8b7150bf79ebf1c32201b00cc5124
https://github.com/python/cpython/pull/20721/files#diff-35a650b0af7753c2aee8a2a7512fe62158d8b7150bf79ebf1c32201b00cc5124
Include/internal/pycore_initconfig.hhttps://github.com/python/cpython/pull/20721/files#diff-18955faf9bcc909d91ecdd289135e41643c0c499eb5039424c26ee6f18be53f7
View file https://github.com/python/cpython/blob/860fdf7d498003e3ff6320cbb28a04d6b23506d7/Include/internal/pycore_initconfig.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/20721/{{ revealButtonHref }}
https://github.com/python/cpython/pull/20721/files#diff-18955faf9bcc909d91ecdd289135e41643c0c499eb5039424c26ee6f18be53f7
https://github.com/python/cpython/pull/20721/files#diff-18955faf9bcc909d91ecdd289135e41643c0c499eb5039424c26ee6f18be53f7
Lib/test/test_embed.pyhttps://github.com/python/cpython/pull/20721/files#diff-573be25566e43f5adc6650ad1b58d106dbbd79521cb9c6e6d5df9588616a1ffd
View file https://github.com/python/cpython/blob/860fdf7d498003e3ff6320cbb28a04d6b23506d7/Lib/test/test_embed.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/20721/{{ revealButtonHref }}
https://github.com/python/cpython/pull/20721/files#diff-573be25566e43f5adc6650ad1b58d106dbbd79521cb9c6e6d5df9588616a1ffd
https://github.com/python/cpython/pull/20721/files#diff-573be25566e43f5adc6650ad1b58d106dbbd79521cb9c6e6d5df9588616a1ffd
https://github.com/python/cpython/pull/20721/files#diff-573be25566e43f5adc6650ad1b58d106dbbd79521cb9c6e6d5df9588616a1ffd
https://github.com/python/cpython/pull/20721/files#diff-573be25566e43f5adc6650ad1b58d106dbbd79521cb9c6e6d5df9588616a1ffd
https://github.com/python/cpython/pull/20721/files#diff-573be25566e43f5adc6650ad1b58d106dbbd79521cb9c6e6d5df9588616a1ffd
https://github.com/python/cpython/pull/20721/files#diff-573be25566e43f5adc6650ad1b58d106dbbd79521cb9c6e6d5df9588616a1ffd
https://github.com/python/cpython/pull/20721/files#diff-573be25566e43f5adc6650ad1b58d106dbbd79521cb9c6e6d5df9588616a1ffd
https://github.com/python/cpython/pull/20721/files#diff-573be25566e43f5adc6650ad1b58d106dbbd79521cb9c6e6d5df9588616a1ffd
https://github.com/python/cpython/pull/20721/files#diff-573be25566e43f5adc6650ad1b58d106dbbd79521cb9c6e6d5df9588616a1ffd
https://github.com/python/cpython/pull/20721/files#diff-573be25566e43f5adc6650ad1b58d106dbbd79521cb9c6e6d5df9588616a1ffd
https://github.com/python/cpython/pull/20721/files#diff-573be25566e43f5adc6650ad1b58d106dbbd79521cb9c6e6d5df9588616a1ffd
https://github.com/python/cpython/pull/20721/files#diff-573be25566e43f5adc6650ad1b58d106dbbd79521cb9c6e6d5df9588616a1ffd
https://github.com/python/cpython/pull/20721/files#diff-573be25566e43f5adc6650ad1b58d106dbbd79521cb9c6e6d5df9588616a1ffd
https://github.com/python/cpython/pull/20721/files#diff-573be25566e43f5adc6650ad1b58d106dbbd79521cb9c6e6d5df9588616a1ffd
https://github.com/python/cpython/pull/20721/files#diff-573be25566e43f5adc6650ad1b58d106dbbd79521cb9c6e6d5df9588616a1ffd
Misc/NEWS.d/next/C API/2020-06-08-15-59-06.bpo-40910.L56oI0.rsthttps://github.com/python/cpython/pull/20721/files#diff-e4c7eb4900af4160b0d02fdf7a42d3673d73a4351d7b6f05d750a5796cb0f0c7
View file https://github.com/python/cpython/blob/860fdf7d498003e3ff6320cbb28a04d6b23506d7/Misc/NEWS.d/next/C%20API/2020-06-08-15-59-06.bpo-40910.L56oI0.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/20721/{{ revealButtonHref }}
PC/python3.defhttps://github.com/python/cpython/pull/20721/files#diff-a047a3ba52889584c613807fad7e2aa6797b2694868f756dd5bc05667f013497
View file https://github.com/python/cpython/blob/860fdf7d498003e3ff6320cbb28a04d6b23506d7/PC/python3.def
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/20721/{{ revealButtonHref }}
https://github.com/python/cpython/pull/20721/files#diff-a047a3ba52889584c613807fad7e2aa6797b2694868f756dd5bc05667f013497
https://github.com/python/cpython/pull/20721/files#diff-a047a3ba52889584c613807fad7e2aa6797b2694868f756dd5bc05667f013497
Programs/_testembed.chttps://github.com/python/cpython/pull/20721/files#diff-68b4b67b7265522a6f47393ef786b2034f5d6c53f1a9574780d72662c2361fad
View file https://github.com/python/cpython/blob/860fdf7d498003e3ff6320cbb28a04d6b23506d7/Programs/_testembed.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/20721/{{ revealButtonHref }}
https://github.com/python/cpython/pull/20721/files#diff-68b4b67b7265522a6f47393ef786b2034f5d6c53f1a9574780d72662c2361fad
https://github.com/python/cpython/pull/20721/files#diff-68b4b67b7265522a6f47393ef786b2034f5d6c53f1a9574780d72662c2361fad
https://github.com/python/cpython/pull/20721/files#diff-68b4b67b7265522a6f47393ef786b2034f5d6c53f1a9574780d72662c2361fad
https://github.com/python/cpython/pull/20721/files#diff-68b4b67b7265522a6f47393ef786b2034f5d6c53f1a9574780d72662c2361fad
https://github.com/python/cpython/pull/20721/files#diff-68b4b67b7265522a6f47393ef786b2034f5d6c53f1a9574780d72662c2361fad
https://github.com/python/cpython/pull/20721/files#diff-68b4b67b7265522a6f47393ef786b2034f5d6c53f1a9574780d72662c2361fad
Python/bootstrap_hash.chttps://github.com/python/cpython/pull/20721/files#diff-711e9ece55e6c88a5f41a37929104331637766b4b922274a8a7892530fb356e4
View file https://github.com/python/cpython/blob/860fdf7d498003e3ff6320cbb28a04d6b23506d7/Python/bootstrap_hash.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/20721/{{ revealButtonHref }}
https://github.com/python/cpython/pull/20721/files#diff-711e9ece55e6c88a5f41a37929104331637766b4b922274a8a7892530fb356e4
https://github.com/python/cpython/pull/20721/files#diff-711e9ece55e6c88a5f41a37929104331637766b4b922274a8a7892530fb356e4
Python/initconfig.chttps://github.com/python/cpython/pull/20721/files#diff-bde30a9f2283aadeea54d703778ec8edf01c71bac3cfe6479035fc13ddc3296b
View file https://github.com/python/cpython/blob/860fdf7d498003e3ff6320cbb28a04d6b23506d7/Python/initconfig.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/20721/{{ revealButtonHref }}
https://github.com/python/cpython/pull/20721/files#diff-bde30a9f2283aadeea54d703778ec8edf01c71bac3cfe6479035fc13ddc3296b
https://github.com/python/cpython/pull/20721/files#diff-bde30a9f2283aadeea54d703778ec8edf01c71bac3cfe6479035fc13ddc3296b
https://github.com/python/cpython/pull/20721/files#diff-bde30a9f2283aadeea54d703778ec8edf01c71bac3cfe6479035fc13ddc3296b
https://github.com/python/cpython/pull/20721/files#diff-bde30a9f2283aadeea54d703778ec8edf01c71bac3cfe6479035fc13ddc3296b
https://github.com/python/cpython/pull/20721/files#diff-bde30a9f2283aadeea54d703778ec8edf01c71bac3cfe6479035fc13ddc3296b
https://github.com/python/cpython/pull/20721/files#diff-bde30a9f2283aadeea54d703778ec8edf01c71bac3cfe6479035fc13ddc3296b
https://github.com/python/cpython/pull/20721/files#diff-bde30a9f2283aadeea54d703778ec8edf01c71bac3cfe6479035fc13ddc3296b
https://github.com/python/cpython/pull/20721/files#diff-bde30a9f2283aadeea54d703778ec8edf01c71bac3cfe6479035fc13ddc3296b
https://github.com/python/cpython/pull/20721/files#diff-bde30a9f2283aadeea54d703778ec8edf01c71bac3cfe6479035fc13ddc3296b
https://github.com/python/cpython/pull/20721/files#diff-bde30a9f2283aadeea54d703778ec8edf01c71bac3cfe6479035fc13ddc3296b
https://github.com/python/cpython/pull/20721/files#diff-bde30a9f2283aadeea54d703778ec8edf01c71bac3cfe6479035fc13ddc3296b
https://github.com/python/cpython/pull/20721/files#diff-bde30a9f2283aadeea54d703778ec8edf01c71bac3cfe6479035fc13ddc3296b
https://github.com/python/cpython/pull/20721/files#diff-bde30a9f2283aadeea54d703778ec8edf01c71bac3cfe6479035fc13ddc3296b
https://github.com/python/cpython/pull/20721/files#diff-bde30a9f2283aadeea54d703778ec8edf01c71bac3cfe6479035fc13ddc3296b
https://github.com/python/cpython/pull/20721/files#diff-bde30a9f2283aadeea54d703778ec8edf01c71bac3cfe6479035fc13ddc3296b
https://github.com/python/cpython/pull/20721/files#diff-bde30a9f2283aadeea54d703778ec8edf01c71bac3cfe6479035fc13ddc3296b
Python/pylifecycle.chttps://github.com/python/cpython/pull/20721/files#diff-69223f5bb01f359a23246afbbf75b45c622e719424418d658674fbb6c2b36fad
View file https://github.com/python/cpython/blob/860fdf7d498003e3ff6320cbb28a04d6b23506d7/Python/pylifecycle.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/20721/{{ revealButtonHref }}
https://github.com/python/cpython/pull/20721/files#diff-69223f5bb01f359a23246afbbf75b45c622e719424418d658674fbb6c2b36fad
https://github.com/python/cpython/pull/20721/files#diff-69223f5bb01f359a23246afbbf75b45c622e719424418d658674fbb6c2b36fad
https://github.com/python/cpython/pull/20721/files#diff-69223f5bb01f359a23246afbbf75b45c622e719424418d658674fbb6c2b36fad
https://github.com/python/cpython/pull/20721/files#diff-69223f5bb01f359a23246afbbf75b45c622e719424418d658674fbb6c2b36fad
https://github.com/python/cpython/pull/20721/files#diff-69223f5bb01f359a23246afbbf75b45c622e719424418d658674fbb6c2b36fad
https://github.com/python/cpython/pull/20721/files#diff-69223f5bb01f359a23246afbbf75b45c622e719424418d658674fbb6c2b36fad
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.