<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 17 February 2017 at 18:40, Chris Angelico <span dir="ltr"><<a href="mailto:rosuav@gmail.com" target="_blank">rosuav@gmail.com</a>></span> wrote:<br><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
Further discussion probably should be redirected to python-list, but<br>
I'll elaborate here to explain why I do not support your proposal.<br></blockquote><div><br>I don't see why you want redirect me to python-list, and how <br>exactly do you see it, start a related discussion there?<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
You have a shelf of books. I ask you to go through the books and read<br>
their titles out. How do you do it?<br></blockquote><div><br>I think first I would suppose that probably I'll need<br>not all of the books, but say 20, or want to count something.<br>And that is life - if I want to batch process 100 movie files<br>obviously I'll first try to process one file. And then, if<br></div><div>all is ok, I'll uncomment the full loop line and comment out the <br></div><div>partial loop line.<br><br></div><div>It is not known how much percent of processing algorithms<br>does not require index *at all*. For me it is probably 20% or so.<br>I do math, all sorts of batch processings and even <br>in unexpected cases "for in range()" comes in handy, e.g:<br><br>D = {"a":5, "b":10, "c":15}<br>keys = D.keys()<br>d = len(D)<br><br>for i in range(0, d) :<br> key = keys[i]<br> print "progress:", i <br><br>So I'd say there is a big amount of cases where it is natural <br>and the proposal should not contradict with current usage, <br>but rather is a syntactic sugar for 'for in range()" which, <br>IMO has some purpose due to frequent usage, hence <br></div><div>there are some PEPs related to this.<br><br><br></div><div>Mikhail<br></div></div></div></div>