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 nemeskeyd, rhettinger, serhiy.storchaka, steven.daprano
Date 2021-01-18.19:21:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1610997678.75.0.393393953434.issue42956@roundup.psfhosted.org>
In-reply-to
Content
Perhaps the indices() method will suffice:

    >>> slice(None, 10, 2).indices(8)
    (0, 8, 2)

    >>> range(8)[:10:2]
    range(0, 8, 2)
History
Date User Action Args
2021-01-18 19:21:18rhettingersetrecipients: + rhettinger, steven.daprano, serhiy.storchaka, nemeskeyd
2021-01-18 19:21:18rhettingersetmessageid: <1610997678.75.0.393393953434.issue42956@roundup.psfhosted.org>
2021-01-18 19:21:18rhettingerlinkissue42956 messages
2021-01-18 19:21:18rhettingercreate