http://pythondoeswhat.blogspot.sg/2012/ ... -vars.html
http://stackoverflow.com/questions/1436 ... -in-python
What I got out of this was, every object is backed up by a __dict__. Alright, but is a __dict__ an object, function, etc? Does it mean a dictionary? What does the __dict__ do? Its an attribute ok, but could someone explain an attribute better please?
I got this out of the docs.python.org:
- Code: Select all
Attribute | Meaning
__dict__ func_dict | The namespace supporting arbitrary function attributes.
Could someone explain? I think this definition means the string or field, etc. that supports something about a function. Again, I know an attribute is a reference to I think the name of a function in a module. So then, it supports certain functions from a module? Is it like the namespace itself?