title: function call with named/unnamed and variable arguments in python
body: <p>I have the following code:</p>
  
  <pre><code>def foo(func, *args, named_arg = None):
      return func(*args)
  </code></pre>
  
  <p>returning a <code>SyntaxError</code>:</p>
  
  <pre><code>  File "tester3.py", line 3
      def foo(func, *args, named_arg = None):
                                   ^
  </code></pre>
  
  <p>Why is that? And is it possible to define somewhat a function in that way, which takes one argument (<code>func</code>), then a list of variable arguments <code>args</code> before named arguments? If not, what are my possibilities?</p>