See
3. An Informal Introduction to Python — Lists[
^].
[edit]
The missing start and stop values indicate that it should use the entire list. Setting a step value of -1 causes the values to be reversed, so it treats it as
list[end:start:step]
However, this only works for types that have a
__reversed__()
method. It is just a shorthand way of calling
list.reverse();
.
[/edit]