bpo-39406: Implement os.putenv() with setenv() if available by vstinner · Pull Request #18128 · python/cpython
-
-
Notifications
You must be signed in to change notification settings - Fork 34.7k
Merged
Conversation
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.
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.
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
…-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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters