why?

Wojtek Walczak gminick at hacker.pl
Tue Dec 3 10:08:41 EST 2002


Dnia Mon, 02 Dec 2002 22:35:35 GMT, sami sieranoja napisał(a):
>>>> doing = ['a','b','c']
>>>> doing[1] = ('b','c')
[...]
> Why can't I change that value from 'b' to 'i' ?  Why?
Because tuples are immutable. Take a look at:
<http://www.diveintopython.org/odbchelper_tuple.html>

-- 
[ ] gminick (at) underground.org.pl  http://gminick.linuxsecurity.pl/ [ ]
[ "Po prostu lubie poranna samotnosc, bo wtedy kawa smakuje najlepiej." ]



More information about the Python-list mailing list