class info:
def __init__(self, **kwargs):
self._variables = kwargs
class waybill(info):
def __init__(self, **kwargs):
super(waybill, self).__init__(**kwargs)
Error -: module.__init__() takes at most 2 arguments (3 given)
What could probably the reason why this error is flagging? I am using Python 3.2
Is info defined in the same file? Or is it info.info from info.py? If you’re importing info, trying changing it to the following:
Additional information: If you simply
import infotheninfois a module, andwaybillis subclassingmodule.