From a18af4e7a2091d11478754eb66ae387a85535763 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sat, 21 Apr 2007 15:47:16 +0000 Subject: PEP 3114: rename .next() to .__next__() and add next() builtin. --- Lib/types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/types.py') diff --git a/Lib/types.py b/Lib/types.py index 9811646fc9..22d00f7784 100644 --- a/Lib/types.py +++ b/Lib/types.py @@ -7,7 +7,7 @@ import sys # Iterators in Python aren't a matter of type but of protocol. A large # and changing number of builtin types implement *some* flavor of # iterator. Don't check the type! Use hasattr to check for both -# "__iter__" and "next" attributes instead. +# "__iter__" and "__next__" attributes instead. NoneType = type(None) TypeType = type -- cgit v1.2.1