<div dir="ltr">It's definitely something that should be put in some documentation, probably at the point when people have learned enough to be designing their own programs where this issue comes up -- before they're wizards but well after they have learned the semantic differences between lists and tuples.<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Apr 17, 2014 at 11:49 AM, Brett Cannon <span dir="ltr"><<a href="mailto:bcannon@gmail.com" target="_blank">bcannon@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><br><br><div>On Thu Apr 17 2014 at 2:43:35 PM, Leandro Pereira de Lima e Silva <<a href="mailto:leandropls@cpti.cetuc.puc-rio.br" target="_blank">leandropls@cpti.cetuc.puc-rio.br</a>> wrote:</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hello there!<div><br></div><div>I've stumbled upon this discussion on python-dev about what the choice between using a list or a tuple is all about in 2003:</div><div style="font-family:arial,sans-serif;font-size:13px">
1. <a href="https://mail.python.org/pipermail/python-dev/2003-March/033962.html" target="_blank">https://mail.python.org/pipermail/python-dev/2003-March/033962.html</a></div><div style="font-family:arial,sans-serif;font-size:13px">
2. <a href="https://mail.python.org/pipermail/python-dev/2003-March/034029.html" target="_blank">https://mail.python.org/pipermail/python-dev/2003-March/034029.html</a></div><div><br></div><div>There's a vague comment about it on python documentation but afaik there the discussion hasn't made into any PEPs. Is there an understanding about it?</div>
</div></blockquote><div><br></div></div></div><div>Think of tuples like a struct in C, lists like an array. That's just out of Guido's head so I don't think we have ever bothered to write it down somewhere as an important distinction of the initial design that should be emphasized. </div>
<br>_______________________________________________<br>
Python-Dev mailing list<br>
<a href="mailto:Python-Dev@python.org">Python-Dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-dev" target="_blank">https://mail.python.org/mailman/listinfo/python-dev</a><br>
Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/guido%40python.org" target="_blank">https://mail.python.org/mailman/options/python-dev/guido%40python.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>--Guido van Rossum (<a href="http://python.org/~guido">python.org/~guido</a>)
</div>