Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-iteratable map invocation gets modernized to different behavior #190

Open
benbariteau opened this issue Jun 21, 2019 · 0 comments
Open

Comments

@benbariteau
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant