[Python-Dev] Re: [Python-checkins] python/dist/src/Python bltinmodule.c, 2.304, 2.305 (original) (raw)
Michael Hudson mwh at python.net
Thu Dec 18 08:42:25 EST 2003
- Previous message: [Python-Dev] RE: [Python-checkins] python/dist/src/Python bltinmodule.c, 2.304, 2.305
- Next message: [Python-Dev] Py_DECREF causes spurious gcc warning
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 ().
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 ). I'd expect sort() to mutate its argument.
Cheers, mwh
-- "The future" has arrived but they forgot to update the docs. -- R. David Murray, 9 May 2000
- Previous message: [Python-Dev] RE: [Python-checkins] python/dist/src/Python bltinmodule.c, 2.304, 2.305
- Next message: [Python-Dev] Py_DECREF causes spurious gcc warning
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]