[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

Retreiving objects from other processes

Natan Yellin

2/6/2008 11:22:00 AM

Hello,
Sorry if this is a stupid question... I have some experience with C
but very little with Python.
I'd like to have one python program retrieve a reference or copy of an
object from another python process on the same computer. I know I can
use RPyC, but that seems like overkill. Is there simpler way of doing
it?
Thanks in advance,
Natan
1 Answer

Diez B. Roggisch

2/6/2008 11:35:00 AM

0

Natan Yellin wrote:

> Hello,
> Sorry if this is a stupid question... I have some experience with C
> but very little with Python.
> I'd like to have one python program retrieve a reference or copy of an
> object from another python process on the same computer. I know I can
> use RPyC, but that seems like overkill. Is there simpler way of doing
> it?

I don't know RPyC, but Pyro seems what you need/use. It's really simple to
use. But RPC without a bit of boilerplate isn't possible, so you will need
a dozen lines of code or so.

Diez