[issue9733] Can't iterate over multiprocessing.managers.DictProxy

Ask Solem report at bugs.python.org
Thu Sep 9 10:24:48 CEST 2010


Ask Solem <askh at opera.com> 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 <report at bugs.python.org>
<http://bugs.python.org/issue9733>
_______________________________________


More information about the Python-bugs-list mailing list