Created
December 19, 2014 18:40
-
-
Save marcuswestin/7a43ff2c8157f325834c to your computer and use it in GitHub Desktop.
class within class
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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