Some language proposals.

Terry Reedy tjreedy at udel.edu
Tue Feb 24 14:04:51 EST 2004


"Antoon Pardon" <apardon at forel.vub.ac.be> wrote in message
news:slrnc3mss6.pob.apardon at trout.vub.ac.be...
> What I would like to change is access to variables on
> an intermediate scope.

As I understand, you want write (rebind) access in addition to read
access -- without having to wrap the variable in a mutable, which one can
do at present.  Some proposals to do this have been discussed on the PyDev
list.  They should be listed in Brett Cannon's summaries, which are
archived on Python.org.

Bottom line so far: given that write access is only clumsy (sometimes,
through wrapping) rather than impossible, no proposal struck enough people
as worth the bother of a syntax change.  Nested functions are much rarer
than unnested.  Needing to rebind an outer local, rather than merely read
or mutate, is rarer still.

Terry J. Reedy







More information about the Python-list mailing list