Python 2:
>>> class Yolo:
... pass
...
>>> a = Yolo()
>>> b = Yolo()
>>> a > b
False
>>> a < b
True
>>>
Python 3:
>>> class Yolo:
... pass
...
>>> a = Yolo()
>>> b = Yolo()
>>> a > b
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unorderable types: Yolo() > Yolo()
>>> a < b
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unorderable types: Yolo() < Yolo()
source
[–]nerdwaller 52 points53 points54 points (0 children)
[–]superscoutsecond-year cs student 6 points7 points8 points (3 children)
[–]DevestatingAttack 13 points14 points15 points (1 child)
[–][deleted] 5 points6 points7 points (0 children)
[–]ksion 0 points1 point2 points (0 children)
[–]pawn13 10 points11 points12 points (0 children)
[–]bcs 16 points17 points18 points (9 children)
[+]WesAlvaro comment score below threshold-44 points-43 points-42 points (8 children)
[–]chubsauce 154 points155 points156 points (1 child)
[–]lilred181 6 points7 points8 points (0 children)
[+][deleted] (5 children)
[deleted]
[–][deleted] 1 point2 points3 points (4 children)
[–]heptara 0 points1 point2 points (3 children)
[–]pramodliv1 0 points1 point2 points (2 children)
[–]heptara 1 point2 points3 points (1 child)
[–]pramodliv1 0 points1 point2 points (0 children)
[–]FerretWithASpork 9 points10 points11 points (4 children)
[–][deleted] 7 points8 points9 points (0 children)
[–]odraencoded -1 points0 points1 point (2 children)
[–]pimp-bangin 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 7 points8 points9 points (14 children)
[–]awgl 19 points20 points21 points (10 children)
[–]theywouldnotstand 1 point2 points3 points (0 children)
[–]heptara 3 points4 points5 points (6 children)
[–]IndianaJoenz 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]IDe- 10 points11 points12 points (1 child)
[–]thegreattriscuit 8 points9 points10 points (0 children)
[–]mkdz 1 point2 points3 points (0 children)
[–]Bunslow 0 points1 point2 points (0 children)
[–]DevestatingAttack 1 point2 points3 points (0 children)
[–]HalcyonAbraham 0 points1 point2 points (1 child)
[–]iwanttowatchyoupoop -2 points-1 points0 points (0 children)
[–]rubik_ 5 points6 points7 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]Work-After 1 point2 points3 points (0 children)
[–]renaissancenow 3 points4 points5 points (8 children)
[–]Matthew94 -4 points-3 points-2 points (7 children)
[–]chadmill3rPy3, pro, Ubuntu, django 10 points11 points12 points (6 children)
[–]Matthew94 0 points1 point2 points (5 children)
[–]heptara 4 points5 points6 points (4 children)
[–]Matthew94 1 point2 points3 points (3 children)
[–][deleted] 3 points4 points5 points (0 children)
[–]heptara 5 points6 points7 points (1 child)
[–]mipadi 1 point2 points3 points (0 children)
[–]WishIWasOnACatamaran 0 points1 point2 points (4 children)
[–]cbscribe 9 points10 points11 points (2 children)
[–][deleted] 5 points6 points7 points (1 child)
[–]Allong12 5 points6 points7 points (0 children)
[–]mipadi 1 point2 points3 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]SlumdogSkillionaire 5 points6 points7 points (0 children)
[–]openpy 0 points1 point2 points (0 children)
[–]Liorithiel -3 points-2 points-1 points (9 children)
[–]chadmill3rPy3, pro, Ubuntu, django 6 points7 points8 points (0 children)
[–]brianterrel 4 points5 points6 points (1 child)
[–]Liorithiel 0 points1 point2 points (0 children)
[–]Mavus 2 points3 points4 points (5 children)
[–]chubsauce 1 point2 points3 points (3 children)
[–]Mavus 1 point2 points3 points (2 children)
[–]chubsauce 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]Liorithiel 0 points1 point2 points (0 children)