[issue40620] Range tutorial shorthand could be made clearer

2020-05-18 Thread Rahul Kumaresan
Change by Rahul Kumaresan : -- nosy: +rahul-kumi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40620] Range tutorial shorthand could be made clearer

2020-05-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: This block is the same in 3.9 and 3.8. My first though is this block is a holdover from 2.7, where range returned list. But looking at what is written previously, I think your interpretation is correct -- and agree that something other that code and

[issue40620] Range tutorial shorthand could be made clearer

2020-05-14 Thread Chas Belov
New submission from Chas Belov : I found https://docs.python.org/3.7/tutorial/controlflow.html#the-range-function section 4.3 confusing. The range() Function shows the following example: >>> for i in range(5): ... print(i) ... 0 1 2 3 4 [some instructional text] range(5, 10) 5, 6,