Skip to content

Instantly share code, notes, and snippets.

@frogstarr78
Forked from thiago-vieira/open.py
Created November 10, 2015 23:26
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 frogstarr78/9a0f3d08a6829d1e1fb8 to your computer and use it in GitHub Desktop.
Save frogstarr78/9a0f3d08a6829d1e1fb8 to your computer and use it in GitHub Desktop.
natural open struct in python
class Class:
pass
x = Class()
x.something = 42
print(x.something) # 42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment