I'm sorry if the question is a bit unclear, I'm not sure how to phrase it.
I'm working with a package that has a function with a number of optional parameters. Say there are three parameters: x, y, z. I will always pass the same value, just to a different parameter. So I could do this:
if setting is x:
package.someFunction(x=1)
elif setting is y:
package.someFunction(y=1)
elif setting is z:
package.someFunction(z=1)
Is there a more pythonic way to do it? Can I assign the parameter name to some variable pass it that way?