Re: 【Regarding Performance of a Python Script....】

2020-03-01 Thread Cameron Simpson
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

Re: 【Regarding Performance of a Python Script....】

2020-02-29 Thread Peter J. Holzer
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

【Regarding Performance of a Python Script....】

2020-02-28 Thread Kenzi
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