Re: Q: sort's key and cmp parameters



On Tuesday 06 October 2009 02:40:46 pm Paul Rubin wrote:
The problem is that if you allow to use the cmp, lot of programmers
will use it straight away, not even bothering to know what that
strange 'key' argument may be useful for. And they miss the how much
handy 'key' is.

Given how often we hear "consenting adults" as justification for any
number of gaps in Python error checking, the argument above is
singularly unpersuasive.

Well, as long as you consider them "gaps" in need of a "justification", of
course that argument (and the one about the "gaps" themselves) will of course
seem singularly unpersuasive.

But if you see them as a "feature" (that may sometimes, albeit rarely,
missfire), then you would have no problem with /either/ argument.

--
Luis Zarrabeitia (aka Kyrie)
Fac. de Matemática y Computación, UH.
http://profesores.matcom.uh.cu/~kyrie
.



Relevant Pages

  • Re: Fields awardee Shing-Tung Yau lied in Chinese media about Poincare conjecture proofs attribu
    ... The abstract is strange. ... "This proof should be considered as the crowning achievement of the ... I had not heard of any gaps. ... It seems like a lot of hype. ...
    (sci.math)
  • Re: Autonumber values growing by leaps and bounds?
    ... strange things going on. ... Did you account for the fact that the AutoNumbers will wrap around? ... not wrap to zero and fill in gaps, but they will wrap around and use all of the ... Its a comfort to know that it will wrap. ...
    (comp.databases.ms-access)
  • Re: Oh the Woetahs
    ... I couldnt believe the lack of support, too many players finding themselves isolated or not even bothering to chase the ball and without Whits there to do the tackling there are more gaps then. ...
    (rec.sport.rugby.union)
  • Re: Oh the Woetahs
    ... themselves isolated or not even bothering to chase the ball and without ... Whits there to do the tackling there are more gaps then < insert whatever ...
    (rec.sport.rugby.union)
  • Re: Stalins Ghost
    ... Renko never seems to investigate in a straight line, he slips sideways through gaps. ...
    (rec.arts.mystery)