On Sun, Feb 26, 2006 at 03:27:34PM +0100, Massimiliano Leoni wrote:

> Why would you change the Python scoping rules, instead of using the 
> function attributes, available from release 2.1 (PEP 232) ?

Because closures allow for data that isn't trivially reachable by the caller
(or anyone but the function itself.) You can argue that that's unpythonic or
what not, but fact is that the current closures allow that.

-- 
Thomas Wouters <[EMAIL PROTECTED]>

Hi! I'm a .signature virus! copy me into your .signature file to help me spread!
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to