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

2017-04-08 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

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

2017-04-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 205e00c5cfd495a4dc6dae8e8fa0fb828fb3dca9 by Serhiy Storchaka in branch 'master': bpo-29914: Fix default implementations of __reduce__ and __reduce_ex__(). (#843) https://github.com/python/cpython/commit/205e00c5cfd495a4dc6dae8e8fa0fb828fb3dca9

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

2017-04-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___

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

2017-03-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +740 ___ Python tracker ___ ___

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

2017-03-27 Thread Serhiy Storchaka
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