[Python-ideas] Make __reduce__ to correspond to __getnewargs_ex__

Neil Girdhar mistersheik at gmail.com
Sun Jun 8 08:52:29 CEST 2014


Was my proposal clear?  If reduce isn't updated to return the keyword
arguments then it is not compatible with classes that require keyword
arguments without some serious metaclass fiddling as far as I can tell.


On Sat, Jun 7, 2014 at 11:00 PM, Ethan Furman <ethan at stoneleaf.us> wrote:

> 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~
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
> --
>
> --- You received this message because you are subscribed to a topic in the
> Google Groups "python-ideas" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/python-ideas/zohH2BCtYzY/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> python-ideas+unsubscribe at googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140608/1c8650d4/attachment.html>


More information about the Python-ideas mailing list