Skip to content

Instantly share code, notes, and snippets.

@lprsd
Created January 20, 2010 12:53
Show Gist options
  • Select an option

  • Save lprsd/281820 to your computer and use it in GitHub Desktop.

Select an option

Save lprsd/281820 to your computer and use it in GitHub Desktop.
>>> 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