Is there a standard way to pass all arguments defined in __init__()
to the whole class (as self arguments)?
For example in my program I usually do it like this:
class DummyClass():
def __init__(self,x,y,z):
self.x = x
self.y = y
self.z = z
...
Is there a way to do the same without individually passing each argument? I think I saw once a similar thing with super()
.