[Tutor] Turning multiple Popen calls into a function

Alan Gauld alan.gauld at btinternet.com
Thu Nov 1 23:04:53 CET 2007


"Eric Brunson" <brunson at brunson.com> wrote 

>        last = Popen( command,
>                      stdin=last.stdout if last else None,
>                      stdout=PIPE )

Where does the if/else syntax come from? It doesn't 
seem to work on my Python 2.4. Is it a new feature in 2.5?

Alan G.



More information about the Tutor mailing list