Skip to content

BUG: Fix empty_like to respect shape=()#15881

Merged
mattip merged 2 commits intonumpy:masterfrom
eric-wieser:empty_like-0d
Mar 31, 2020
Merged

BUG: Fix empty_like to respect shape=()#15881
mattip merged 2 commits intonumpy:masterfrom
eric-wieser:empty_like-0d

Conversation

@eric-wieser
Copy link
Member

Previously this was treated the same as shape=None.

Fixes gh-15880.

Previously this was treated the same as shape=None.
Copy link
Contributor

@pentschev pentschev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching and fixing this @eric-wieser !

@mattip mattip merged commit f01b4e5 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.

empty_like does not respect the shape argument if it is ()

4 participants