8000 gh-85133: Add that getenv uses os.environ by slateny · Pull Request #91874 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

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
slateny and others added 3 commits May 1, 2022 20:34
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).'

@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.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 2, 2022
)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit b25352a)

Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 2, 2022
)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit b25352a)

Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
miss-islington added a commit that referenced this pull request May 2, 2022
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit b25352a)

Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
miss-islington added a commit that referenced this pull request May 2, 2022
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit b25352a)

Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
@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 <jelle.zijlstra@gmail.com>
(cherry picked from commit b25352a)

Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
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

0