Changing argv of the python process

Oleg Broytmann phd at phd.pp.ru
Thu Aug 16 03:33:01 EDT 2001


On Wed, 15 Aug 2001, Dave Cinege wrote:
> I searched various archives and it appears there is no provision to alter
> the actual argv[] strings of the python process. Has this not changed
> yet?
>
> I'm very surprised python has this (severe) limitation.

   It is not severe indeed.

> How does one exec a python program with a password on the cmdline?

   Of course NOT! Don't do it even if you can setproctitle - there is an
obvious race condition.

Oleg.
----
     Oleg Broytmann            http://phd.pp.ru/            phd at phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.





More information about the Python-list mailing list