[issue12290] __setstate__ is called for false values

2021-12-05 Thread Irit Katriel
Irit Katriel added the comment: See also issue26695. -- nosy: +iritkatriel type: -> behavior versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.5, Python 3.6 ___ Python tracker __

[issue12290] __setstate__ is called for false values

2016-08-10 Thread Stéphane Wirtel
Changes by Stéphane Wirtel : -- versions: +Python 3.5, Python 3.6 -Python 2.7, Python 3.3, Python 3.4 ___ Python tracker ___ ___ Pytho

[issue12290] __setstate__ is called for false values

2016-05-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Actually this wording is not quite correct. __setstate__() is called for any pickled state. It is not called only if the state is not pickled. The state is not pickled if reducing method (__reduce_ex__ or __reduce__) doesn't return state or returns None as a

[issue12290] __setstate__ is called for false values

2013-12-07 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : -- versions: +Python 2.7, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue12290] __setstate__ is called for false values

2013-12-07 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : -- assignee: -> docs@python components: +Documentation -Library (Lib) nosy: +docs@python stage: -> patch review versions: +Python 3.4 -Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ 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

[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-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-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
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