]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-83925: Make asyncio.subprocess communicate similar to non-asyncio (#18650)
authorMarek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Fri, 28 Apr 2023 00:30:26 +0000 (20:30 -0400)
committerGitHub <noreply@github.com>
Fri, 28 Apr 2023 00:30:26 +0000 (17:30 -0700)
commit67d140dba72dc2cb661d55878384464de46719e7
treef9459ce8747f0910eb8e62c9c175801378e3175f
parent424a785a07049924603228b153f746cfe3a983a2
gh-83925: Make asyncio.subprocess communicate similar to non-asyncio (#18650)

subprocess's communicate(None) closes stdin of the child process, after
sending no (extra) data. Make asyncio variant do the same.
This fixes issues with processes that waits for EOF on stdin before
continuing.
Doc/library/asyncio-subprocess.rst
Lib/asyncio/subprocess.py
Lib/test/test_asyncio/test_subprocess.py
Misc/NEWS.d/next/Library/2020-02-25-00-43-22.bpo-39744.hgK689.rst [new file with mode: 0644]