8000 BUG: don't propagate subtypes from np.where by juliantaylor · Pull Request #5105 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

BUG: don't propagate subtypes from np.where #5105

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

the C implementation cannot preserve subclass attributes, this needs a
python wrapper using indexing for subclasses.
closes gh-5095

@juliantaylor
Copy link
Contributor Author

rebased for backport

supporting subclasses should be possibly and I'll probably do so, so no tests

the C implementation cannot preserve subclass attributes, this needs a
python wrapper using indexing for subclasses.
closes numpygh-5095
@juliantaylor juliantaylor changed the title BUG: don't propagte subtypes from np.where BUG: don't propagate subtypes from np.where Sep 23, 2014
@charris
Copy link
Member
charris commented Sep 23, 2014

LGTM pending travis. I've wondered if the iterator works correctly with subtypes.

charris added a commit that referenced this pull request Sep 23, 2014
BUG: don't propagate subtypes from np.where
@charris charris merged commit 04d507f into numpy:master Sep 23, 2014
juliantaylor added a commit that referenced this pull request Sep 23, 2014
BUG: don't propagate subtypes from np.where
@juliantaylor juliantaylor deleted the where-no-subtype 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.

BUG np.where half-initializes subclass of output
2 participants
0