mozilla/configman — comment on commit c5291a53afe6c5502370e6b82aa5f1f05bd881aa
File: demo/advanced_demo3.py line 309
By twobraids:

yeah, I see that py3 is using views from the functions, 'keys', 'values' and 'items'. I seem to recall at an Intro to Py3 OSCON talk somewhere in the middle of last decade, that those functions were going to return iterators rather than lists. Those iterators were fragile if changes were made to the underlying dict. By using views, they've avoided that problem.

So, yes, the use of 'items()' is the correct thing to do.