[issue7848] copy.copy corrupts objects that return false value from __getstate__
Albertas Agejevas added the comment: This bug is a duplicate of issue6827, sorry. -- ___ Python tracker <http://bugs.python.org/issue7848> ___ ___ Python-bug
[issue7848] copy.copy corrupts objects that return false value from __getstate__
New submission from Albertas Agejevas : When copy.copy is used on an object whose __getstate__ returns 0, it can produce a corrupt copy of an object: >>> import copy >>> class Foo(object): ... def __init__(self): ...self.value = 0 ... def __getstate__(self):