In 57 class object In 59 __dict__ Out 59

1
2
3
4
5
6
7
In [57]: class A(object):
a = 1
....:
....:
In [59]: "%(a)s" % A.__dict__
Out[59]: '1'