Arguments to exec* functions.

Erik Max Francis max at alcyone.com
Mon Nov 13 20:08:48 EST 2000


Neil Cerutti wrote:

> Fredrik Lundh says it follows the POSIX standard; that explains
> the semantics of argv, but it doesn't explain why the os module
> wraps it this way. Is it often useful to run a process and lie to
> it about its own name?

The reason is because that's what the POSIX standard says.  It doesn't
make much sense to _hide_ functionality from a well-defined standard
that you're supporting, even if it doesn't seem all that directly
useful.  Also, consistency with a widespread API is never a bad thing.

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/  \ Cynicism is an unpleasant way of saying the truth.
\__/ Lillian Hellman
    The laws list / http://www.alcyone.com/max/physics/laws/
 Laws, rules, principles, effects, paradoxes, etc. in physics.



More information about the Python-list mailing list