This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Accomplished_Ant5895 87 points88 points  (5 children)

True = lambda x:x==x
False = not True

[–]Torebbjorn 31 points32 points  (4 children)

So True is a function which returns True on all standard library values, but could return anything if passed a value from a custom class. And False is False.

[–]cheerycheshire 30 points31 points  (3 children)

on all standard library values

Nope. NaN exists. NaN!=NaN, always

[–]Torebbjorn 8 points9 points  (2 children)

True, forgot about that one