# HG changeset patch # User Paul Boddie # Date 1486416565 -3600 # Node ID 3c61a4e22626aab669a779f2141fa86e02b3cba9 # Parent 999024a0194e29ef01e581706cd9743d00078b7d Added missing step parameter to tuple.__getslice__. diff -r 999024a0194e -r 3c61a4e22626 lib/__builtins__/tuple.py --- a/lib/__builtins__/tuple.py Mon Feb 06 15:57:31 2017 +0100 +++ b/lib/__builtins__/tuple.py Mon Feb 06 22:29:25 2017 +0100 @@ -53,11 +53,14 @@ return self._hashvalue(hash) - def __getslice__(self, start, end=None): + def __getslice__(self, start, end=None, step=1): - "Return a slice starting from 'start', with the optional 'end'." + """ + Return a slice starting from 'start', with the optional 'end' and + 'step'. + """ - return tuple(get_using(sequence.__getslice__, self)(start, end)) + return tuple(get_using(sequence.__getslice__, self)(start, end, step)) def __len__(self):