what's the effect of cmp here?

Mark Lawrence breamoreboy at yahoo.co.uk
Tue Jul 10 17:22:27 CEST 2012


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.






More information about the Python-list mailing list