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

gh-85133: Add that getenv uses os.environ #91874

Merged
merged 4 commits into from
May 2, 2022
Merged

Conversation

slateny
Copy link
Contributor

@slateny slateny commented Apr 24, 2022

#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

@bedevere-bot bedevere-bot added docs Documentation in the Doc dir awaiting review labels Apr 24, 2022
Doc/library/os.rst Outdated Show resolved Hide resolved
Doc/library/os.rst Show resolved Hide resolved
Doc/library/os.rst Outdated Show resolved Hide resolved
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.
Copy link
Contributor Author

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).'

@JelleZijlstra JelleZijlstra added needs backport to 3.9 only security fixes needs backport to 3.10 only security fixes labels May 2, 2022
@JelleZijlstra JelleZijlstra merged commit b25352a into python:main May 2, 2022
@miss-islington
Copy link
Contributor

Thanks @slateny for the PR, and @JelleZijlstra for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9, 3.10.
🐍🍒⛏🤖

@bedevere-bot bedevere-bot removed the needs backport to 3.10 only security fixes label May 2, 2022
@bedevere-bot
Copy link

GH-92145 is a backport of this pull request to the 3.10 branch.

@bedevere-bot
Copy link

GH-92146 is a backport of this pull request to the 3.9 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.9 only security fixes label May 2, 2022
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 2, 2022
)

Co-authored-by: Jelle Zijlstra <[email protected]>
(cherry picked from commit b25352a)

Co-authored-by: slateny <[email protected]>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 2, 2022
)

Co-authored-by: Jelle Zijlstra <[email protected]>
(cherry picked from commit b25352a)

Co-authored-by: slateny <[email protected]>
miss-islington added a commit that referenced this pull request May 2, 2022
Co-authored-by: Jelle Zijlstra <[email protected]>
(cherry picked from commit b25352a)

Co-authored-by: slateny <[email protected]>
miss-islington added a commit that referenced this pull request May 2, 2022
Co-authored-by: Jelle Zijlstra <[email protected]>
(cherry picked from commit b25352a)

Co-authored-by: slateny <[email protected]>
@slateny slateny deleted the s/os1 branch May 4, 2022 01:49
hello-adam pushed a commit to hello-adam/cpython that referenced this pull request Jun 2, 2022
)

Co-authored-by: Jelle Zijlstra <[email protected]>
(cherry picked from commit b25352a)

Co-authored-by: slateny <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants