Re: [Python-Dev] Mutable sequence .sort() signature

2008-02-13 Thread Guido van Rossum
On Feb 13, 2008 12:09 PM, Daniel Stutzbach <[EMAIL PROTECTED]> wrote: > Without the cmp argument, what's the concise way to spell something like > "sort a list of floats by absolute value"? It'd be nice to have a stock > example to help users rewrite their code to work with 3.0. L.sort(key=abs)

Re: [Python-Dev] Mutable sequence .sort() signature

2008-02-13 Thread Daniel Stutzbach
On Feb 12, 2008 8:39 PM, Kurt B. Kaiser <[EMAIL PROTECTED]> wrote: > I'd say in PEP3100. Here's a patch: > > http://bugs.python.org/issue2092 > The suggested patch does not actually point to any discussion or rationale for why this change was made; it just contains a pointer to this thread (whic

Re: [Python-Dev] Mutable sequence .sort() signature

2008-02-13 Thread A.M. Kuchling
On Tue, Feb 12, 2008 at 08:19:27PM -0800, Guido van Rossum wrote: > [on the 'What's New in 3.0' document] > I think that's a good start. Andrew Kuchling can always move it later > if that section becomes too crowded or uneven. I won't be able to work on the 3.0 document in time for 3.0 final (assu

Re: [Python-Dev] Mutable sequence .sort() signature

2008-02-12 Thread Guido van Rossum
On Feb 12, 2008 8:10 PM, Kurt B. Kaiser <[EMAIL PROTECTED]> wrote: > "Guido van Rossum" <[EMAIL PROTECTED]> writes: > > > Also, pretty prominent, in the what's new in 3.0 doc. > > By 'prominent', are you suggesting putting it near the bottom of the > "Common Stumbling Blocks" section, as opposed to

Re: [Python-Dev] Mutable sequence .sort() signature

2008-02-12 Thread Kurt B. Kaiser
"Guido van Rossum" <[EMAIL PROTECTED]> writes: > Also, pretty prominent, in the what's new in 3.0 doc. By 'prominent', are you suggesting putting it near the bottom of the "Common Stumbling Blocks" section, as opposed to the "Other Language Changes" section? I can work up a short patch. -- KBK

Re: [Python-Dev] Mutable sequence .sort() signature

2008-02-12 Thread Guido van Rossum
Also, pretty prominent, in the what's new in 3.0 doc. On Feb 12, 2008 6:39 PM, Kurt B. Kaiser <[EMAIL PROTECTED]> wrote: > Raymond Hettinger <[EMAIL PROTECTED]> writes: > > > [Kurt] > >> Looking at the various py3k docs and mail lists, etc. I just can't > >> find the specification and discussion o

Re: [Python-Dev] Mutable sequence .sort() signature

2008-02-12 Thread Kurt B. Kaiser
Raymond Hettinger <[EMAIL PROTECTED]> 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 fol

Re: [Python-Dev] Mutable sequence .sort() signature

2008-02-12 Thread Raymond Hettinger
[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