--- _abcoll.py.orig 2009-01-12 04:33:29.000000000 -0600 +++ _abcoll.py 2009-01-12 05:11:41.000000000 -0600 @@ -63,6 +63,9 @@ def __next__(self): raise StopIteration + def next(self): + return self.__next__() + def __iter__(self): return self @@ -267,7 +270,7 @@ """Return the popped value. Raise KeyError if empty.""" it = iter(self) try: - value = it.__next__() + value = next(it) except StopIteration: raise KeyError self.discard(value)