1.1 --- a/lib/__builtins__/str.py Wed Nov 23 15:17:29 2016 +0100
1.2 +++ b/lib/__builtins__/str.py Wed Nov 23 15:25:48 2016 +0100
1.3 @@ -75,8 +75,15 @@
1.4 return native._str_len(self)
1.5
1.6 def __str__(self):
1.7 + "Return a string representation."
1.8 return self
1.9
1.10 + def __repr__(self):
1.11 + "Return a string literal representation."
1.12 + # NOTE: To be implemented with proper quoting.
1.13 + b = buffer(['"', self, '"'])
1.14 + return str(b)
1.15 +
1.16 def __bool__(self):
1.17 return native._str_nonempty(self)
1.18