call-by-reference (was Re: Any other Python flaws?)

Alex Martelli aleaxit at yahoo.com
Wed Jun 20 02:25:48 EDT 2001


"Greg Ewing" <see at my.signature> wrote in message
news:3B2FF5AB.E5181BC5 at my.signature...
> Martijn Faassen wrote:
> >
> > I think the use of the word 'variable' is ambiguous. :)
>
> In Python it's clearer to talk about "names" and "bindings"
> rather than "variables" and "values".

*Definitely*!  If we could get this terminology more
widely adopted it would enhance clarity enormously.


> The statement then becomes "you can't change the binding
> of a name in your caller's namespace", which doesn't
> leave much room for misunderstanding.

Again, definitely.


Alex






More information about the Python-list mailing list