Picloud's pickler and mobile code (was: Getting rid of pickle as serialization protocol)

Steve Traugott <[email protected]>
Newsgroups gmane.comp.python.pyro
Message-ID <CAF1y4Zs02GZ41cOcy7LGbXm_b6ymWDHSWC2isdMfGr5qKDGb5w@mail.gmail.com>
Irmen de Jong <irmen@ra...> - 2013-04-25 23:47 wrote:
> I'm close to finalizing a rather big change in Pyro4: the support for multiple serialization protocols.

This is great news!  Does this multiple serialization support you have
in mind also encompass the serialization of mobile code?  Not being a
current Pyro user, I can't tell for sure what level of mobile code
Pyro currently supports; I can see that support for it has been a pain
point in the past.  I was about to subscribe to pyro-core so I could
ask about offloading Pyro support for mobile code to Picloud's
pickler.  Google isn't showing me if you've discussed that pickler
before, but if you haven't, I can tell you from usage experience that
Picloud maintains a good general purpose pure-python code pickler, and
its use could get Pyro out of the business of having to maintain one.

Here's a synopsis of how the picloud pickler works:

$ pip install cloud

import cloud, pickle
def foo(x):
    return x*3
def bar(z):
    return foo(z)+1
x = cloud.serialization.cloudpickle.dumps(bar)
del foo
del bar
f = pickle.loads(x)
print f(3)  # displays "10"

See http://stackoverflow.com/a/16891169/1264797 for a little more detail.

Steve

------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.