Skip to content

BUG: Do not ignore empty tuple of strides in ndarray.__new__#15882

Merged
mattip merged 2 commits intonumpy:masterfrom
eric-wieser:reject-illegal-strides-in-ndarray.__new__
Mar 31, 2020
Merged

BUG: Do not ignore empty tuple of strides in ndarray.__new__#15882
mattip merged 2 commits intonumpy:masterfrom
eric-wieser:reject-illegal-strides-in-ndarray.__new__

Conversation

@eric-wieser
Copy link
Member

Previously this was treated as though an empty set of strides were passed.

Now this is treated as a request for .strides == ().


First commit is shared with #15881

@mattip
Copy link
Member

mattip commented Mar 31, 2020

Since this is a change in behaviour from 1.17, maybe it should have a release note?

Previously this was treated as though an empty set of strides were passed.

Now this is treated as a request for `.strides == ()`.
@eric-wieser
Copy link
Member Author

Can't hurt, added a release note

@eric-wieser eric-wieser force-pushed the reject-illegal-strides-in-ndarray.__new__ branch from 25461c5 to b88415e Compare March 31, 2020 19:48
@mattip mattip merged commit 642181c into numpy:master Mar 31, 2020
@mattip
Copy link
Member

mattip commented Mar 31, 2020

Thanks @eric-wieser

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants