1.1 --- a/lib/__builtins__/str.py Thu Mar 23 16:40:57 2017 +0100
1.2 +++ b/lib/__builtins__/str.py Thu Mar 23 23:36:32 2017 +0100
1.3 @@ -22,7 +22,7 @@
1.4 from __builtins__.operator import _negate
1.5 from __builtins__.sequence import hashable, itemaccess
1.6 from __builtins__.types import check_int
1.7 -from native import int_new, str_add, str_lt, str_gt, str_eq, str_ord, \
1.8 +from native import str_add, str_lt, str_gt, str_eq, str_ord, \
1.9 str_substr
1.10
1.11 WHITESPACE = (" ", "\f", "\n", "\r", "\t")
1.12 @@ -53,7 +53,7 @@
1.13 else:
1.14 self.__data__ = None
1.15 self.__key__ = None
1.16 - self.__size__ = None
1.17 + self.__size__ = 0
1.18
1.19 # Internal methods.
1.20
1.21 @@ -157,7 +157,7 @@
1.22
1.23 "Return the number of bytes in this string."
1.24
1.25 - return int_new(self.__size__)
1.26 + return self.__size__
1.27
1.28 # General type methods.
1.29
1.30 @@ -165,7 +165,7 @@
1.31
1.32 "Return whether the string provides any data."
1.33
1.34 - return int_new(self.__size__).__bool__()
1.35 + return self.__size__.__bool__()
1.36
1.37 def __contains__(self, value):
1.38