Skip to content

Instantly share code, notes, and snippets.

@obeattie
Created April 21, 2012 19:10
Show Gist options
  • Save obeattie/2439149 to your computer and use it in GitHub Desktop.
Save obeattie/2439149 to your computer and use it in GitHub Desktop.
>>> class Orly:
... def __add__(self, other):
... return isinstance(other, Orly) or (not True) + other
...
>>> False = OhReally()
>>> False + False
True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment