[Python-ideas] Make __reduce__ to correspond to __getnewargs_ex__

Nick Coghlan ncoghlan at gmail.com
Sun Jun 8 12:03:20 CEST 2014


On 8 Jun 2014 16:53, "Neil Girdhar" <mistersheik at gmail.com> wrote:
>
> 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.

Those classes shouldn't use reduce for their pickling support.

Cheers,
Nick.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140608/4ac3acd0/attachment.html>


More information about the Python-ideas mailing list