micropython

Change of lib/builtins.py

259:11aaa493c628
lib/builtins.py
     1.1 --- a/lib/builtins.py	Fri Sep 04 00:26:30 2009 +0200
     1.2 +++ b/lib/builtins.py	Thu Sep 24 21:29:29 2009 +0200
     1.3 @@ -148,9 +148,18 @@
     1.4      def __add__(self, other): pass
     1.5      def __iadd__(self, other): pass
     1.6      def __str__(self): pass
     1.7 -    def __iter__(self): pass
     1.8      def __bool__(self): pass
     1.9  
    1.10 +    def __iter__(self):
    1.11 +
    1.12 +        "Return an iterator."
    1.13 +
    1.14 +        return listiterator(self)
    1.15 +
    1.16 +class listiterator(object):
    1.17 +    def __init__(self, l): pass
    1.18 +    def next(self): pass
    1.19 +
    1.20  class long(object):
    1.21      def __init__(self, number_or_string=None): pass
    1.22      def __iadd__(self, other): pass