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

The zip function in python 3 returns a object #23

Open
pmsmall opened this issue Apr 26, 2019 · 1 comment
Open

The zip function in python 3 returns a object #23

pmsmall opened this issue Apr 26, 2019 · 1 comment

Comments

@pmsmall
Copy link

pmsmall commented Apr 26, 2019

In python 2, zip() returns a list, but a object in python 3.
python 2:

211 dtype = np.dtype(zip(fieldnames, typenames))

python 3:

211 dtype = np.dtype(list(zip(fieldnames, typenames)))

@yiliu-coding
Copy link

Many thanks, helps a lot with one of so many bugs!

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

2 participants