471,310 Members | 1,443 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,310 software developers and data experts.

Pickle __reduce__

The Python reference provides some explanation of how __reduce__ works (see http://docs.python.org/lib/node321.html) . I have read this page and yet don't have a clear understanding of the pickle protocol.

It is not clear to me what happens when no __reduce__ is implemented and only __getstate__ and __setstate__ are implemented for extension types. If anyone can explain thru' an example it'll really help.

Jul 25 '07 #1
0 1229

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

16 posts views Thread by Nicolas Fleury | last post: by
4 posts views Thread by Christos TZOTZIOY Georgiou | last post: by
3 posts views Thread by Michael Hohn | last post: by
1 post views Thread by i_hate | last post: by
reply views Thread by Mike P. | last post: by
6 posts views Thread by Jim Lewis | last post: by
5 posts views Thread by Chris | last post: by
3 posts views Thread by dgdev | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.