Author csernazs
Recipients Alexander.Belopolsky, Christophe Simonis, brian.curtin, csernazs, eric.smith, larry, r.david.murray
Date 2010-06-08.13:30:26
SpamBayes Score 0.00893955
Marked as misclassified No
Message-id <1276003828.03.0.06057422021.issue7839@psf.upfronthosting.co.za>
In-reply-to
Content
I would say that both string and list should be accepted in args, and depending on the shell parameter, the module should create a list or a string from the specified list/string.

We already have a list2cmdline function to convert a list to string, we would only need to create the inverse of this function to convert a string to a list.

Executing a program whose parameters are coming from external source (eg. user input) can result security problems if those are not specified as a list and in this case I would be really happy to specify my parameters as a list to Popen and it would do the appropriate conversions as above.
History
Date User Action Args
2010-06-08 13:30:28csernazssetrecipients: + csernazs, larry, eric.smith, Christophe Simonis, r.david.murray, brian.curtin, Alexander.Belopolsky
2010-06-08 13:30:28csernazssetmessageid: <1276003828.03.0.06057422021.issue7839@psf.upfronthosting.co.za>
2010-06-08 13:30:26csernazslinkissue7839 messages
2010-06-08 13:30:26csernazscreate