[Tutor] Turning multiple Popen calls into a function

Alan Gauld alan.gauld at btinternet.com
Thu Nov 1 19:46:57 CET 2007

"jay" <titleistfour at gmail.com> wrote

> I'm a little stumped as to how to handle the variables.  If I have 
> an
> arbitrary number of PIPES, how do I declare my variables (p1, p2, 
> p3,
> etc...) ahead of time in the function??

How about passing a list of pipes?
Then you can access them as pipes[0],pipes[1], etc?


Alan G 

More information about the Tutor mailing list