Skip to content

Instantly share code, notes, and snippets.

@tkmru
Created December 16, 2013 02:01
Show Gist options
  • Select an option

  • Save tkmru/7981345 to your computer and use it in GitHub Desktop.

Select an option

Save tkmru/7981345 to your computer and use it in GitHub Desktop.
"object.__dict__" have "object's instance variable"
class Hello(object):
def __init__(self, name):
self.name = name
obj = Hello("Haruhi")
print(obj.__dict__) #=> {'name': 'Haruhi'}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment