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

Carl Matthew Johnson cmjohnson.mailinglist at gmail.com
Wed Sep 28 12:39:31 CEST 2011

On Sep 28, 2011, at 12:27 AM, Nick Coghlan wrote:

> Hah, def statements are already line noise if you use the full syntax :)
> @what
> def theheck(do:all, these=1, *different, symbols, **mean) -> seriously:
>    """And this is special, too!"""

Slightly OT, but does anyone else feel like function annotations are a bit of a failed experiment? Or have you guys seen them in a real project, not just a demonstration? I find the idea reasonable enough, but I've never thought to use them for anything serious. I wonder if we need to learn any lessons from that experience… The counterpoint here is that the defaults hack is something one often runs across, so a replacement is likely to have decent pickup. 

More information about the Python-ideas mailing list