in reply to Re^5: Converting python list range expressions to perl
in thread Converting python list range expressions to perl
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Converting python list range expressions to perl
by kcott (Archbishop) on Dec 05, 2022 at 19:02 UTC | |
by LanX (Saint) on Dec 05, 2022 at 20:15 UTC | |
by kcott (Archbishop) on Dec 05, 2022 at 20:25 UTC | |
|