Re: Problem with an OrderedDict

Irmen de Jong <[email protected]> Tue, 03 Mar 2015 22:10:55 +0100
Newsgroups gmane.comp.python.pyro
Message-ID <[email protected]>
On 3-3-2015 2:20, Kenneth Martin wrote:
> I hope I'm not showing my inexperience, and I'm not very familiar with 
> serpent, but if you just need a serializer for OrderedDict, could yaml 
> be a possibility? It does handle OrderedDict (as is seen if you cut and 
> paste the following into a file). The serialized object is ascii, so it 
> might not be that efficient. If I have completely misunderstood the 
> issue, please just ignore.

This may work, but note that you have to explicitly serialize the object yourself in
yaml before transferring it through Pyro.
And you'll have to explictly deserialize it from yaml in your own client code on the
receiving end.

When you add custom class serializer hooks to Pyro/serpent you don't have to do this.

Irmen


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/