Is there anything that pickle + copy_reg cannot serialize?

M

Maurice LING

Hi,

I need to look into serialization for python objects, including codes,
recursive types etc etc. Currently, I have no idea exactly what needs to
be serialized, so my scope is to be as wide as possible.

I understand that marshal is extended by pickle to serialize class
instances, shared elements, and recursive data structures
(http://www.effbot.org/librarybook/pickle.htm) but cannot handle code
types. pickle can be used together with copy_reg and marshal to
serialize code types as well
(http://www.effbot.org/librarybook/copy-reg.htm).

So my question will be, are there anything that pickle/copy_reg/marshal
combination cannot serialize? If so, what are the workarounds?

Thanks
Maurice
 

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
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top