Marshal vs pickle...

L

Lawson English

Marshalling is only briefly mentioned in most python books I have, and
"pickling" is declared teh preferred method for serialization.

I read somewhere that Marshalling is version-dependent while pickling is
not, but can't find that reference. OTOH, pickling can lead to loading
of malicious code (I understand) while marshalling only handles basic
Python types?


Could anyone point me to a reasonable discussion of the pros and cons of
each method for serialization?


Thanks.


Lawson
 
P

Paul Rubin

Lawson English said:
I read somewhere that Marshalling is version-dependent while pickling
is not, but can't find that reference.

It is in the python library docs for the marshal module.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,292
Messages
2,571,494
Members
48,171
Latest member
EllaHolmwo

Latest Threads

Top