
March 15, 2019
1:48 p.m.
Hi, thanks for your message! I'm not sure it's worth it, I mean, if we want a nice Reverse, let's not just enhance a single step, let's allow for a same reverse to be iterated by multiple iterators in the same time, this mean implementing a ReverseIterator keeping track of the current position. But let's keep the Tutorial simple. I'll be OK though to add a line *after* the example, right before 9.9, telling that this example is basic and could be enhanced by returning a dedicated ReverseIterator instead of returning self, so every one could track the position. If you want to open a PR on http://github.com/python/cpython/ to add this sentense I'll happily merge it. Bests, -- Julien Palard https://mdk.fr