mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-22 06:50:47 -04:00
12 lines
397 B
Plaintext
12 lines
397 B
Plaintext
add = __add__ = def(x, y): return x + y
|
|
sub = __sub__ = def(x, y): return x - y
|
|
mul = __mul__ = def(x, y): return x * y
|
|
div = __div__ = def(x, y): return x / y
|
|
|
|
lt = __lt__ = def(x, y): return x < y
|
|
le = __le__ = def(x, y): return x <= y
|
|
eq = __eq__ = def(x, y): return x is y
|
|
ne = __ne__ = def(x, y): return x is not y
|
|
ge = __ge__ = def(x, y): return x >= y
|
|
gt = __gt__ = def(x, y): return x > y
|