A RetroSearch Logo

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

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2014-April/134248.html below:

[Python-Dev] List vs Tuple / Homogeneous vs Heterogeneous

[Python-Dev] List vs Tuple / Homogeneous vs Heterogeneous / Mutable vs Immutable [Python-Dev] List vs Tuple / Homogeneous vs Heterogeneous / Mutable vs ImmutableŁukasz Langa lukasz at langa.pl
Thu Apr 24 05:59:09 CEST 2014
On Apr 17, 2014, at 11:49 AM, Brett Cannon <bcannon at gmail.com> wrote:

> Think of tuples like a struct in C, lists like an array.

I generally agree but it’s a bit more complex, for instance when you have a homogenous sequence but want it to be hashable. I just hit that today and felt a little bad using tuple because of that “struct” mindset :)

-- 
Best regards,
Łukasz Langa

WWW: http://lukasz.langa.pl/
Twitter: @llanga
IRC: ambv on #python-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20140423/c0639ca8/attachment.html>
More information about the Python-Dev 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