]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Make Android streams respect the unbuffered (`-u`) option (#138806)
authorMalcolm Smith <smith@chaquo.com>
Thu, 18 Sep 2025 10:41:21 +0000 (11:41 +0100)
committerGitHub <noreply@github.com>
Thu, 18 Sep 2025 10:41:21 +0000 (11:41 +0100)
commit0ac377ff23672ae7e2451f4cdfbe37c4efd464e7
tree6d74b3cc630d5f26f895b756f4a757c374493554
parentdb68bfc771e6a85573732e0b579e8f68841c9b5c
Make Android streams respect the unbuffered (`-u`) option (#138806)

Android pipes stdout/stderr to the log, which means every write to the log
becomes a separate log line. As a result, most practical uses of stdout/stderr
should be buffered; but it doesn't hurt to preserve unbuffered handling in case
it's useful.
Lib/_android_support.py
Lib/test/test_android.py