[Python-Dev] Re: [Python-checkins] python/dist/src/Python bltinmodule.c, 2.304, 2.305

Michael Hudson mwh at python.net
Thu Dec 18 08:42:25 EST 2003

Neal Norwitz <neal at metaslash.com> writes:

> On Wed, Dec 17, 2003 at 12:43:35PM -0800, rhettinger at users.sourceforge.net wrote:
>> Guido grants a Christmas wish:  
>>   sorted() becomes a regular function instead of a classmethod.
> Would sort() be a better name?

No (<wink>).

> When I told someone who's done quite a bit of java recently about
> sorted, he asked if it returned a bool whether the list was sorted
> or not. :-)

In Python, that would be issorted (please ignore callable <wink>).
I'd expect sort() to mutate its argument.


  "The future" has arrived but they forgot to update the docs.
                                        -- R. David Murray, 9 May 2000

More information about the Python-Dev mailing list