On 1 October 2012 09:19, Mark Lawrence <span dir="ltr"><<a href="mailto:breamoreboy@yahoo.co.uk" target="_blank">breamoreboy@yahoo.co.uk</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im">On 01/10/2012 01:58, 88888 Dihedral wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Your question seems vague to me. If you know you are storing<br>
only immutable tuples in a list, then the way to iterate is simple.<br>
<br>
</blockquote>
<br></div>
Does Python have a magic method that let's me use mutable tuples?  I'd also like immutable lists.  Is it worth raising a feature request on the bug tracker?</blockquote><div><br></div><div>Whilst your question is valid, 88888 Dihedral is a bot. </div>

<div><br></div><div>[Lazy] Answers to your questions: no and no.</div><div><br></div><div>Python's tuples are immutable, except from C. They are made this way so program with that in mind, I guess.</div><div><br></div>

<div>That said, an immutable list <i>is</i> a tuple and vice-versa, effectively.</div></div>