1.1 --- a/lib/__builtins__/tuple.py Tue Jul 03 15:58:44 2018 +0200
1.2 +++ b/lib/__builtins__/tuple.py Tue Jul 03 16:02:02 2018 +0200
1.3 @@ -3,7 +3,7 @@
1.4 """
1.5 Tuple objects.
1.6
1.7 -Copyright (C) 2015, 2016, 2017 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2015, 2016, 2017, 2018 Paul Boddie <paul@boddie.org.uk>
1.9
1.10 This program is free software; you can redistribute it and/or modify it under
1.11 the terms of the GNU General Public License as published by the Free Software
1.12 @@ -20,11 +20,11 @@
1.13 """
1.14
1.15 from __builtins__.iteration.iterator import itemiterator
1.16 -from __builtins__.sequence import hashable, sequence
1.17 +from __builtins__.sequence import hashable, unpackable
1.18 from native import tuple_init, \
1.19 list_element, list_len, list_setsize, list_setelement
1.20
1.21 -class tuple(sequence, hashable):
1.22 +class tuple(unpackable, hashable):
1.23
1.24 "Implementation of tuple."
1.25
1.26 @@ -65,7 +65,7 @@
1.27 'step'.
1.28 """
1.29
1.30 - return tuple(get_using(sequence.__getslice__, self)(start, end, step))
1.31 + return tuple(get_using(unpackable.__getslice__, self)(start, end, step))
1.32
1.33 def __len__(self):
1.34