# HG changeset patch # User Paul Boddie # Date 1479907617 -3600 # Node ID 575d530042c608f976bbd93d531afb8ef8c1ec97 # Parent 25d512835fadc00e03e846804bcd56bd7667fab3 Prevent iteration over strings. Added a docstring to NoneType. diff -r 25d512835fad -r 575d530042c6 lib/__builtins__/none.py --- a/lib/__builtins__/none.py Wed Nov 23 14:26:17 2016 +0100 +++ b/lib/__builtins__/none.py Wed Nov 23 14:26:57 2016 +0100 @@ -20,6 +20,9 @@ """ class NoneType: + + "The type of the None object." + def __bool__(self): "None is always false." diff -r 25d512835fad -r 575d530042c6 lib/__builtins__/str.py --- a/lib/__builtins__/str.py Wed Nov 23 14:26:17 2016 +0100 +++ b/lib/__builtins__/str.py Wed Nov 23 14:26:57 2016 +0100 @@ -96,12 +96,6 @@ def strip(self, chars=None): pass def upper(self): pass - def __iter__(self): - - "Return an iterator." - - return listiterator(self) - class string(basestring): pass