[Python-3000] Iterators for dict keys, values, and items == annoying :)

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Mar 30 03:16:44 CEST 2006


Adam DePrince wrote:

> dicta.keys() - dictb.keys()
> 
> Because each supports the SetView interface, we need only provide a
> single generic SetView.difference operator and move on.

I can see some use for inheritance there. But keep in
mind that there is no multiple inheritance at the C
level, so thinking terms of "mixins" doesn't really
apply. There would need to be a single base class, or
just a bunch of C functions for implementations to
plug into the relevant slots.

-- 
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-3000 mailing list