3 ms·
Official docs: https://docs.python.org/3.0/whatsnew/3.0.html#ordering-comparisons https://docs.python.org/3.0/whatsnew/3.0.html#ordering-compa... > If you real
by __s 8y ago
Official docs: https://docs.python.org/3.0/whatsnew/3.0.html#ordering-comparisons https://docs.python.org/3.0/whatsnew/3.0.html#ordering-compa...
> If you really need the cmp() functionality, you could use the expression (a > b) - (a < b) as the equivalent for cmp(a, b)
- sametmax 8y agoαν