Created
May 25, 2012 07:15
-
-
Save startling/2786341 to your computer and use it in GitHub Desktop.
object literals in python ?
This file contains 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
inside object() as o: | |
a = 12 | |
b = 13 | |
o.a # -> 12 | |
o.b # -> 13 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment