[Python-Dev] Handling of sys.args (Re: User's complaints)

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Jul 14 07:09:40 CEST 2006

Nick Maclaren wrote:
> On systems that are not Unix-derived (which, nowadays, are rare),
> there is commonly no such thing as a program name in the first place.
> It is possible to get into that state on some Unices - i.e. ones which
> have a form of exec that takes a file descriptor, inode number or
> whatever.

I don't think that applies to the Python args[] though,
since its args[0] isn't the path of the OS-level
executable, it's the path of the main Python script.

But you could still end up without one, if the main
script comes from somewhere other than a file.


More information about the Python-Dev mailing list