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

Dan Snider report at bugs.python.org
Mon Jun 19 09:49:40 EDT 2017


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
title: pickle uses getattr(obj, '__reduce__') instead of getattr(type(obj), '__reduce__')
type: behavior
versions: Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30702>
_______________________________________


More information about the Python-bugs-list mailing list