Skip to content

Instantly share code, notes, and snippets.

Created July 20, 2011 01:11
What would you like to do?
class foo:
s = "hello "
foo.__add__ = lambda x, y: x.s + y
f = foo()
print f + "a"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment