[Python-ideas] Make __reduce__ to correspond to __getnewargs_ex__

Ethan Furman ethan at stoneleaf.us
Sun Jun 8 05:00:10 CEST 2014


On 06/07/2014 12:39 PM, Neil Girdhar wrote:
>
> Any comments on this?

__reduce__ is already a well-defined part of pickle.

We also have __reduce_ex__, __getnewargs__, and now __getnewargs_ex__ -- why do we need __reduce__ to do the same thing 
as __getnewargs_ex__?

--
~Ethan~


More information about the Python-ideas mailing list