Is it possible to switch into the context of a child-process, spawned by "subprocess" module?
Hi all. This is more of knowing whether something is possible in the core python architecture; hence the question to this mailing-list :) I have a situation where I am spawning a child process via "subprocess" module. This child process is equivalent to the process that would have been created, if I had run a vanilla python-script in another shell. In this (new) (child) process, new objects are instantiated, and methods get called on those objects as usual. Now, what I need is to somehow switch into this (new) (child) process from the current (parent) process, and be able to call methods-on-the-objects-of-the-child-process. Also, please note that since the child process contains GUI, I intend to have the results of calling the methods-on-the-objects-of-the-child-process being effective on the child-process GUI. Is it possible? Or am I trying to achieve something impossible as per python-core-architecture? I will be thankful for any pointers regarding this. Regards, Ajay
On 12/24/2012 2:57 AM, Ajay Garg wrote:
Hi all.
This is more of knowing whether something is possible in the core python architecture; hence the question to this mailing-list :)
The pydev list is for discussion of development of future Python, not for how to use current Python. Usage questions should go to python-list or other forums. (I am 99.99% sure the answer to this one is no.) -- Terry Jan Reedy
El dic 24, 2012 4:59 a.m., "Ajay Garg"
Hi all.
This is more of knowing whether something is possible in the core python
architecture; hence the question to this mailing-list :)
I have a situation where I am spawning a child process via "subprocess"
This child process is equivalent to the process that would have been created, if I had run a vanilla python-script in another shell.
In this (new) (child) process, new objects are instantiated, and methods get called on those objects as usual.
Now, what I need is to somehow switch into this (new) (child) process from the current (parent) process, and be able to call methods-on-the-objects-of-the-child-process. Also, please note that since the child process contains GUI, I intend to have the results of calling the methods-on-the-objects-of-the-child-process being effective on the child-process GUI.
Is it possible? Or am I trying to achieve something impossible as per
module. python-core-architecture?
Hint: xmlrpclib. And that should be the end of this thread. Regards
I will be thankful for any pointers regarding this.
Regards, Ajay
_______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe:
http://mail.python.org/mailman/options/python-dev/joaquinsargiotto%40gmail.c...
Terry, Sorry; and thanks for the info. Joaquin, Thanks for the pointer; I will investigate :) On Mon, Dec 24, 2012 at 7:56 PM, Joaquin Sargiotto < joaquinsargiotto@gmail.com> wrote:
El dic 24, 2012 4:59 a.m., "Ajay Garg"
escribió: Hi all.
This is more of knowing whether something is possible in the core python
architecture; hence the question to this mailing-list :)
I have a situation where I am spawning a child process via "subprocess"
This child process is equivalent to the process that would have been created, if I had run a vanilla python-script in another shell.
In this (new) (child) process, new objects are instantiated, and methods get called on those objects as usual.
Now, what I need is to somehow switch into this (new) (child) process from the current (parent) process, and be able to call methods-on-the-objects-of-the-child-process. Also, please note that since the child process contains GUI, I intend to have the results of calling the methods-on-the-objects-of-the-child-process being effective on the child-process GUI.
Is it possible? Or am I trying to achieve something impossible as per
module. python-core-architecture?
Hint: xmlrpclib.
And that should be the end of this thread.
Regards
I will be thankful for any pointers regarding this.
Regards, Ajay
_______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe:
http://mail.python.org/mailman/options/python-dev/joaquinsargiotto%40gmail.c...
-- Regards, Ajay
participants (3)
-
Ajay Garg
-
Joaquin Sargiotto
-
Terry Reedy