Skip to content

Instantly share code, notes, and snippets.

@varepsilon
Created March 3, 2012 09:31
Show Gist options
  • Save varepsilon/1965236 to your computer and use it in GitHub Desktop.
Save varepsilon/1965236 to your computer and use it in GitHub Desktop.
Class example (wrong)
class NotSoClever:
def __init__(a):
field = a
def printField():
print(field)
if __name__ == '__main__':
r = NotSoClever()
r.printField()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment