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. Advertisements

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:
    437
    Michael Hudson
    Dec 18, 2003
  2. Replies:
    1
    Views:
    314
  3. Steven D'Aprano

    Boilerplate in rich comparison methods

    Steven D'Aprano, Jan 13, 2007, in forum: Python
    Replies:
    11
    Views:
    541
    Antoon Pardon
    Jan 15, 2007
  4. Replies:
    5
    Views:
    1,219
    X-Centric
    Jun 30, 2005
  5. Ethan Furman

    numeric emulation and __pos__

    Ethan Furman, Jul 8, 2008, in forum: Python
    Replies:
    8
    Views:
    480
    Sion Arrowsmith
    Jul 9, 2008
  6. Ethan Furman
    Replies:
    0
    Views:
    353
    Ethan Furman
    Dec 8, 2008
  7. Gustavo Narea
    Replies:
    13
    Views:
    596
    Gustavo Narea
    Jun 21, 2009
  8. Hollow Quincy

    rich:dataTable - rich:dataScroller

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