[Twisted-Python] Windows <strike>i hate it</strike> Process API
radix at twistedmatrix.com
Wed Apr 9 06:30:19 EDT 2003
On Wed, Apr 09, 2003 at 01:50:02PM +0300, Tommi Virtanen wrote:
> On Mon, Apr 07, 2003 at 10:49:19PM -0400, Christopher Armstrong wrote:
> > * Perhaps make the string "command-line" API available on
> > PosixProcess as well, so people can use either the string or the
> > sequence API and expect at least some bit of cross-platformness (but
> > I'm fine with telling people to just use the sequence API if others
> > don't like this, especially considering this either requires
> > calling out to a shell (gah), or doing some unfun argument-splitting.)
> Oh god please no.
> system(3) and its ilk must die. No exceptions allowed. Never
> concatenate arguments on UNIX.
If you'll re-read what you quoted of me, you'll see that I was
proposing auto-splitting of the arguments, not passing the thing to a
shell. Concatenating is only required in win32; we've already _got_
the arguments in a list (or as my proposal went, in a single string)
from the high-level API.
But you're right about it being a bad idea :) I've decided (in absense
of any others' opinions) to just do auto-quoting-with-a-warning in
Twisted | Christopher Armstrong: International Man of Twistery
Radix | Release Manager, Twisted Project
More information about the Twisted-Python