-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
BUG/MAINT: Non-native byteorder in random ints #13655
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
Conversation
Warns on RandomState, raises in Generator |
dce88f4
to
88e05c8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, looks good modulo a few small things.
numpy/random/mtrand.pyx
Outdated
if key not in _integers_types: | ||
raise TypeError('Unsupported dtype "%s" for randint' % key) | ||
if dt.byteorder != '=' and dt.byteorder != '|': | ||
import warnings |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is fine to go to the top level. Can you add # numpy 1.17.0, 2019-05-28
or similar as a comment to the deprecation.
Warn that non-native byte order is not supported in randint and integers closes numpy#13159
88e05c8
to
fbd9c51
Compare
I believe I have fixed them all. |
Thanks Kevin! |
Warn that non-native byte order is not supported in randint and integers
closes #13159