Skip to content

Instantly share code, notes, and snippets.

@mattwilliamson
Created August 11, 2010 15:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattwilliamson/519150 to your computer and use it in GitHub Desktop.
Save mattwilliamson/519150 to your computer and use it in GitHub Desktop.
#!/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()
@mattwilliamson
Copy link
Author

Prints :
5
0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment