[Python-3000] Simplifying the copy protocol
Guido van Rossum
guido at python.org
Fri Jun 20 00:46:30 CEST 2008
On Thu, Jun 19, 2008 at 3:43 PM, Raymond Hettinger <python at rcn.com> wrote:
> From: "Guido van Rossum" <guido at python.org>
>>
>> I haven't had the time to look into this, but it sounds unintuitive to
>> drop __reduce_ex__ which is supposed to be the "extended" IOW "newer"
>> version of the API compared to __reduce__ which was deemed to be
>> missing something.
>
> Right. The version argument should be kept.
> Recommend renaming __reduce_ex__ to __reduce__
> and dropping the older method.
Hm. That's asking for hard-to-debug problems in 3rd party code.
--
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-3000
mailing list