x = y
Aahz Maruch
aahz at panix.com
Tue Feb 6 21:04:41 EST 2001
In article <95pt8e$s54$1 at news.adamastor.ac.za>,
James Lockley <j_lockley at hotmail.com> wrote:
>or just:
>
>>>> x=y[:]
>>>> x[1]='me'
>>>> x
>[[1, 2, 3], 'me']
>>>> y
>[[1, 2, 3], [4, 5, 6]]
But
>>> x[0][1]='you'
>>> x
[[1, 'you', 3], 'me']
>>> y
[[1, 'you', 3], [4, 5, 6]]
--
--- Aahz (Copyright 2001 by aahz at pobox.com)
Androgynous poly kinky vanilla queer het <*> http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6
Life as a contractor: when they tell you it's going to rain, sometimes
it drizzles and sometimes it pours.
More information about the Python-list
mailing list