I have a class whose function is defined as follows. My intention is to send him a few arguments.
For testing, I called it :class_name("argument1","argument2") , and it says: __init__accepts atmost 1 arguments , 3 given
def __init__(self, **options): for name in options: self.__dict__[name] = options[name]
What is the right way to handle this?
Any suggestions are welcome ......
python arguments
vettipayyan
source share