1.1 --- a/lib/__builtins__/list.py Fri Dec 02 21:16:06 2016 +0100
1.2 +++ b/lib/__builtins__/list.py Fri Dec 02 22:26:53 2016 +0100
1.3 @@ -66,7 +66,7 @@
1.4
1.5 "Return the length of the list."
1.6
1.7 - return native._list_len(self)
1.8 + return native._list_len(self.__data__)
1.9
1.10 def __add__(self, other): pass
1.11
1.12 @@ -75,7 +75,7 @@
1.13 "Concatenate 'other' to the list."
1.14
1.15 if isinstance(other, list):
1.16 - native._list_concat(self, other)
1.17 + native._list_concat(self, other.__data__)
1.18 else:
1.19 self.extend(other)
1.20 return self
1.21 @@ -92,7 +92,7 @@
1.22
1.23 "Lists are true if non-empty."
1.24
1.25 - return native._list_nonempty(self)
1.26 + return native._list_nonempty(self.__data__)
1.27
1.28 def __iter__(self):
1.29
1.30 @@ -107,13 +107,13 @@
1.31 "Return the item at the normalised (positive) 'index'."
1.32
1.33 self._check_index(index)
1.34 - return native._list_element(self, index)
1.35 + return native._list_element(self.__data__, index)
1.36
1.37 def __set_single_item__(self, index, value):
1.38
1.39 "Set at the normalised (positive) 'index' the given 'value'."
1.40
1.41 self._check_index(index)
1.42 - return native._list_setelement(self, index, value)
1.43 + return native._list_setelement(self.__data__, index, value)
1.44
1.45 # vim: tabstop=4 expandtab shiftwidth=4