I have this kind of a function call in Python:
foo(["A", "B", "X", "Y", "Z"], SomeClass("m", ["A", "B", "X", "Y", "Z"]), SomeClass("n",["A", "B", "X", "Y", "Z"]))
In general, foo can have arbitrary number of arguments, so there can be many SomeClass objects passed, but when calling the constructor, you always have to pass the same thing that you pass as the first argument to foo, What I'd like to have is this:
foo(["A", "B", "X", "Y", "Z"], SomeClass("m", arg1), SomeClass("n", arg1))
So the code is shorter and more readable. What should I put instead of arg1 in order to "reference" the first argument passed to foo?