Skip to content

Instantly share code, notes, and snippets.

@sylistine
Last active March 2, 2016 16:38
Show Gist options
  • Save sylistine/805bf652ab6fd8ff6a2a to your computer and use it in GitHub Desktop.
Save sylistine/805bf652ab6fd8ff6a2a to your computer and use it in GitHub Desktop.
class MyClass:
str = "test string" # not an error
x = 0 # not an error
def __init__(self):
print self.str
print self.x
# outside of class scope
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment