Change vars in the parent process

Steve Holden steve at
Tue Dec 21 15:38:25 CET 2004

Markus Franz wrote:

> Hi!
> Is there any possibility to change vars inside a parent process from
> the inside of a child process?
> Thanks

Not without adopting some specific inter-process mechanism such as a 
network socket. The idea is that processes are *intended* to provide 
protection boundaries around separate activities.

Maybe what you need is threads, which can easily access each other's 
resources. They do need careful control, though, precisely because they 
share a single process's address space and protection boundary.

Steve Holden     
Python Web Programming
Holden Web LLC      +1 703 861 4237  +1 800 494 3119

More information about the Python-list mailing list