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 francois-durand, mark.dickinson, rhettinger
Date 2020-01-09.13:25:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1578576331.16.0.299460496516.issue39274@roundup.psfhosted.org>
In-reply-to
Content
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_
History
Date User Action Args
2020-01-09 13:25:31mark.dickinsonsetrecipients: + mark.dickinson, rhettinger, francois-durand
2020-01-09 13:25:31mark.dickinsonsetmessageid: <1578576331.16.0.299460496516.issue39274@roundup.psfhosted.org>
2020-01-09 13:25:31mark.dickinsonlinkissue39274 messages
2020-01-09 13:25:31mark.dickinsoncreate