Skip to content

Instantly share code, notes, and snippets.

@stepahn
Created September 12, 2010 19:08
Show Gist options
  • Save stepahn/576342 to your computer and use it in GitHub Desktop.
Save stepahn/576342 to your computer and use it in GitHub Desktop.
class Foo(object):
def f(self, x=None):
print 'hello'
print x
return None
class Bar(Foo):
pass
def target(*args):
return main, None
def main(args):
b = Bar()
b.f('fffuuu')
x = Bar()
x.f()
return 0
if __name__ == '__main__':
import sys
main(sys.argv)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment