Serhiy Storchaka added the comment:
This is virtually a duplicate of isssue26579.
--
nosy: +serhiy.storchaka
resolution: -> duplicate
stage: -> resolved
status: open -> closed
superseder: -> Support pickling slots in subclasses of common classes
New submission from youkaichao :
According to the doc (
https://docs.python.org/3/library/pickle.html#object.__getstate__ ), an object
may not have a __getstate__ method.
During pickling and unpickling, python first finds __getstate__ and
__setstate__, which may invoke a customed __getattr__.