micropython

Change of lib/builtins.py

486:43d594f9c436
lib/builtins.py
     1.1 --- a/lib/builtins.py	Mon Feb 27 21:51:46 2012 +0100
     1.2 +++ b/lib/builtins.py	Mon Feb 27 23:17:50 2012 +0100
     1.3 @@ -544,7 +544,12 @@
     1.4  # Various types.
     1.5  
     1.6  #class ellipsis: pass
     1.7 -class NoneType: pass
     1.8 +
     1.9 +class NoneType:
    1.10 +    def __bool__(self):
    1.11 +        "None is always false."
    1.12 +        return False
    1.13 +
    1.14  class NotImplementedType: pass
    1.15  
    1.16  # General functions.