[Yum-devel] [RFC] Split yum into separate processes
David Malcolm
dmalcolm at redhat.com
Thu Sep 23 16:14:58 UTC 2010
On Thu, 2010-09-23 at 14:18 +0200, FlorianFesti wrote:
> On 09/21/2010 07:09 AM, Tim Lauridsen wrote:
> > I had the same issue in yumex, wanting to send and receive move
> > complex stuff over stdout / stdin.
> > i used a combination of pickle and base64 encoding using the following
> > helpers to pack and uppack the
> > stuff i need to transfer.
> XMLPRC might be worth having a look at. While it needs a network socket
> it is pretty well integrated into Python. You can move a Python object
> to a remote server without the code using it even noticing (as long as
> you only pass simple types). I wonder if there is a module for doing the
> same via stdin and stdout.
Not sure if I missed something earlier in the discussion, but have you
looked at the Python stdlib's "multiprocessing" module?
http://docs.python.org/library/multiprocessing.html
This does much of the low-level work for you.
Hope this is helpful
Dave
More information about the Yum-devel
mailing list