Real Problems with Python

Neel Krishnaswami neelk at brick.cswv.com
Sun Feb 13 14:24:37 EST 2000


Michael Hudson <mwh21 at cam.ac.uk> wrote:
>
> It would also be nice if people got the terminology right; Python
> *is* lexically scoped, because references to a name can only appear
> within code that is textually contained in the establishing contruct
> (says he paraphrasing from cltl2).The alternative is the poorly
> named "dynamic scope" which would mean things like: [..examples
> elided...]

Python is most definitely neither lexically scoped nor dynamically
scoped, as either term is commonly used. I've found that describing
Python as having three scopes pretty much gets the idea across
unambiguously.


Neel



More information about the Python-list mailing list