title: what is function(var1)(var2) in python
body: <p>I have a piece of code I pulled from someone I don't understand:</p>
  
  <pre><code>def __init__(self, func):
          self.func = func
          wraps(func)(self)
  </code></pre>
  
  <p>I've seen things like <code>wraps(func)(self)</code> several times but never seen it explained. How is there a function with parameters and then another <code>(var)</code> thing after it? What does it all mean? Thank you</p>