1.1 --- a/lib/builtins.py Sat Jun 12 02:47:03 2010 +0200
1.2 +++ b/lib/builtins.py Sat Jun 12 03:04:08 2010 +0200
1.3 @@ -197,7 +197,7 @@
1.4 self.i += 1
1.5 return value
1.6 except IndexError:
1.7 - raise StopIteration
1.8 + raise StopIteration()
1.9
1.10 class long(object):
1.11 def __init__(self, number_or_string=None): pass
1.12 @@ -249,9 +249,14 @@
1.13 def __len__(self): pass
1.14 def __add__(self, other): pass
1.15 def __str__(self): pass
1.16 - def __iter__(self): pass
1.17 def __bool__(self): pass
1.18
1.19 + def __iter__(self):
1.20 +
1.21 + "Return an iterator."
1.22 +
1.23 + return listiterator(self)
1.24 +
1.25 class unicode(basestring):
1.26 pass
1.27