Re: Problem with an OrderedDict
Irmen de Jong <[email protected]> Mon, 2 Mar 2015 21:23:27 +0100
| Newsgroups | gmane.comp.python.pyro |
|---|---|
| Message-ID | <[email protected]> |
> However, my first tests used a Storage() (modified dict shamelessy > stolen from Massimo Di Piero's web2py - see attachment) that was > combined with lists. Unfortunately, it returns to a regular dict > when serz/deserz by serpent. You can add a custom serializer/deserializer hook to get a Storage() object back. You can do the same for an OrderedDict. (but I still think just converting it to and from an item list is easier). 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/