[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
|
|
Subscribe / Log in / New account

GUADEC: Luis Villa points GNOME at the web

GUADEC: Luis Villa points GNOME at the web

Posted Aug 2, 2010 22:49 UTC (Mon) by ras (subscriber, #33059)
In reply to: GUADEC: Luis Villa points GNOME at the web by nye
Parent article: GUADEC: Luis Villa points GNOME at the web

Posted Aug 2, 2010 15:34 UTC (Mon) by nye (subscriber, #51576):

Python doesn't even have closures

Quoting from Wikipedia: Python has had support for lexical closures since version 2.2.


to post comments

GUADEC: Luis Villa points GNOME at the web

Posted Aug 3, 2010 10:37 UTC (Tue) by nye (guest, #51576) [Link]

Thanks for the correction. Since I can't imagine the last time I looked was before 2.2, I can only assume that Python's weird scoping led me to the conclusion that closures were useless, and I misremembered that as 'absent'.

Many more thanks for introducing me to the 'nonlocal' keyword - finally a good reason to use Python 3.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds