1.1 --- a/lib/__builtins__/str.py Wed Dec 14 00:00:21 2016 +0100
1.2 +++ b/lib/__builtins__/str.py Wed Dec 14 00:03:08 2016 +0100
1.3 @@ -155,12 +155,14 @@
1.4
1.5 return _negate(self.__eq__(other))
1.6
1.7 - def __len__(self):
1.8 + def bytelength(self):
1.9
1.10 - "Return the length of this string."
1.11 + "Return the number of bytes in this string."
1.12
1.13 return str_len(self.__data__)
1.14
1.15 + __len__ = bytelength
1.16 +
1.17 def __str__(self):
1.18
1.19 "Return a string representation."