Message328392
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>
> _______________________________________ |
|
Date |
User |
Action |
Args |
2018-10-24 20:38:09 | epsolos | set | recipients:
+ epsolos, eryksun, matrixise |
2018-10-24 20:38:09 | epsolos | link | issue35060 messages |
2018-10-24 20:38:09 | epsolos | create | |
|