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

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Sep 29 23:37:23 CEST 2011

Ethan Furman wrote:
> Nick Coghlan wrote:
>>     @nonlocal(n=0, lock=threading.Lock())
> I think this fits in nicely with the @staticmethod and @classmethod 
> decorator usage as well.

Maybe @iwastoolazytocreateaclassforthis would be a
better name? :-)


More information about the Python-ideas mailing list