[issue30702] pickle uses getattr(obj, '__reduce__') instead of getattr(type(obj), '__reduce__')

2017-06-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is a duplicate of issue16251. -- nosy: +serhiy.storchaka resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> pickle special methods are looked up on the instance rather than the type

[issue30702] pickle uses getattr(obj, '__reduce__') instead of getattr(type(obj), '__reduce__')

2017-06-19 Thread Dan Snider
New submission from Dan Snider: That is inconsistent with every other object.__dunder_method__ which still work even if the instance gets an attribute with the same name. -- components: Library (Lib) messages: 296337 nosy: assume_away priority: normal severity: normal status: open