comparison operator Mar 13, 2012 Python doesn’t have the <=> comparison operator, but this is the equivalent: (a > b) - (a < b) http://docs.python.org/release/3.0.1/whatsnew/3.0.html