8000 BUG: check if object provides len() before trying to iterate it by juliantaylor · Pull Request #5106 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

BUG: check if object provides len() before trying to iterate it #5106

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

Merged
merged 1 commit into from
Sep 23, 2014

Conversation

juliantaylor
Copy link
Contributor

some libraries want object arrays from objects that are iterable but
rely on not providing len() to get the right dtype from numpy.
closes gh-5100

@juliantaylor
Copy link
Contributor Author

rebased for backport

some libraries want object arrays from objects that are iterable but
rely on not providing len() to get the right dtype from numpy.
closes numpygh-5100
@charris
Copy link
Member
charris commented Sep 23, 2014

LGTM pending travis.

charris added a commit that referenced this pull request Sep 23, 2014
BUG: check if object provides len() before trying to iterate it
@charris charris merged commit 5554488 into numpy:master Sep 23, 2014
@charris
Copy link
Member
charris commented Sep 23, 2014

Thanks Julian.

juliantaylor added a commit that referenced this pull request Sep 23, 2014
BUG: check if object provides len() before trying to iterate it
@juliantaylor juliantaylor deleted the sequence-fix branch September 23, 2014 21:48
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

Successfully merging this pull request may close these issues.

NumPy arrays of objects
2 participants
0