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
When using the "map" fixer, if a the map call takes multiple iteratables, then it uses six.moves.map, which changes behavior if the iterables are of different length. Specifically, if one iteratable is longer than the others, it stops after the shortest iterable is exhausted instead of filling in Nones as python 2'd map builtin does. The more correct fix in this case is to use zip_longest.
The text was updated successfully, but these errors were encountered:
When using the "map" fixer, if a the
map
call takes multiple iteratables, then it usessix.moves.map
, which changes behavior if the iterables are of different length. Specifically, if one iteratable is longer than the others, it stops after the shortest iterable is exhausted instead of filling inNone
s as python 2'd map builtin does. The more correct fix in this case is to use zip_longest.The text was updated successfully, but these errors were encountered: