Author eric.smith
Recipients benjamin.peterson, brian.curtin, cvrebert, eric.smith, georg.brandl, ncoghlan, pitrou, r.david.murray, terry.reedy
Date 2010-02-02.13:56:05
SpamBayes Score 6.72881e-07
Marked as misclassified No
Message-id <1265118966.56.0.45726451087.issue6760@psf.upfronthosting.co.za>
In-reply-to
Content
From David's patch:

   Note in particular that options and their arguments go in separate list
   elements, while arguments that need quoting when used in the shell
   (such as filenames containing spaces or the python command shown
   above) are single list elements.

It's not always true that options and their arguments should be in separate elements. For example:
['/bin/ls', '-l',  '--block-size=1024']
I understand the sentiment, but if we're trying to give guidance that people can follow without understanding the underlying issue, then they should be correct all the time.

Also, the code snippet includes subprocess without using it.
History
Date User Action Args
2010-02-02 13:56:06eric.smithsetrecipients: + eric.smith, georg.brandl, terry.reedy, ncoghlan, pitrou, benjamin.peterson, r.david.murray, brian.curtin, cvrebert
2010-02-02 13:56:06eric.smithsetmessageid: <1265118966.56.0.45726451087.issue6760@psf.upfronthosting.co.za>
2010-02-02 13:56:05eric.smithlinkissue6760 messages
2010-02-02 13:56:05eric.smithcreate