我试图理解分配给Python对象的变量与该类对象的__name__属性之间的关系。例如:
In [1]: class Foo(object):
...: pass
...:
In [2]: Foo.__name__ = 'Bar'
In [3]: Foo.__name__
Out[3]: 'Bar'
In [4]: Foo
Out[4]: __main__.Bar
In [5]: Bar
-------------------------------------------------------------------------