title: Currying in Python lambdas
body: <p>I'm trying to write a naive curried function in Python 2.7, but it seems like the inner lambda doesn't have an access to the parent lambda scope.</p>
  
  <p>For simplicity, let's take this function:</p>
  
  <pre><code>add = lambda a: lambda b: a + b
  </code></pre>
  
  <p>The inner lambda's scope can't access the outer one (Python can't recognize <code>a</code>).</p>
  
  <p>Is there a convenient way to make the outer scope accessible?</p>