[Python-3000] Thoughts on dictionary views
p.f.moore at gmail.com
Tue Feb 20 16:13:57 CET 2007
On 20/02/07, Steven Bethard <steven.bethard at gmail.com> wrote:
> On 2/20/07, Raymond Hettinger <raymond.hettinger at verizon.net> wrote:
> > My recommendation is to take a more conservative route. Let's make dicts as
> > simple as possible and then introduce a new collections module entry with the
> > views bells and whistles.
> Just to clarfiy, you're suggesting that we still change .keys()
> .values() and .items() to iterators, right?
> If so, +1. I was also starting to get a bit nervous about the new
> complexity of dict(). Putting the view-like behavior into the
> collections module makes good sense.
I'm also +1. (I have similar concerns over the "new IO" proposals I've
seen, but there's nothing concrete there yet, so I'll save that
argument for another day...)
More information about the Python-3000