Author steven.daprano
Recipients steven.daprano
Date 2012-08-03.02:54:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1343962443.78.0.878505736017.issue15544@psf.upfronthosting.co.za>
In-reply-to
Content
math.nan fails on some Decimal NANs. For example, while this works:

  >>> import math
  >>> from decimal import Decimal
  >>> math.isnan(Decimal('nan'))
  True

These both fail with ValueError:

  math.isnan(Decimal('snan'))
  math.isnan(Decimal('nan123'))


(Tested on Python 3.2 and 3.3.0a1)
History
Date User Action Args
2012-08-03 02:54:03steven.dapranosetrecipients: + steven.daprano
2012-08-03 02:54:03steven.dapranosetmessageid: <1343962443.78.0.878505736017.issue15544@psf.upfronthosting.co.za>
2012-08-03 02:54:03steven.dapranolinkissue15544 messages
2012-08-03 02:54:02steven.dapranocreate