Tell me more ×  Please see the following example code, which is
in a file, say  class BaseClass(object):     def __init__(self,
param1, param2):         self.param1 = param1
self.param2 = param2      def somemethod(self):         return
"This is returned when I do Base.__dict__"  class
ChildOfBaseClass(BaseClass):     def __init__(self, param1,
param2, param3, param4):         super(ChildOfBaseClass,
self).__init__(param1, param2)         self.param3 = param3
self.param4 = param4      def somemethod(self, param3, param4):
a = param3 + param4         return a  I want to get all the
attributes (I am assuming that param1, param2 etc. are called
attributes) of the classes before I create any instance. Command
dir(classattr.BaseClass) does not list param1 and param2. It,
however, does return the method somemethod.  I am trying to get
the attributes for the following reason: The module classattr is
imported in another file where the name of the class, either
classattr.BaseClass or classattr.