I often find myself doing this:
myvariable = 'whatever'
another = 'something else'
print '{myvariable} {another}'.format(
myvariable=myvariable,
another=another
)
Is there a way not to have to name the keyword arguments in this repetitive manner? I'm thinking something along these lines:
format_vars = [myvariable, another]
print '{myvariable} {another}'.format(format_vars)