Created
October 20, 2009 20:08
-
-
Save swannodette/214568 to your computer and use it in GitHub Desktop.
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 Bar(): | |
z = 3 | |
class Foo(): | |
x = 1 | |
y = 2 | |
def __init__(self): | |
self.other = Bar() | |
def get_x(self): | |
return self.x | |
def get_y(self): | |
return self.y | |
def get_z(self): | |
return self.other.z |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment