what happens inside?

Chetan Harjani chetan.harjani at gmail.com
Wed Jun 22 11:45:24 EDT 2011


why tuples are immutable whereas list are mutable?
why when we do x=y where y is a list and then change a element in x, y
changes too( but the same is not the case when we change the whole value in
x ), whereas, in tuples when we change x, y is not affected and also we cant
change each individual element in tuple. Someone please clarify.

-- 
echo "Impossible" | cat > /dev/null
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110622/9d5645fc/attachment.html>


More information about the Python-list mailing list