Skip to content

bpo-39759: fixed os.getenv docs - #18668

Closed
dorosch wants to merge 3 commits into
python:mainfrom
dorosch:bpo-39759-os-getenv-docs
Closed

bpo-39759: fixed os.getenv docs#18668
dorosch wants to merge 3 commits into
python:mainfrom
dorosch:bpo-39759-os-getenv-docs

Conversation

@dorosch

@dorosch dorosch commented Feb 26, 2020

Copy link
Copy Markdown
Contributor

Comment thread Doc/library/os.rst Outdated

@remilapeyre remilapeyre left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks!

@serhiy-storchaka serhiy-storchaka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix also the documentation for getenvb.

@slateny

slateny commented Sep 26, 2022

Copy link
Copy Markdown
Contributor

@dorosch Would you still be interested in updating this PR per Serhiy's comment?

@serhiy-storchaka

Copy link
Copy Markdown
Member

The proposed change removes a useful information: that the result is a string if the key is found (and it is a bytes object in os.getenvv()). This information should be preserved.

Also, the docstrings say the same as the documentation, so it should be updated correspondingly.

@slateny

slateny commented Oct 2, 2022

Copy link
Copy Markdown
Contributor

Will start on a new PR here then, let me know if you'd still like to work on this one.

@slateny

slateny commented Oct 9, 2022

Copy link
Copy Markdown
Contributor

See #98113

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting core review docs Documentation in the Doc dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants