1.1 --- a/lib/__builtins__/list.py Wed Nov 23 15:47:45 2016 +0100
1.2 +++ b/lib/__builtins__/list.py Wed Nov 23 15:48:37 2016 +0100
1.3 @@ -20,10 +20,10 @@
1.4 """
1.5
1.6 from __builtins__.iterator import listiterator
1.7 -from __builtins__.sequence import _getitem, _getslice
1.8 +from __builtins__.sequence import sequence
1.9 import native
1.10
1.11 -class list(object):
1.12 +class list(sequence):
1.13
1.14 "Implementation of list."
1.15
1.16 @@ -39,22 +39,9 @@
1.17 if args is not None:
1.18 self.extend(args)
1.19
1.20 - def __getitem__(self, index):
1.21 -
1.22 - "Return the item or slice specified by 'index'."
1.23 -
1.24 - return _getitem(self, index)
1.25 -
1.26 def __contains__(self, value): pass
1.27 def __setitem__(self, index, value): pass
1.28 def __delitem__(self, index): pass
1.29 -
1.30 - def __getslice__(self, start, end=None):
1.31 -
1.32 - "Return a slice starting from 'start', with the optional 'end'."
1.33 -
1.34 - return _getslice(self, start, end)
1.35 -
1.36 def __setslice__(self, start, end, slice): pass
1.37 def __delslice__(self, start, end): pass
1.38