Add support for the `cmp` builtin (#54) (#63) (#80)
Implement the `cmp` as defined here: * https://docs.python.org/2/library/functions.html#cmp Implementing this builtin required implementing a fair amount of supporting logic to do 3-way comparisons. The 3-way comparison implementation in CPython is somewhat complex, thus there may be some cases that still need support. This is a good start, though.
Showing
Please register or sign in to comment