Skip to content

Instantly share code, notes, and snippets.

@dcolish
Created June 21, 2011 22:38
Show Gist options
  • Select an option

  • Save dcolish/1039121 to your computer and use it in GitHub Desktop.

Select an option

Save dcolish/1039121 to your computer and use it in GitHub Desktop.
nasty badness
class Foo(object):
def __repr__(self):
return "<Silly Human, I'm not real>"
def __eq__(self, b):
return True
def __getattr__(self, meh):
return Foo()
mysql = Foo()
if mysql:
print mysql.database
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment