Files
deb-python-oslo.versionedob…/oslo_versionedobjects
Victor Stinner 3ae09aebff Enhance dict compat of VersionedObjectDictCompat
Add more dictionary methods to VersionedObjectDictCompat:

 * __iter__()
 * keys(), iterkeys()
 * values(), itervalues()

Thanks to new methods, dict constructor now accepts
VersionedObjectDictCompat: it's possible to write directly dict(obj)
instead of having to write dict(obj.iteritems()).

On Python 3, items() now returns an iterator instead of a list, to
respect Python 3 dictionary API, as the new keys() and values() methods.

Keep iterkeys(), itervalues() and iteritems() on Python 3, even if
Python 3 dictionaries don't have these methods, just to ease the
transition from Python 2 to Python 3 in Nova.

Change-Id: I4c52d44c7ba49f98b1bbd123209fce7b70ade98d
2015-05-13 22:21:45 +02:00
..
2015-03-12 15:41:24 +00:00
2015-02-02 16:24:14 -05:00
2015-02-16 11:19:31 +01:00
2015-05-08 19:14:17 +00:00
2015-02-02 15:07:55 -05:00