Skip to content

Instantly share code, notes, and snippets.

@mattn
Created July 20, 2011 01:11
Embed
What would you like to do?
class foo:
s = "hello "
pass
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