[Python-Dev] Mutable sequence .sort() signature
Kurt B. Kaiser
kbk at shore.net
Wed Feb 13 03:39:39 CET 2008
Raymond Hettinger <python at rcn.com> writes:
> [Kurt]
>> Looking at the various py3k docs and mail lists, etc. I just can't
>> find the specification and discussion of the signature change
>> eliminating the comparison function (so far)!
>
> There is a note Misc/NEWS and I believe the 2-to-3 folks are looking
> at a conversion. The Py3.0 docs have the new signature (same as
> the old one but it no longer accepts a cmp function and to prevent
> accidents keyword arguments are required).
Yes, I see you changed those docs. But I think we need to give better
notice that this is one of the py3k incompatibilities.
> I'm not sure where else to document it.
I'd say in PEP3100. Here's a patch:
http://bugs.python.org/issue2092
--
KBK
More information about the Python-Dev
mailing list