Topic: Transfer object beetwen two python programs

Hi,

Please, tell me. Is it any possible to share one object beetwen two python programs? I have got a application where i call suprocess with follwoing command [pytohn, someScript.py]. I need transfer instance of one objcet from appliactione which execute process to another program (script which is launched inside the subprocess).

How can use the same object in two diffrent programs? So far i used xmlrpc to communicate. But i looking for another option too. Is it a possible?

Can I get object from a string? For example:
str_object = str(object)
It is a possible get instance of object from str_object? (cast string to object)

Thumbs up

Re: Transfer object beetwen two python programs

wiki. serialization
try pickle

Thumbs up