[3.7] bpo-34725: Adds _Py_SetProgramFullPath so embedders may override sys.executable (GH-9860) by zooba · Pull Request #9861 · python/cpython
-
-
Notifications
You must be signed in to change notification settings - Fork 34.8k
Merged
Merged
Conversation
Member
the-knights-who-say-ni
added
the
CLA signed
label
bedevere-bot
added
the
awaiting merge
label
serhiy-storchaka
commented
Oct 16, 2018
serhiy-storchaka commented
Member
Why _Py_SetProgramFullPathand not Py_SetProgramFullPath?
zooba
commented
Oct 19, 2018
zooba commented
Member Author
Because if someone uses it in 3.7.2, their code won't be compatible with 3.7.1 and earlier, so it shouldn't be a public API. (The use I have planned is internal, but requires the API to be exposed.)
serhiy-storchaka
commented
Oct 19, 2018
serhiy-storchaka commented
Member
Have you planned to use it in CPython or in a tied third-party project?
zooba
commented
Oct 20, 2018
zooba commented
Member Author
CPython. It's needed for https://bugs.python.org/issue34977, and there's no reason to delay that until 3.8 since it isn't a new platform.
zooba
merged commit
e851049
into
python:3.7
bedevere-bot
removed
the
awaiting merge
label
zooba
deleted the
bpo-34725-3.7
branch
mariofutire
mannequin
mentioned this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment