lib/builtins.py | raw changeset files shortlog |
1.1 --- a/lib/builtins.py Sat Jun 09 18:26:25 2012 +0200 1.2 +++ b/lib/builtins.py Sat Jun 09 18:27:00 2012 +0200 1.3 @@ -95,6 +95,12 @@ 1.4 def startswith(self, s): pass 1.5 def endswith(self, s): pass 1.6 1.7 + def __iter__(self): 1.8 + 1.9 + "Return an iterator." 1.10 + 1.11 + return listiterator(self) 1.12 + 1.13 class bool(object): 1.14 def __bool__(self): 1.15 "Identity operation."