]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-141473: Fix subprocess.Popen.communicate to send input to stdin upon a...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 29 Nov 2025 06:21:43 +0000 (07:21 +0100)
committerGitHub <noreply@github.com>
Sat, 29 Nov 2025 06:21:43 +0000 (22:21 -0800)
commit476089479d53ff2f430938d3628ee7cdf6010952
tree5e901ed317dd589137f40f1141551e4dc7c5197d
parentc1d3e2523b9f85c21489accb3b193035d9d943f4
[3.14] gh-141473: Fix subprocess.Popen.communicate to send input to stdin upon a subsequent post-timeout call (GH-141477) (#142059)

gh-141473: Fix subprocess.Popen.communicate to send input to stdin upon a subsequent post-timeout call (GH-141477)

* gh-141473: Fix subprocess.Popen.communicate to send input to stdin
* Docs: Clarify that `input` is one time only on `communicate()`
* NEWS entry
* Add a regression test.

---------
(cherry picked from commit 526d7a8bb47bd8ff58c829c30384cd70cc5d0747)

Co-authored-by: Artur Jamro <artur.jamro@gmail.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Doc/library/subprocess.rst
Lib/subprocess.py
Lib/test/test_subprocess.py
Misc/NEWS.d/next/Library/2025-11-27-20-16-38.gh-issue-141473.Wq4xVN.rst [new file with mode: 0644]