[Python-Dev] Explicit Lexical Scoping (pre-PEP?) (original) (raw)

Andrew Clover and-dev at doxdesk.com
Wed Jul 5 11🔞32 CEST 2006


Guido van Rossum <guido at python.org> wrote:

1. do nothing 2. extend global's meaning 3. add outer keyword

2.5. extend global syntax to cover both [really global] and [innermost matching scope].

eg.

global x, y outer # trailing non-keyword global in x, y # re-use keyword not global x # ceci n'est pas un global ... # something less ugly?

Personally it's not a burning need

Agreed. Inability to write as well as read nested scopes is more of an aesthetic wart than a practical one IMO.

-- And Clover mailto:and at doxdesk.com http://www.doxdesk.com/

-- And Clover mailto:and at doxdesk.com http://www.doxdesk.com/



More information about the Python-Dev mailing list