On 28Feb2020 19:24, Kenzi wrote:
I have a question regarding a simple code snippet in Python:
from subprocess import check_output
for i in range(1024):
check_output(['/bin/bash', '-c', 'echo 42'], close_fds=True)
*I wonder why running it in Python 3.7 is much faster than Python 2.7? *
(Pyth
On 2020-02-28 19:24:18 -0500, Kenzi wrote:
> I have a question regarding a simple code snippet in Python:
>
> from subprocess import check_output
> for i in range(1024):
> check_output(['/bin/bash', '-c', 'echo 42'], close_fds=True)
>
> *I wonder why running it in Python 3.7 is much faster t
Hello there,
I have a question regarding a simple code snippet in Python:
from subprocess import check_output
for i in range(1024):
check_output(['/bin/bash', '-c', 'echo 42'], close_fds=True)
*I wonder why running it in Python 3.7 is much faster than Python 2.7? *
(Python 3.7 is still fast