You can do this:
args = (const_a, const_b, const_c)
ExternalLibrary.open(*args)
The *
syntax unpacks an iterable (tuple, list, etc.) into individual arguments in a function call. There is also a **
syntax for unpacking a dictionary into keyword arguments:
kwargs = {'foo': 1, 'bar': 2}
func(**kwargs) # same as func(foo=1, bar=2)
You can also use both in the same call, like func(*args, **kwargs)
.