commit | 6b27cda64386195cd07dfb686e9486f1c4bc3159 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Sat Sep 24 21:23:05 2005 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Sat Sep 24 21:23:05 2005 +0000 |
tree | 277a5c96e9683c63b573b508f8c4bd2d1374aed8 | |
parent | 9ceebd544516908e67c0f0d92c7a5f484e12beeb [diff] [blame] |
Convert iterator __len__() methods to a private API.
diff --git a/Misc/NEWS b/Misc/NEWS index 00bd247..409126a 100644 --- a/Misc/NEWS +++ b/Misc/NEWS
@@ -12,6 +12,10 @@ Core and builtins ----------------- +- All iterators now have a Boolean value of true. Formerly, some iterators + supported a __len__() method which evaluated to False when the iterator + was empty. + - On 64-bit platforms, when __len__() returns a value that cannot be represented as a C int, raise OverflowError.