Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #25135 > unrolled thread

Re: what's the effect of cmp here?

Started byMark Lawrence <breamoreboy@yahoo.co.uk>
First post2012-07-10 16:22 +0100
Last post2012-07-10 16:22 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: what's the effect of cmp here? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-07-10 16:22 +0100

#25135 — Re: what's the effect of cmp here?

FromMark Lawrence <breamoreboy@yahoo.co.uk>
Date2012-07-10 16:22 +0100
SubjectRe: what's the effect of cmp here?
Message-ID<mailman.1988.1341933661.4697.python-list@python.org>
On 10/07/2012 16:01, levi nie wrote:
> aList=[3,2,5,4]
>
> bList=aList[:]
> bList.sort()
> print "bList is",bList
>
> cList=aList[:]
> cList.sort(cmp)
> print "cList is",cList
>

Why don't you tell us, you have the same documentatation avaialable as 
everybody else.

-- 
Cheers.

Mark Lawrence.


[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web