numeric emulation and the rich comparison operators

Discussion in 'Python' started by Ethan Furman, Jul 10, 2008.

  1. Ethan Furman

    Ethan Furman Guest

    Greetings, List!

    Still working on my Measure class, and my next question is... (drum roll
    please ;)

    What are the advantages of using __[eq|ne|lt|gt|le|ge]__ vs __cmp__?

    Thanks in advance!
    --
    Ethan
     
    Ethan Furman, Jul 10, 2008
    #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. Stian =?iso-8859-1?Q?S=F8iland?=

    New style classes and rich comparison

    Stian =?iso-8859-1?Q?S=F8iland?=, Dec 17, 2003, in forum: Python
    Replies:
    3
    Views:
    341
    Michael Hudson
    Dec 18, 2003
  2. Replies:
    1
    Views:
    258
  3. Ethan Furman

    numeric emulation and __pos__

    Ethan Furman, Jul 8, 2008, in forum: Python
    Replies:
    8
    Views:
    327
    Sion Arrowsmith
    Jul 9, 2008
  4. Ethan Furman
    Replies:
    0
    Views:
    309
    Ethan Furman
    Dec 8, 2008
  5. Hollow Quincy

    rich:dataTable - rich:dataScroller

    Hollow Quincy, Dec 30, 2011, in forum: Java
    Replies:
    5
    Views:
    4,789
    Arved Sandstrom
    Jan 2, 2012
Loading...

Share This Page