doesn't seem so.
https://docs.python.org/3/glossary.html#term-slice
slice An object usually containing a portion of a sequence. A slice is creat +ed using the subscript notation, [] with colons between numbers when several are given, such as in variable_nam +e[1:3:5]. The bracket (subscript) notation uses slice objects internally.
https://docs.python.org/3/library/functions.html#slice
class slice(stop) class slice(start, stop, step=1) Return a slice object representing the set of indices specified by ran +ge(start, stop, step). The start and step arguments default to None. ...
something is off (-set ;) with this test suite. Unfortunately I have no Python at hand to test ...
references and citations updated
Cheers Rolf
(addicted to the 𐍀𐌴𐍂𐌻 Programming Language :)
Wikisyntax for the Monastery
In reply to Re^6: Converting python list range expressions to perl
by LanX
in thread Converting python list range expressions to perl
by ibm1620
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |