Do not include the end position in slices
This commit is contained in:
parent
9542223f35
commit
3302c185a0
@ -61,12 +61,11 @@
|
|||||||
|
|
||||||
.. method:: move(start, end, to_position)
|
.. method:: move(start, end, to_position)
|
||||||
|
|
||||||
Move the tracks at positions in [``start``, ``end``] to
|
Move the tracks in the slice ``[start:end]`` to ``to_position``.
|
||||||
``to_position``.
|
|
||||||
|
|
||||||
:param start: position of first track to move
|
:param start: position of first track to move
|
||||||
:type start: int
|
:type start: int
|
||||||
:param end: position of last track to move
|
:param end: position after last track to move
|
||||||
:type end: int
|
:type end: int
|
||||||
:param to_position: new position for the tracks
|
:param to_position: new position for the tracks
|
||||||
:type to_position: int
|
:type to_position: int
|
||||||
@ -84,12 +83,12 @@
|
|||||||
|
|
||||||
.. method:: shuffle(start=None, end=None)
|
.. method:: shuffle(start=None, end=None)
|
||||||
|
|
||||||
Shuffles the playlist, optionally a part of the playlist given by
|
Shuffles the entire playlist. If ``start`` and ``end`` is given only
|
||||||
``start`` and ``end``.
|
shuffles the slice ``[start:end]``.
|
||||||
|
|
||||||
:param start: position of first track to shuffle
|
:param start: position of first track to shuffle
|
||||||
:type start: int or :class:`None`
|
:type start: int or :class:`None`
|
||||||
:param end: position of last track to shuffle
|
:param end: position after last track to shuffle
|
||||||
:type end: int or :class:`None`
|
:type end: int or :class:`None`
|
||||||
|
|
||||||
.. attribute:: version
|
.. attribute:: version
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user