<br><div class="gmail_quote">On 5 October 2010 12:51, Carl M. Johnson <span dir="ltr"><<a href="mailto:cmjohnson.mailinglist@gmail.com">cmjohnson.mailinglist@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
[snip...]<br><div class="im">
<br>
</div>Yup. TANSTAAFL. That's why we shouldn't actually bother to change<br>
things: you lose on the backend what you gain on the frontend. I'm<br>
just curious about whether starting programmers have a strong<br>
preference for one or the other convention or whether both are<br>
confusing.<br></blockquote><div><br>Both teaching new programmers and programmers coming from other languages I've found them confused by the range behaviour and usually end up having to apologise for it (a sure sign of a language wart). <br>
<br>It is *good* that range(5) produces 5 values (0 to 4) but *weird* that range(3, 10) doesn't include the 10.<br><br>Changing it now would be *very* backwards incompatible of course. Python 4 perhaps?<br><br>All the best,<br>
<br>Michael Foord<br><br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div class="h5">_______________________________________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org">Python-ideas@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/python-ideas" target="_blank">http://mail.python.org/mailman/listinfo/python-ideas</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><a href="http://www.voidspace.org.uk">http://www.voidspace.org.uk</a><br><br><br>