Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Change vars in the parent process

Reply
Thread Tools

Change vars in the parent process

 
 
Markus Franz
Guest
Posts: n/a
 
      12-21-2004
Hi!


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


Markus
 
Reply With Quote
 
 
 
 
Thomas Guettler
Guest
Posts: n/a
 
      12-21-2004
Am Tue, 21 Dec 2004 06:20:09 -0800 schrieb Markus Franz:

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


Hi,

No, that's impossible. At least on unix.

Thomas


--
Thomas Güttler, http://www.thomas-guettler.de/


 
Reply With Quote
 
 
 
 
Steve Holden
Guest
Posts: n/a
 
      12-21-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
 
Reply With Quote
 
Cameron Laird
Guest
Posts: n/a
 
      12-21-2004
In article <>,
Thomas Guettler <> wrote:
>Am Tue, 21 Dec 2004 06:20:09 -0800 schrieb Markus Franz:
>
>> Hi!
>>
>>
>> Is there any possibility to change vars inside a parent process from
>> the inside of a child process?
>> Thanks

>
>Hi,
>
>No, that's impossible. At least on unix.

.
.
.
I've started to outline a slightly longer version of an entirely
homologous answer at <URL:
http://phaseit.net/claird/comp.unix....rectories.html >.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Use self.vars in class.method(parameters, self.vars) caccolangrifata Python 18 07-22-2011 10:22 PM
If a class Child inherits from Parent, how to implementChild.some_method if Parent.some_method() returns Parent instance ? metal Python 8 10-30-2009 10:31 AM
How do I declare global vars or class vars in Python ? Linuxguy123 Python 7 02-20-2009 06:45 PM
a simple program to illustrate that child process does not shareresources with parent process sree.harsha.sn@gmail.com C Programming 4 11-09-2008 03:59 AM
app vars and cache vars Jon ASP .Net 3 12-14-2004 08:52 PM



Advertisments