[PATCH] py3: handling .iteritems() vs .items()
Yuya Nishihara
yuya at tcha.org
Tue Jun 7 09:13:05 EDT 2016
On Mon, 6 Jun 2016 15:27:54 -0400, timeless wrote:
> can't we have a py26 path? if we're already casing pythons, i don't
> see a reason not to special case 2.6 too.
If callers want a view, iteritems() doesn't help. The common interface
available in 2.6-3.x is the iterator of (key, value) pairs.
Also, I'm sure our dict-like classes don't override viewitems().
More information about the Mercurial-devel
mailing list