for key in f.__class__.__dict__:
- print "{0}:{1}".format(key,type(f.__class__.__dict__[key]))
+ print "f"{0}:{1}".format(key,type(f.__class__.__dict__[key]))
for key in b.__class__.__dict__:
- print "{0}:{1}".format(key,type(b.__class__.__dict__[key]))
+ print "b:{0}:{1}".format(key,type(b.__class__.__dict__[key]))
rattard@rattard-T3500:~/Downloads$ python test_classes.py
-__dict__:<type 'getset_descriptor'>
-__weakref__:<type 'getset_descriptor'>
-__doc__:<type 'NoneType'>
-__init__:<type 'function'>
-__doc__:<type 'NoneType'>
-__init__:<type 'function'>
+f:__module__:<type 'str'>
+f:attr:<type 'property'>
+f:__dict__:<type 'getset_descriptor'>
+f:__weakref__:<type 'getset_descriptor'>
+f:__doc__:<type 'NoneType'>
+f:__init__:<type 'function'>
+b:__module__:<type 'str'>
+b:__doc__:<type 'NoneType'>
+b:__init__:<type 'function'>