Issue 29914: Incorrect signatures of object.reduce() and object.reduce_ex() (original) (raw)
Issue29914
Created on 2017-03-27 08:01 by serhiy.storchaka, last changed 2022-04-11 14:58 by admin. This issue is now closed.
Pull Requests | |||
---|---|---|---|
URL | Status | Linked | Edit |
PR 843 | merged | serhiy.storchaka,2017-03-27 08:12 |
Messages (2) | ||
---|---|---|
msg290567 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * ![]() |
Date: 2017-03-27 08:01 |
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__(). | ||
msg291323 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * ![]() |
Date: 2017-04-08 06:53 |
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 |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:58:44 | admin | set | github: 74100 |
2017-04-08 06:56:08 | serhiy.storchaka | set | status: open -> closedresolution: fixedstage: patch review -> resolved |
2017-04-08 06:53:01 | serhiy.storchaka | set | messages: + |
2017-04-07 15:50:25 | serhiy.storchaka | set | assignee: serhiy.storchaka |
2017-03-27 08:12:13 | serhiy.storchaka | set | pull_requests: + <pull%5Frequest740> |
2017-03-27 08:01:08 | serhiy.storchaka | create |