You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
agateblue, jrs65, lisroach, chingc, spaceone and 4 more