[Python-ideas] Suprocess functionality partitioning
Richard Oudkerk
shibturn at gmail.com
Thu Jun 13 12:53:30 CEST 2013
On 13/06/2013 2:59am, Andrew Barnert wrote:
>> shell=False, isinstance(args, list) ==> works normally
>
> Except that on Windows it has to build a string out of your args,
> attempting to craft the right string that the child will then parse
> back into the specified args. Which _usually_ works, but when you
> start doing complicated things with quoting it doesn't.
I was under the impression that this worked correctly (for executables
compiled with Visual C which just use argv [1]). But os.spawnv() is a
total mess where you *do* need to worry about quoting.
[1] Nowadays other C compilers use the same rules. But I think cmd may
use different rules.
--
Richard
More information about the Python-ideas
mailing list