Skip to content

Instantly share code, notes, and snippets.

@marcuswestin
Created December 19, 2014 18:40
Show Gist options
  • Save marcuswestin/7a43ff2c8157f325834c to your computer and use it in GitHub Desktop.
Save marcuswestin/7a43ff2c8157f325834c to your computer and use it in GitHub Desktop.
class within class
class Foo:
class Bar:
def __init__(self):
pass
def __init__(self):
self.bar = Foo.Bar()
foo = Foo()
print foo.bar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment