Edward Pratt <epratt8...@gmail.com> added the comment: You are correct. It works as expected outside of the REPL.
> On Oct 24, 2018, at 4:34 PM, Stéphane Wirtel <rep...@bugs.python.org> wrote: > > > Stéphane Wirtel <steph...@wirtel.be> added the comment: > > My script: > > #!/usr/bin/env python > import pathlib > import subprocess > > output = subprocess.check_output(['ps', 'aux']) > pathlib.Path('/tmp/ps_aux.txt').write_bytes(output) > > > When I execute the following script in the REPL, I get your issue but for me, > it's normal because the REPL is running in a terminal with a limited size. > > And when I execute the same script like as a simple python script, I don't > have your issue. > > ---------- > status: closed -> open > > _______________________________________ > Python tracker <rep...@bugs.python.org> > <https://bugs.python.org/issue35060> > _______________________________________ ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue35060> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com