Closed snoack closed 9 years ago
I just realized that __cmp__ is gone in Python 3. So this PR uses __eq__ and __lt__ along with the total_ordering decorator to make NumberIsh work with Python 3.3+ as well as Python 2.7.
__cmp__
__eq__
__lt__
total_ordering
NumberIsh
I just realized that
__cmp__
is gone in Python 3. So this PR uses__eq__
and__lt__
along with thetotal_ordering
decorator to makeNumberIsh
work with Python 3.3+ as well as Python 2.7.