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 steven.daprano
Recipients nemeskeyd, steven.daprano
Date 2021-01-18.10:55:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1610967325.09.0.887570982741.issue42956@roundup.psfhosted.org>
In-reply-to
Content
All versions older than 3.10 are in feature freeze and cannot get new features or enhancements, only bugfixes.

Slices are far more general than range objects. How do you propose to deal with slice objects such as this?

    slice('item', (23, {'key': 'value'}, 4.5), ('a', 2))

Even for plain integer arguments, the meanings are not the same. Consider the slice:

    slice(10, -2)  # Start at the 10th item, end at the second-last.

versus the range:

    range(10, -2)  # Empty range.
History
Date User Action Args
2021-01-18 10:55:25steven.dapranosetrecipients: + steven.daprano, nemeskeyd
2021-01-18 10:55:25steven.dapranosetmessageid: <1610967325.09.0.887570982741.issue42956@roundup.psfhosted.org>
2021-01-18 10:55:25steven.dapranolinkissue42956 messages
2021-01-18 10:55:25steven.dapranocreate