-
-
Notifications
You must be signed in to change notification settings - Fork 32k
gh-85133: Add that getenv uses os.environ #91874
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
Conversation
Co-authored-by: Jelle Zijlstra <[email protected]>
of ``os.environ``. This also applies to :func:`getenv` and :func:`getenvb`, which uses | ||
``os.environ`` in its implementation. | ||
of ``os.environ``. This also applies to :func:`getenv` and :func:`getenvb`, which | ||
respectively use ``os.environ`` and ``os.environb`` in their implementations. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alternative wording can be something like
'This also applies to getenv, which uses os.environ in its implementation (and likewise for getenvb and environb).'
Thanks @slateny for the PR, and @JelleZijlstra for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9, 3.10. |
GH-92145 is a backport of this pull request to the 3.10 branch. |
GH-92146 is a backport of this pull request to the 3.9 branch. |
) Co-authored-by: Jelle Zijlstra <[email protected]> (cherry picked from commit b25352a) Co-authored-by: slateny <[email protected]>
) Co-authored-by: Jelle Zijlstra <[email protected]> (cherry picked from commit b25352a) Co-authored-by: slateny <[email protected]>
Co-authored-by: Jelle Zijlstra <[email protected]> (cherry picked from commit b25352a) Co-authored-by: slateny <[email protected]>
Co-authored-by: Jelle Zijlstra <[email protected]> (cherry picked from commit b25352a) Co-authored-by: slateny <[email protected]>
) Co-authored-by: Jelle Zijlstra <[email protected]> (cherry picked from commit b25352a) Co-authored-by: slateny <[email protected]>
#85133
https://docs.python.org/3/library/os.html
While implementation details seem to be generally avoided in docs, I feel that in this case it's important to be explicit to avoid being possibly misleading
The linked issue also mentions thread safety, but I believe that might be discussed here instead