Change vars in the parent process

Steve Holden steve at holdenweb.com
Tue Dec 21 09:38:25 EST 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.

regards
  Steve
-- 
Steve Holden               http://www.holdenweb.com/
Python Web Programming  http://pydish.holdenweb.com/
Holden Web LLC      +1 703 861 4237  +1 800 494 3119



More information about the Python-list mailing list