http://bit.ly/2W4ss5t
These references follow the normal rules for name resolution with an
exception that unbound local variables are looked up in the global namespace.
The namespace of the class definition becomes the attribute dictionary of the class.
最后一句话,
我读起来,该class的namespace成为__dict__?完全无法想像。可以指点一下吗?