Message312479
> - 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 |
|
Date |
User |
Action |
Args |
2018-02-21 09:07:49 | mark.dickinson | set | recipients:
+ mark.dickinson, josh.r, smarie |
2018-02-21 09:07:49 | mark.dickinson | set | messageid: <1519204069.41.0.467229070634.issue32886@psf.upfronthosting.co.za> |
2018-02-21 09:07:49 | mark.dickinson | link | issue32886 messages |
2018-02-21 09:07:49 | mark.dickinson | create | |
|