Skip to content

[3.7] bpo-34725: Adds _Py_SetProgramFullPath so embedders may override sys.executable (GH-9860) #9861

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 18, 2018

Conversation

zooba
Copy link
Member

@zooba zooba commented Oct 13, 2018

@serhiy-storchaka
Copy link
Member

Why _Py_SetProgramFullPathand not Py_SetProgramFullPath?

@zooba
Copy link
Member Author

zooba commented Oct 19, 2018

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
Copy link
Member

Have you planned to use it in CPython or in a tied third-party project?

@zooba
Copy link
Member Author

zooba commented Oct 20, 2018

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 zooba merged commit e851049 into python:3.7 Nov 18, 2018
@zooba zooba deleted the bpo-34725-3.7 branch November 18, 2018 04:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants