Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 418 by [email protected]: Python message objects are unpickleable
http://code.google.com/p/protobuf/issues/detail?id=418
What steps will reproduce the problem?
1. Run the following
import pickle
from something_pb2 import AProtobufMessage
m = AProtobufMessage()
pickle.dump(m)
What is the expected output? What do you see instead?
The message is unpickleable.
Please use labels and text to provide additional information.
Pickle used by many python libraries for IPC, and not rewriting those
libraries is a good thing. Also, supporting pickle is as simple as adding
__getstate__ and __setstate__. The fork below accomplishes this goal:
https://github.com/Livefyre/protobuf/commit/2938cde2b7b15225fee85eac21a5cbb4c885ba18
--
You received this message because you are subscribed to the Google Groups "Protocol
Buffers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/protobuf?hl=en.