Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
>>> class x(object):
... def __call__(self):
... print "Hello, World!"
...
>>> x()
<__main__.x object at 0x9a5a1ac>
>>> x()()
Hello, World!
>>> type(x)
<type 'type'>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment