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

FormatSpime use of map breaks 2to3 #197

Open
wcpettus opened this issue Jun 15, 2019 · 1 comment
Open

FormatSpime use of map breaks 2to3 #197

wcpettus opened this issue Jun 15, 2019 · 1 comment

Comments

@wcpettus
Copy link

This doesn't work in python3:
https://github.com/project8/dragonfly/blob/develop/dragonfly/implementations/spime_endpoints.py#L170
(well, it doesn't work when you call the [0] element in a couple lines)

Error is:
got a: 'map' object is not subscriptable

@laroque
Copy link
Member

laroque commented Jun 16, 2019

Problem is that the map function returns an iterator of type map in python 3.

Solution options are: https://python-future.org/compatible_idioms.html#map

I think probably 4 is best/most consistent with what we've been doing elsewhere

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

No branches or pull requests

2 participants