Created
November 1, 2012 04:17
-
-
Save keitheis/3991683 to your computer and use it in GitHub Desktop.
print_inner_class.py
This file contains 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 Out(object): | |
o = 2 | |
class In(object): | |
i = 1 | |
def main(): | |
o = Out() | |
print o.In.i | |
# 1 | |
if __name__ == '__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment