1.1 --- a/lib/__builtins__/list.py Fri Dec 09 00:09:01 2016 +0100
1.2 +++ b/lib/__builtins__/list.py Fri Dec 09 16:22:37 2016 +0100
1.3 @@ -34,7 +34,7 @@
1.4 # Reserve an attribute for a fragment reference along with some space
1.5 # for elements.
1.6
1.7 - self.__data__ = native._list_init(args is not None and len(args) or 0)
1.8 + self.__data__ = native.list_init(args is not None and len(args) or 0)
1.9
1.10 if args is not None:
1.11 self.extend(args)
1.12 @@ -47,7 +47,7 @@
1.13
1.14 "Append 'value' to the list."
1.15
1.16 - native._list_append(self, value)
1.17 + native.list_append(self, value)
1.18
1.19 def insert(self, i, value): pass
1.20
1.21 @@ -66,7 +66,7 @@
1.22
1.23 "Return the length of the list."
1.24
1.25 - return native._list_len(self.__data__)
1.26 + return native.list_len(self.__data__)
1.27
1.28 def __add__(self, other): pass
1.29
1.30 @@ -75,7 +75,7 @@
1.31 "Concatenate 'other' to the list."
1.32
1.33 if isinstance(other, list):
1.34 - native._list_concat(self, other.__data__)
1.35 + native.list_concat(self, other.__data__)
1.36 else:
1.37 self.extend(other)
1.38 return self
1.39 @@ -92,7 +92,7 @@
1.40
1.41 "Lists are true if non-empty."
1.42
1.43 - return native._list_nonempty(self.__data__)
1.44 + return native.list_nonempty(self.__data__)
1.45
1.46 def __iter__(self):
1.47
1.48 @@ -107,13 +107,13 @@
1.49 "Return the item at the normalised (positive) 'index'."
1.50
1.51 self._check_index(index)
1.52 - return native._list_element(self.__data__, index)
1.53 + return native.list_element(self.__data__, index)
1.54
1.55 def __set_single_item__(self, index, value):
1.56
1.57 "Set at the normalised (positive) 'index' the given 'value'."
1.58
1.59 self._check_index(index)
1.60 - return native._list_setelement(self.__data__, index, value)
1.61 + return native.list_setelement(self.__data__, index, value)
1.62
1.63 # vim: tabstop=4 expandtab shiftwidth=4