This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tcaswell
Recipients tcaswell
Date 2019-08-29.16:39:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1567096742.32.0.970581980709.issue37980@roundup.psfhosted.org>
In-reply-to
Content
In python37, numpy1.17 the following runs without warning.

import numpy as np
sorted([1, 2], reverse=np.bool_(True))  

with python38 this emits a

DeprecationWarning: In future, it will be an error for 'np.bool_' scalars to be interpreted as an index

I bisected this back to https://github.com/python/cpython/pull/11952 which looks very intentional, however it is tripping deprecation warnings in numpy to prevent things like `[1, 2, 3][np.bool_(False), np.bool_(True)]` from doing surprising things.

I have previously gotten the sense that core would like to know about these sorts of regressions rather than just handling them down-stream.  I will be opening an issue with numpy as well.
History
Date User Action Args
2019-08-29 16:39:02tcaswellsetrecipients: + tcaswell
2019-08-29 16:39:02tcaswellsetmessageid: <1567096742.32.0.970581980709.issue37980@roundup.psfhosted.org>
2019-08-29 16:39:02tcaswelllinkissue37980 messages
2019-08-29 16:39:02tcaswellcreate