Skip to content

bpo-36686: Improve the documentation of the std* params in loop.subprocess_exec#13586

Merged
miss-islington merged 7 commits into
python:masterfrom
sbstp:asyncio-subprocess-std
May 27, 2019
Merged

bpo-36686: Improve the documentation of the std* params in loop.subprocess_exec#13586
miss-islington merged 7 commits into
python:masterfrom
sbstp:asyncio-subprocess-std

Conversation

@sbstp

@sbstp sbstp commented May 26, 2019

Copy link
Copy Markdown
Contributor

@sbstp
sbstp requested review from 1st1 and asvetlov as code owners May 26, 2019 19:16
@bedevere-bot bedevere-bot added docs Documentation in the Doc dir awaiting review labels May 26, 2019

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

The PR is for documentation update, that's nice.
base_events.py in subprocess_exec and subprocess_shell explicitly forbids non-default universal_newlines, shell and bufsize.
It would be nice if text, encoding and errors arguments are explicitly forbidden too by code

Comment thread Doc/library/asyncio-eventloop.rst Outdated
@bedevere-bot

Copy link
Copy Markdown

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@sbstp

sbstp commented May 26, 2019

Copy link
Copy Markdown
Contributor Author

It would be nice if text, encoding and errors arguments are explicitly forbidden too by code

I don't mind writing the code for that, but it seems like there's a chance it will cause breakage if some programs used those params.

@sbstp
sbstp requested a review from gpshead as a code owner May 27, 2019 01:35
@1st1

1st1 commented May 27, 2019

Copy link
Copy Markdown
Member

Please use blurb to generate a NEWS entry.

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

Almost perfect! Please fix last nits

Comment thread Lib/asyncio/base_events.py Outdated
Comment thread Lib/asyncio/base_events.py Outdated
@bedevere-bot

Copy link
Copy Markdown

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@sbstp

sbstp commented May 27, 2019

Copy link
Copy Markdown
Contributor Author

I have made the requested changes; please review again. :)

@bedevere-bot

Copy link
Copy Markdown

Thanks for making the requested changes!

@asvetlov, @1st1: please review the changes made to this pull request.

Comment thread Lib/asyncio/base_events.py Outdated
Comment thread Lib/asyncio/base_events.py Outdated
Comment thread Lib/asyncio/base_events.py Outdated
Comment thread Lib/asyncio/base_events.py Outdated

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

Please use suggested strict checks to distinguish, e.g. empty string from None.
I know that empty string for errors is invalid currently but still...

@bedevere-bot

Copy link
Copy Markdown

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

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

Thanks!

@miss-islington

Copy link
Copy Markdown
Contributor

@sbstp: Status check is done, and it's a success ✅ .

@miss-islington
miss-islington merged commit f0d4c64 into python:master May 27, 2019
@sbstp
sbstp deleted the asyncio-subprocess-std branch May 28, 2019 00:13
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants