Skip to content
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

bpo-39406: Implement os.putenv() with setenv() if available #18128

Merged
merged 2 commits into from Jan 22, 2020

Conversation

@vstinner
Copy link
Member

vstinner commented Jan 22, 2020

If setenv() C function is available, os.putenv() is now implemented
with setenv() instead of putenv(), so Python doesn't have to handle
the environment variable memory.

https://bugs.python.org/issue39406

If setenv() C function is available, os.putenv() is now implemented
with setenv() instead of putenv(), so Python doesn't have to handle
the environment variable memory.
@vstinner

This comment has been minimized.

Copy link
Member Author

vstinner commented Jan 22, 2020

Previous version of the PR, approved by @serhiy-storchaka: PR #18095

This PR no longer uses SetEnvironmentVariableW() on Windows.

@vstinner vstinner merged commit b477d19 into python:master Jan 22, 2020
9 checks passed
9 checks passed
Docs
Details
Windows (x86)
Details
Windows (x64)
Details
macOS
Details
Ubuntu
Details
Azure Pipelines PR #20200122.49 succeeded
Details
bedevere/issue-number Issue number 39406 found
Details
bedevere/news News entry found in Misc/NEWS.d
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@vstinner vstinner deleted the vstinner:setenv2 branch Jan 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.