Re: what's the effect of cmp here?

Discussion in 'Python' started by Mark Lawrence, Jul 10, 2012.

  1. 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.
     
    Mark Lawrence, Jul 10, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Andrea Sansottera

    no cmp field defined in cmp ejb

    Andrea Sansottera, Jul 16, 2004, in forum: Java
    Replies:
    0
    Views:
    415
    Andrea Sansottera
    Jul 16, 2004
  2. George Hester

    Try over here likely more to the point here

    George Hester, Sep 30, 2004, in forum: Javascript
    Replies:
    0
    Views:
    124
    George Hester
    Sep 30, 2004
  3. FAQ server
    Replies:
    0
    Views:
    165
    FAQ server
    Aug 10, 2006
  4. FAQ server
    Replies:
    0
    Views:
    143
    FAQ server
    Oct 7, 2006
  5. Dave Angel

    Re: what's the effect of cmp here?

    Dave Angel, Jul 10, 2012, in forum: Python
    Replies:
    0
    Views:
    207
    Dave Angel
    Jul 10, 2012
Loading...

Share This Page