[issue12290] __setstate__ is called for false values

2011-06-08 Thread Eugene Toder
New submission from Eugene Toder : Pickle documentation [1] says: """ Note: If __getstate__() returns a false value, the __setstate__() method will not be called upon unpickling. """ However, this isn't quite true. This depends on the version of pickle protocol. A small example: >>> class Po

[issue12290] __setstate__ is called for false values

2011-06-08 Thread R. David Murray
R. David Murray added the comment: See also #6827, just for some background on the current docs. -- nosy: +r.david.murray ___ Python tracker ___

[issue12290] __setstate__ is called for false values

2011-06-08 Thread Eugene Toder
Changes by Eugene Toder : -- nosy: +alexandre.vassalotti, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12290] __setstate__ is called for false values

2011-06-15 Thread Eugene Toder
Eugene Toder added the comment: So how about this correction? -- keywords: +patch nosy: +belopolsky, georg.brandl Added file: http://bugs.python.org/file22375/setstate.diff ___ Python tracker _

[issue12290] __setstate__ is called for false values

2011-06-18 Thread Georg Brandl
Georg Brandl added the comment: Well, this looks correct then. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib