Skip to content

Instantly share code, notes, and snippets.

@erikfrey
Created February 16, 2011 01:24
Show Gist options
  • Save erikfrey/828660 to your computer and use it in GitHub Desktop.
Save erikfrey/828660 to your computer and use it in GitHub Desktop.
class Foo:
def __init__(self):
self.bar = lambda: Foo.bar(self)
@staticmethod
def bar(self=None):
print 'called with self: %s' % self
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment