Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/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
You can’t perform that action at this time.