◐ Shell
clean mode source ↗

bpo-39406: Implement os.putenv() with setenv() if available by vstinner · Pull Request #18128 · python/cpython

Skip to content

Navigation Menu

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Merged

vstinner

merged 2 commits into

Jan 22, 2020

Conversation

@vstinner

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

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

This PR no longer uses SetEnvironmentVariableW() on Windows.

shihai1991 pushed a commit to shihai1991/cpython that referenced this pull request

Jan 31, 2020
…-18128)

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.