[Python-Dev] defaultdict and on_missing()

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Mar 1 00:05:43 CET 2006


Guido van Rossum wrote:
> On 2/28/06, Nick Coghlan <ncoghlan at gmail.com> wrote:
>
> > PEP 342 opted to extend the generator API instead (using "send") and leave the
> > iterator protocol alone for the time being.
> 
> One of the main reasons for this was the backwards compatibility
> problems at the C level.

I'm really quite happy either way. Having the
functionality available in some way is the important
thing.

I'd still like to see next(x) / x.__next__() in
some form in 3.0 for the sake of consistency,
though.

-- 
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | Carpe post meridiam!          	  |
Christchurch, New Zealand	   | (I'm not a morning person.)          |
greg.ewing at canterbury.ac.nz	   +--------------------------------------+


More information about the Python-Dev mailing list