This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author erezinman
Recipients erezinman
Date 2020-09-09.10:21:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1599646904.13.0.158110957783.issue41751@roundup.psfhosted.org>
In-reply-to
Content
Proposed solution - change OrderedDict's `__reduce_ex__ ` function. The code below works like expected if I override `__reduce_ex__` like so:

```

    def __reduce_ex__(self, protocol):
        ret = list(super().__reduce_ex__(protocol))
        ret[0] = type(self).__new__
        ret[1] = type(self), 
        return tuple(ret, )


```
History
Date User Action Args
2020-09-09 10:21:44erezinmansetrecipients: + erezinman
2020-09-09 10:21:44erezinmansetmessageid: <1599646904.13.0.158110957783.issue41751@roundup.psfhosted.org>
2020-09-09 10:21:44erezinmanlinkissue41751 messages
2020-09-09 10:21:44erezinmancreate