Issue 30702: pickle uses getattr(obj, '__reduce__') instead of getattr(type(obj), '__reduce__')
Created on 2017-06-19 13:49 by bup, last changed 2022-04-11 14:58 by admin. This issue is now closed.
| Messages (2) | |||
|---|---|---|---|
| msg296337 - (view) | Author: Dan Snider (bup) * | Date: 2017-06-19 13:49 | |
That is inconsistent with every other object.__dunder_method__ which still work even if the instance gets an attribute with the same name. |
|||
| msg296476 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * ![]() |
Date: 2017-06-20 18:09 | |
This is a duplicate of issue16251. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:58:47 | admin | set | github: 74887 |
| 2017-06-20 18:09:37 | serhiy.storchaka | set | status: open -> closed superseder: pickle special methods are looked up on the instance rather than the type nosy:
+ serhiy.storchaka |
| 2017-06-19 13:49:40 | bup | create | |
