• Guido van Rossum's avatar
    Use rich comparisons to fulfill an old wish: complex numbers now raise · be4cbb16
    Guido van Rossum yazdı
    exceptions when compared using <, <=, > or >=.
    
    NOTE: This is a tentative change: this means that cmp() involving
    complex numbers will raise an exception when the numbers differ, and
    that in turn means that e.g. dictionaries and certain other compounds
    (e.g. UserLists) containing complex numbers can't be compared either.
    So we'll have to decide whether this is acceptable.  The alpha test
    cycle is a good time to keep an eye on this!
    be4cbb16
complexobject.c 11.6 KB