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 mark.dickinson
Recipients josh.r, mark.dickinson, smarie
Date 2018-02-21.09:07:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1519204069.41.0.467229070634.issue32886@psf.upfronthosting.co.za>
In-reply-to
Content
> - register numpy bool ('np.bool_') as a virtual subclass of 'Boolean' only

Be aware that np.bool_ behaves differently from Python's bool type in a number of ways. It may not make sense to have something that tries to abstract over both bool and np.bool_.

>>> import numpy as np
>>> np.bool_(True) + np.bool_(True)
True
>>> ~np.bool_(True)
False
>>> True + True
2
>>> ~True
-2
History
Date User Action Args
2018-02-21 09:07:49mark.dickinsonsetrecipients: + mark.dickinson, josh.r, smarie
2018-02-21 09:07:49mark.dickinsonsetmessageid: <1519204069.41.0.467229070634.issue32886@psf.upfronthosting.co.za>
2018-02-21 09:07:49mark.dickinsonlinkissue32886 messages
2018-02-21 09:07:49mark.dickinsoncreate