Object serialization: transfer from a to b (non-implemented code on b)

Paul Rubin no.email at nospam.invalid
Wed Apr 14 10:43:29 CEST 2010


Gabriel Rossetti <gabriel.rossetti at arimaz.com> writes:
> I am trying to serialize a function, class, etc and transfer it

You mean the actual code?  You have to use marshal rather than pickle,
the Python versions have to be the same at both ends, and you better
have some kind of authenticated transport to stop malicious code from
getting accepted and run by the receiving end.



More information about the Python-list mailing list