Last active
August 29, 2015 14:14
-
-
Save manoharp/8dc8f44fa15505c447c2 to your computer and use it in GitHub Desktop.
Python Notes - Everything is an Object.
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 C(): | |
pass | |
def main(): | |
print type(C) | |
print type(main) | |
print type(int) | |
# Everything is object | |
print dir(C) | |
print dir(main) | |
if __name__ == '__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment