Message359677
For completeness and to save people going to the NumPy tracker, here's an example of the problem:
Python 3.8.1 (default, Jan 5 2020, 21:32:35)
[Clang 10.0.1 (clang-1001.0.46.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import fractions, numpy
>>> f = fractions.Fraction(numpy.int64(1), 2)
>>> not f
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: __bool__ should return bool, returned numpy.bool_ |
|
Date |
User |
Action |
Args |
2020-01-09 13:25:31 | mark.dickinson | set | recipients:
+ mark.dickinson, rhettinger, francois-durand |
2020-01-09 13:25:31 | mark.dickinson | set | messageid: <1578576331.16.0.299460496516.issue39274@roundup.psfhosted.org> |
2020-01-09 13:25:31 | mark.dickinson | link | issue39274 messages |
2020-01-09 13:25:31 | mark.dickinson | create | |
|