Skip to content

BUG: Ensure Windows choice returns int32#13695

Merged
mattip merged 1 commit intonumpy:masterfrom
bashtage:choice-windows-int32-dtype
Jun 3, 2019
Merged

BUG: Ensure Windows choice returns int32#13695
mattip merged 1 commit intonumpy:masterfrom
bashtage:choice-windows-int32-dtype

Conversation

@bashtage
Copy link
Contributor

@bashtage bashtage commented Jun 1, 2019

Downcast from searchsorted on Windows to ensure int32 is returned

closes #9867

@bashtage bashtage force-pushed the choice-windows-int32-dtype branch from 7ee800c to 7a80918 Compare June 1, 2019 20:34
Copy link
Member

@eric-wieser eric-wieser Jun 1, 2019

Choose a reason for hiding this comment

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

np.int should be deprecated (we just haven't implemented np.__getattr__ yet), you should use int directly

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, fixed.

@bashtage bashtage force-pushed the choice-windows-int32-dtype branch from 57d263b to 1f6f39c Compare June 1, 2019 21:08
Copy link
Member

Choose a reason for hiding this comment

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

nit: trailing whitespace added here

Downcast from searchsorted on Windows to ensure int32 is returned

closes numpy#9867
@mattip
Copy link
Member

mattip commented Jun 2, 2019

LGTM. Any additional reviews?

@mattip mattip merged commit a9d0916 into numpy:master Jun 3, 2019
@bashtage bashtage deleted the choice-windows-int32-dtype branch May 12, 2020 21:38
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.

dtype of np.random.choice differs with presence of p on windows

4 participants