Message340638
This all seems proper to me. In each case, an iterator is returned -- that is the documented behavior. The specific type of iterator is allowed to vary in ways that are convenient for the implementation.
Specifically, reversed() will call __reversed__() which must return an iterator but its type is allowed to vary. That is really convenient for handling extreme ranges separately from the fast, common case of smaller ranges. |
|
Date |
User |
Action |
Args |
2019-04-22 04:58:42 | rhettinger | set | recipients:
+ rhettinger, christian.heimes, p-ganssle, Donald Hobson |
2019-04-22 04:58:42 | rhettinger | set | messageid: <1555909122.67.0.428178108867.issue36693@roundup.psfhosted.org> |
2019-04-22 04:58:42 | rhettinger | link | issue36693 messages |
2019-04-22 04:58:42 | rhettinger | create | |
|