Skip to content

Instantly share code, notes, and snippets.

@itkovian
Created December 3, 2013 13:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save itkovian/7769327 to your computer and use it in GitHub Desktop.
Save itkovian/7769327 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
class A(object):
def f(self, a):
print a
def g(self, b, ff=A.f):
self.ff(b)
if __name__ == '__main__':
a = A()
a.g(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment