[Python-ideas] Tweaking closures and lexical scoping to include the function being defined

Stephen J. Turnbull stephen at xemacs.org
Wed Sep 28 04:18:59 CEST 2011

Paul Moore writes:

 > On 27 September 2011 18:03, Nick Coghlan <ncoghlan at gmail.com> wrote:
 > > If we're going to settle for a term with multiple meanings, then I
 > > still think 'nonlocal' is the one that makes the most sense:
 > > - it's already a keyword
 > To be honest, I think you need to stop raising this. You're right, and
 > it's certainly a lot easier to accept reusing an existing keyword than
 > adding a new one. But you need to convince people that "nonlocal" is
 > right, not that it's easier. You're at risk of giving a distinct "I've
 > got a hammer so it must be a nail" impression here...

As I read Nick, that is *precisely* the impression he *wants* to give:
"if this ain't a nail in da fust place, it don't need no hammerin'

More information about the Python-ideas mailing list