"Licheng Fang" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Sorry to dig up this old thread, but I would like to know what's the | rationale is. Why can't a nested function rebind a variable of an | outer function?
Because it is debateble whether this is overall a good idea and because it was not obvious exactly how to do so. (There were about 10 different proposals.) I believe an addition is scheduled for 3.0 (and 2.6 I suspect). -- http://mail.python.org/mailman/listinfo/python-list