[Python-bugs-list] [ python-Bugs-602232 ] dict-proxy lacks iter* methods.
noreply@sourceforge.net
noreply@sourceforge.net
Sat, 31 Aug 2002 08:19:31 -0700
Bugs item #602232, was opened at 2002-08-30 00:40
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=602232&group_id=5470
Category: None
Group: None
>Status: Closed
>Resolution: Out of Date
Priority: 5
Submitted By: Jeremy Fincher (jemfinch)
Assigned to: Nobody/Anonymous (nobody)
Summary: dict-proxy lacks iter* methods.
Initial Comment:
One would think that, as long as the point of dict-proxy
is to simply be a read-only dictionary, it should replicate
all methods that make sense for a read-only dictionary.
As such, it should have iteritems, iterkeys, and
itervalues methods.
I don't know any C wizardry, so I can't offer any
patches, just the suggestion.
----------------------------------------------------------------------
>Comment By: Raymond Hettinger (rhettinger)
Date: 2002-08-31 10:19
Message:
Logged In: YES
user_id=80475
Already fixed in Py2.3.
Closing bug.
>>> dir(A.__dict__)
['__class__', '__contains__', '__delattr__', '__doc__', '__getat
tribute__', '__getitem__', '__hash__', '__init__', '__iter__', '__l
en__', '__new__', '__reduce__', '__repr__', '__setattr__', '__st
r__', 'copy', 'get', 'has_key', 'items', 'iteritems', 'iterkeys', 'ite
rvalues', 'keys', 'values']
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=602232&group_id=5470