1.1 --- a/lib/__builtins__/str.py Sat Jan 07 00:23:19 2017 +0100
1.2 +++ b/lib/__builtins__/str.py Sat Jan 07 16:23:25 2017 +0100
1.3 @@ -178,8 +178,17 @@
1.4 return str(b)
1.5
1.6 def __bool__(self):
1.7 +
1.8 + "Return whether the string provides any data."
1.9 +
1.10 return str_nonempty(self.__data__)
1.11
1.12 + def __contains__(self, value):
1.13 +
1.14 + "Return whether this string contains 'value'."
1.15 +
1.16 + return self.find(value) != -1
1.17 +
1.18 def endswith(self, s):
1.19
1.20 "Return whether this string ends with 's'."