[issue41406] BufferedReader causes Popen.communicate losing the remaining output.

2020-07-27 Thread Grégory Starck
Grégory Starck added the comment: also affecting 3.6 -- nosy: +g.sta...@gmail.com versions: +Python 3.6 ___ Python tracker ___ ___

[issue41406] BufferedReader causes Popen.communicate losing the remaining output.

2020-07-27 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41406] BufferedReader causes Popen.communicate losing the remaining output.

2020-07-27 Thread Frost Ming
Change by Frost Ming : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41406] BufferedReader causes Popen.communicate losing the remaining output.

2020-07-27 Thread Frost Ming
New submission from Frost Ming : The following snippet behaves differently between Windows and POSIX. import subprocess import time p = subprocess.Popen("ls -l", shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) print(p.stdout.read(1)) # read 1 byte print(p.communicate())#