Steven D'Aprano <[email protected]> added the comment:
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.
----------
nosy: +steven.daprano
versions: -Python 3.6, Python 3.7, Python 3.8, Python 3.9
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue42956>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com