1.1 --- a/lib/__builtins__/str.py Fri Nov 18 16:47:07 2016 +0100
1.2 +++ b/lib/__builtins__/str.py Fri Nov 18 17:25:24 2016 +0100
1.3 @@ -74,7 +74,8 @@
1.4 def __len__(self):
1.5 return native._str_len(self)
1.6
1.7 - def __str__(self): pass
1.8 + def __str__(self):
1.9 + return self
1.10
1.11 def __bool__(self):
1.12 return native._str_nonempty(self)
1.13 @@ -101,10 +102,16 @@
1.14
1.15 return listiterator(self)
1.16
1.17 -class str(basestring):
1.18 +class string(basestring):
1.19 pass
1.20
1.21 class unicode(basestring):
1.22 def encode(self, encoding): pass
1.23
1.24 +def str(obj):
1.25 +
1.26 + "Return the string representation of 'obj'."
1.27 +
1.28 + return obj.__str__()
1.29 +
1.30 # vim: tabstop=4 expandtab shiftwidth=4