Ok this should be trivial, but i am stuck- the code is existing and should be fine.
class Connect(object):
def __init__(self, database, user, password, host, port):
super(Connect, self).__init__()
self.database = database
self.user = user
self.password = password
self.host = host
self.port = port
class Process(Connect):
def __init__(self, **kwargs):
super(Process, self).__init__(**kwargs)
I can instantiate Connect easily
local_connection=Connect(database, user, password, host, port)
How do I instantiate Process?
If I do
Process(database, user, password, host, port
) -
Error is - TypeError: init() takes exactly 6 arguments (1 given)
If I do
Process(local_connection)
Error is - TypeError: init() takes exactly 1 argument (2 given)
If i try
Process()
Errorr is - TypeError: init() takes exactly 6 arguments (1 given)