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/test/test_extcall.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/test/test_extcall.py') diff --git a/Lib/test/test_extcall.py b/Lib/test/test_extcall.py index 453f464a99..552583201c 100644 --- a/Lib/test/test_extcall.py +++ b/Lib/test/test_extcall.py @@ -103,7 +103,7 @@ class Nothing: self.c = 0 def __iter__(self): return self - def next(self): + def __next__(self): if self.c == 4: raise StopIteration c = self.c -- cgit v1.2.1