Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 33.9k
gh-87597: Document TimeoutExpired.stdout & .stderr types.#97685
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-87597: Document TimeoutExpired.stdout & .stderr types. #97685
Uh oh!
There was an error while loading. Please reload this page.
Conversation
gpshead commented Sep 30, 2022 • edited by bedevere-bot
Loading Uh oh!
There was an error while loading. Please reload this page.
edited by bedevere-bot
Uh oh!
There was an error while loading. Please reload this page.
This documents the behavior that has always been the case since timeout support was introduced in Python 3.3.
That is is None even when people ask to capture output but the process generated no output is a long standing API wart.
miss-islington commented Sep 30, 2022
Thanks @gpshead for the PR 🌮🎉.. I'm working now to backport this PR to: 3.9, 3.10, 3.11. |
bedevere-bot commented Sep 30, 2022
GH-97686 is a backport of this pull request to the 3.11 branch. |
bedevere-bot commented Sep 30, 2022
GH-97687 is a backport of this pull request to the 3.10 branch. |
…nGH-97685) This documents the behavior that has always been the case since timeout support was introduced in Python 3.3. (cherry picked from commit b05dd79) Co-authored-by: Gregory P. Smith <greg@krypto.org>
…nGH-97685) This documents the behavior that has always been the case since timeout support was introduced in Python 3.3. (cherry picked from commit b05dd79) Co-authored-by: Gregory P. Smith <greg@krypto.org>
bedevere-bot commented Sep 30, 2022
GH-97688 is a backport of this pull request to the 3.9 branch. |
…nGH-97685) This documents the behavior that has always been the case since timeout support was introduced in Python 3.3. (cherry picked from commit b05dd79) Co-authored-by: Gregory P. Smith <greg@krypto.org>
…n#97685) This documents the behavior that has always been the case since timeout support was introduced in Python 3.3.
See python/cpython#97685 Thinking we'll go off of mypy_primer to decide if the union type here is acceptable or not. I'd like us to be able to type this, since the values being bytes can be surprising if you pass text=True
See python/cpython#97685 The union type should be acceptable given python/cpython#87597 (comment). In general I'd like us to be able to type this, since these being bytes can be surprising if you pass text=True, but we'll see what mypy_primer says
Paro131 commented Dec 3, 2022
Thx |
This documents the behavior that has always been the case since timeout support was introduced in Python 3.3.