what's the effect of cmp here? The bList and cList is the same at last.

code:
aList=[3,2,5,4]

bList=aList[:]
bList.sort()
print "bList is",bList

cList=aList[:]
cList.sort(cmp)
print "cList is",cList
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to