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