This part is a little dated (it is a 2012 post after all): https://rszalski.github.io/magicmethods/#comparisons
In Python 3 __cmp__ is ignored and you have to use the other methods. To make this easier, you can use https://docs.python.org/3/library/functools.html#functools.t...