|
|
|
|
|
by galkk
646 days ago
|
|
I disagree. The doc states that range function returns an Array, so it looks like to iterate backwards you basically allocate array of indices and use those indices to get values from an original array. Not much better than reverting original array, if you will ask me. Maybe there is some optimization for trivial scenarios, but the referred doc doesn’t mention it. It really looks like python 2 case when you needed to remember that dict.items() returns copy and most of the time you needed iteritems(). |
|