This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author epsolos
Recipients epsolos, eryksun, matrixise
Date 2018-10-24.20:38:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <6166A6FD-2656-4BEC-88E7-8BAF3B994A8D@gmail.com>
In-reply-to <1540413267.35.0.788709270274.issue35060@psf.upfronthosting.co.za>
Content
You are correct. It works as expected outside of the REPL.

> On Oct 24, 2018, at 4:34 PM, Stéphane Wirtel <report@bugs.python.org> wrote:
> 
> 
> Stéphane Wirtel <stephane@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 <report@bugs.python.org>
> <https://bugs.python.org/issue35060>
> _______________________________________
History
Date User Action Args
2018-10-24 20:38:09epsolossetrecipients: + epsolos, eryksun, matrixise
2018-10-24 20:38:09epsoloslinkissue35060 messages
2018-10-24 20:38:09epsoloscreate