Open
Description
lib2to3.fixes.fix_dict
will basically wrap any call to dict.keys()
, .values()
or .items()
in list()
no matter its context.
However as far as I can tell the calls are more or less pointless when the result is either directly iterated upon (e.g. for k, v in d.items()
) or checked for containment (e.g. if a in d.keys()
) leading to lots of diff-noise to revert.
Would be nice if python-future had its own dict-iteration fixer avoiding this annoyance.