initialized list: strange behavior

Arnaud Delobelle arnodel at
Tue Nov 25 17:03:46 CET 2008

Steve Holden <steve at> writes:

> Arnaud Delobelle wrote:
>> Jason Scheirer <jason.scheirer at> writes:
>>> Python is pass-by-reference, not pass-by-value.
>> It's certainly not pass-by-reference, nor is it pass-by-value IMHO.
> Since no lists are being passed as arguments in these examples it's not
> pass-by-anything. Jump off that horse right now!

You're right that Python's calling semantics have nothing to do with the
question asked.  I just thought best not to leave the OP under any


More information about the Python-list mailing list