Skip to content

Instantly share code, notes, and snippets.

@swannodette
Created October 20, 2009 20:08
Show Gist options
  • Save swannodette/214568 to your computer and use it in GitHub Desktop.
Save swannodette/214568 to your computer and use it in GitHub Desktop.
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