[Python-Dev] subprocess insufficiently platform-independent?

Barry Warsaw barry at python.org
Mon Aug 25 19:36:45 CEST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Aug 25, 2008, at 1:33 PM, Oleg Broytmann wrote:

> On Mon, Aug 25, 2008 at 01:30:58PM -0400, Barry Warsaw wrote:
>> Unless I'm misremembering (I no longer have access to Windows), I
>> believe that if you use ' '.join(cmd) as the first argument, it will
>> work cross-platform.
>
>   What about arguments that contain spaces?

Oh sure, throw a monkey wrench into it <wink>.

Guido's original problem statement is still correct though.  It's  
advertised to take a sequence of arguments, so that should work.

- -Barry

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)

iQCVAwUBSLLtr3EjvBPtnXfVAQKJpgP/TPmVgsRdRiAE+jvZOCl9unHWU6LtLSx/
uU3gIkQfvPYcyv9oUS0mcTwWsRDCeP42foQxP+MgX2Zx1ItQPi8/QDbW2bS809pF
q8igObharc0kSokhTw2zrkNXsEx3S+epPJXaiueY2cs9jC4mCvXnlnt67ZtWEc8r
r+eNLlI2/eo=
=SfRl
-----END PGP SIGNATURE-----


More information about the Python-Dev mailing list