A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2001-April/080045.html below:

list vs tuple

list vs tuple list vs tupleRemco Gerlich scarblac at pino.selwerd.nl
Sun Apr 1 11:56:27 EDT 2001
deadmeat <root@[127.0.0.1]> wrote in comp.lang.python:
> > The same statement behaves *exactly the same*.
> 
> No, it doesn't.
> 
> > It's the next statements
> > (b[5] = 9, b = 9) that behave entirely differently.
> 
> Are you on crack?  a = b in the first example copies the data across.

It does not. It merely makes the pointer 'a' point to the same thing 'b' is
pointing to. '=' never copies, that would be inconsistent.

-- 
Remco Gerlich

More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4