Skip to content

Instantly share code, notes, and snippets.

@makmanalp
Last active June 6, 2016 01:14
Show Gist options
  • Save makmanalp/68ca9b5cd110930603d7ea9015b443de to your computer and use it in GitHub Desktop.
Save makmanalp/68ca9b5cd110930603d7ea9015b443de to your computer and use it in GitHub Desktop.
Code in the body of a class - 5
In [8]: class Blah(object):
....: class Blah2(object):
....: pass
....:
In [9]: Blah.Blah2
Out[9]: __main__.Blah.Blah2
In [10]: Blah.Blah2()
Out[10]: <__main__.Blah.Blah2 at 0x10c77a630>
In [11]: Blah()
Out[11]: <__main__.Blah at 0x10c77ab00>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment