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

jcm grumble at
Fri Jun 15 16:08:58 CEST 2001

Martijn Faassen <m.faassen at> wrote:

> I agree that nobody agrees on whatever 'call-by-reference' means, or what
> 'call-by-value' means. I mean, I'm here confused why you'd say C++ doesn't
> support call-by-value while Python apparently does. :)

In my experience, there's good agreement about what call-by-reference
means just about everywhere but in newsgroups.  Python supports only
call-by-value -- you can't change the value of a variable in your
caller's scope (globals aside).

More information about the Python-list mailing list