Skip to content

Instantly share code, notes, and snippets.

@erikfrerejean
Created February 12, 2013 22:35
Show Gist options
  • Save erikfrerejean/4774118 to your computer and use it in GitHub Desktop.
Save erikfrerejean/4774118 to your computer and use it in GitHub Desktop.
class MichaelC(object):
def __init__(self):
super(MichaelC, self).__init__()
def _get(self):
return [
1,
2,
3
]
def run(self):
for n in self._get():
print n
def run2(self):
print self._get()[1]
if __name__ == "__main__":
MichaelC = MichaelC()
MichaelC.run()
MichaelC.run2()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment