[Python-Dev] defaultdict and on_missing()

Guido van Rossum guido at python.org
Mon Feb 27 17:02:12 CET 2006

On 2/27/06, Nick Coghlan <ncoghlan at gmail.com> wrote:
> I wouldn't mind seeing one of the early ideas from PEP 340 being resurrected
> some day, such that the signature for the special method was "__next__(self,
> input)" and for the builtin "next(iterator, input=None)"
> That would go hand in hand with the idea of allowing the continue statement to
> accept an argument though.

Yup. The continue thing we might add in 2.6. The __next__ API in 3.0.

--Guido van Rossum (home page: http://www.python.org/~guido/)

More information about the Python-Dev mailing list