Skip to content

Instantly share code, notes, and snippets.

@bennofs

bennofs/foo.py Secret

Created November 13, 2018 17:52
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 bennofs/6252b45bd026d7e95dbacf7615159ed5 to your computer and use it in GitHub Desktop.
Save bennofs/6252b45bd026d7e95dbacf7615159ed5 to your computer and use it in GitHub Desktop.
class Base(object):
def __init__(self):
print("base!")
class Foo(Base):
def __init__(self):
super(Foo, self).__init__()
import foo
class Monkey(foo.Foo):
pass
foo.Foo = Monkey
print(foo.Foo())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment