[Tutor] subprocess.Popen basics

Adam Jensen hanzer at riseup.net
Mon Oct 27 22:26:27 CET 2014


On 10/27/2014 03:40 PM, David Abbott wrote:
>> It hangs at the print statement and, from the sound of the fans in the
>> computer, I suspect it spirals off into an infinite loop somewhere /
>> somehow. Does anyone have any ideas about what it is that I might be
>> misunderstanding?
> 
> Works here.
> 
> david at heater ~/python_practice $ ./subprocess_pipe.py
> Parrot said:  Squawk: Pushing up daisies.
> 
> david at heater ~/python_practice $ python
> Python 3.3.5 (default, Oct  2 2014, 07:55:01)
> [GCC 4.7.3] on linux
> Type "help", "copyright", "credits" or "license" for more information.
>>>> quit()
> 

It works on OpenBSD.

Python 3.3.2 (default, Mar  4 2014, 09:37:25)
[GCC 4.2.1 20070719 ] on openbsd5

$ ./subprocess_pipe.py
Parrot said:  Squawk: Pushing up daisies.

Thanks for the sanity check, David. I guess there is something wrong
with my python3 build on CentOS.


More information about the Tutor mailing list