Closures and Partial Function Application

Chris Rebert clp2 at
Wed Aug 31 19:18:57 CEST 2011

On Wed, Aug 31, 2011 at 9:45 AM, Travis Parks <jehugaleahsa at> wrote:
> I was a little disappointed the other day when I realized that
> closures were read-only. I like to use closures quite a bit.

Assuming I'm intuiting your question correctly, then you're incorrect;
they are "read/write". You just need a `nonlocal` declaration for the
variables in question. See
for details.


More information about the Python-list mailing list