initialized list: strange behavior
Arnaud Delobelle
arnodel at googlemail.com
Tue Nov 25 11:03:46 EST 2008
Steve Holden <steve at holdenweb.com> writes:
> Arnaud Delobelle wrote:
>> Jason Scheirer <jason.scheirer at gmail.com> 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
misapprehension.
--
Arnaud
More information about the Python-list
mailing list