1.1 --- a/lib/builtins.py Tue Nov 14 23:41:45 2006 +0100
1.2 +++ b/lib/builtins.py Tue Nov 14 23:42:21 2006 +0100
1.3 @@ -448,7 +448,10 @@
1.4 def __true__(self):
1.5 return self != 0
1.6
1.7 -class string:
1.8 +class str:
1.9 + def __init__(self, x=None):
1.10 + x.__str__()
1.11 +
1.12 def __add__(self, other):
1.13 if isinstance(other, string):
1.14 return string()
1.15 @@ -798,9 +801,6 @@
1.16 i -= 1
1.17 return result
1.18
1.19 -def str(x):
1.20 - return x.__str__()
1.21 -
1.22 # Special values. None of these definitions should be generated by the compiler.
1.23 # All such definitions should be made in the underlying implementation.
1.24