Created
August 11, 2010 15:25
-
-
Save mattwilliamson/519150 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/usr/bin/env python | |
# encoding: utf-8 | |
class SomeClass(object): | |
attribute = 0 | |
def main(): | |
c = SomeClass() | |
c.attribute = 5 | |
print c.attribute | |
print SomeClass.attribute | |
if __name__ == '__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Prints :
5
0