◐ Shell
clean mode source ↗

[3.7] bpo-34725: Adds _Py_SetProgramFullPath so embedders may override sys.executable (GH-9860) by zooba · Pull Request #9861 · python/cpython

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@zooba

@zooba zooba commented

Oct 13, 2018

edited by bedevere-bot

Loading

Copy link Copy Markdown

Member

@serhiy-storchaka

Copy link Copy Markdown

Member

Why _Py_SetProgramFullPathand not Py_SetProgramFullPath?

@zooba

zooba commented

Oct 19, 2018

Copy link Copy Markdown

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

Copy link Copy Markdown

Member

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

@zooba

zooba commented

Oct 20, 2018

Copy link Copy Markdown

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 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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@zooba @serhiy-storchaka @the-knights-who-say-ni @bedevere-bot