[Python-Dev] PEP 324: popen5 - New POSIX process module

Donn Cave donn at drizzle.com
Sat Jan 3 23:39:08 EST 2004


Quoth "Martin v. Loewis" <martin at v.loewis.de>:
...
| Errors should never pass silently.

Which reminds me, this is a much stickier problem if you take
into account errors that happen _after_ the fork.

It can be highly useful to account for them, though.  In my
own process handling functions, I give myself the option, and
the function I nearly always use is the one that raises an
exception if the command exits with an error;  the value of
the error comes from unit 2 (a.k.a. stderr, though of course
not actually stderr since it would be foolish to use a file
object here instead of a file descriptor.)

I haven't looked at the proposed module, would suggest that it
be placed on a web page so people can do so conveniently.  In
my experience, attempts like this (including my own) tend to
founder on the inherent complexity of the problem, failing to
provide an interface that is simple and obvious enough to be
generally useful.

	Donn Cave, donn at drizzle.com



More information about the Python-list mailing list