title: How can I unpack a list or tuple in place in Python?
body: <p>Is it possible to unpack a list or tuple such that the values can be used as function parameters?  I.e., how can I make the second line work?</p>
  
  <pre><code>f(1,2,3)
  f(???([1,2,3]))
  </code></pre>
  
  <p>I'm currently doing this by hand, something like:</p>
  
  <pre><code>tmp1, tmp2, tmp3 = [1,2,3]
  f(tmp1,tmp2,tmp3)
  </code></pre>
  
  <p>context: I don't have the ability to modify f(), but this is part of a code generator so funky solutions are not a problem.</p>