Re: [Python-Dev] List vs Tuple / Homogeneous vs Heterogeneous / Mutable vs Immutable

2014年4月23日 21:01:29 -0700

On Apr 17, 2014, at 11:49 AM, Brett Cannon <[email protected]> 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
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to