[issue29914] Incorrect signatures of object.__reduce__() and object.__reduce_ex__()

Serhiy Storchaka report at bugs.python.org
Mon Mar 27 04:01:08 EDT 2017


New submission from Serhiy Storchaka:

The special method __reduce__() doesn't take arguments, the special method __reduce_ex__() takes one mandatory argument. But default implementations in the object class takes one optional argument. This looks as an oversign. Proposed patch fixes signatures of object.__reduce__() and object.__reduce_ex__().

----------
components: Interpreter Core
messages: 290567
nosy: alexandre.vassalotti, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Incorrect signatures of object.__reduce__() and object.__reduce_ex__()
type: behavior
versions: Python 3.7

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


More information about the Python-bugs-list mailing list