Let's say I have this class
class Foo:
def __init__(self, a, b, c):
self.a = a
self.b = b
self.c = c
Is there a way to make a shortcut in the constructor arguments so I don't need to explicitly pass every parameter from a list, for example:
def main():
attributes = [1,2,3]
foo = Foo(attributes) #instead of Foo(attributes[0], ...., ....)