This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients Donald Hobson, christian.heimes, p-ganssle, rhettinger
Date 2019-04-22.04:58:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1555909122.67.0.428178108867.issue36693@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2019-04-22 04:58:42rhettingersetrecipients: + rhettinger, christian.heimes, p-ganssle, Donald Hobson
2019-04-22 04:58:42rhettingersetmessageid: <1555909122.67.0.428178108867.issue36693@roundup.psfhosted.org>
2019-04-22 04:58:42rhettingerlinkissue36693 messages
2019-04-22 04:58:42rhettingercreate