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

Gabriel Rossetti gabriel.rossetti at arimaz.com
Wed Apr 14 05:33:07 EDT 2010


Paul Rubin wrote:
> 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.
>   

Yes, but I wasn't able to marshal/unmarshal them correctly as shown in 
my examples



More information about the Python-list mailing list