Skip to content

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

Merged
JelleZijlstra merged 4 commits into
python:mainfrom
slateny:s/os1
May 2, 2022
Merged

JelleZijlstra merged 4 commits into
python:mainfrom
slateny:s/os1

Conversation

@slateny

@slateny slateny commented Apr 24, 2022 •

Copy link
Copy Markdown
Contributor

#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
Comment thread Doc/library/os.rst Resolved
Comment thread Doc/library/os.rst Resolved
Comment thread Doc/library/os.rst Resolved
Comment thread Doc/library/os.rst Outdated
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
Copy Markdown
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).'

@miss-islington

Copy link
Copy Markdown
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

Copy link
Copy Markdown

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

@bedevere-bot

Copy link
Copy Markdown

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

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