Ask Solem <[email protected]> added the comment:
> I expected I could iterate over a DictProxy as I do over a
> regular dict.
DictProxy doesn't support iterkeys(), itervalues(), or iteritems() either.
So while
iter(d)
could do
iter(d.keys())
behind the scenes, it would mask the fact that this would not return
an *iterator* over the keys, but send a potentially long list of keys back to
the client.
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue9733>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com