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 skrah
Recipients skrah
Date 2009-10-03.13:59:22
SpamBayes Score 6.81478e-08
Marked as misclassified No
Message-id <1254578364.09.0.56728742883.issue7049@psf.upfronthosting.co.za>
In-reply-to
Content
If precision 1 is aupported, the following results should not be NaN:

Python 2.7a0 (trunk:74738, Sep 10 2009, 11:50:08) 
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from decimal import *
>>> setcontext(Context(prec=1, rounding=ROUND_UP,
Emin=-999999999999999999, Emax=999999999999999999, capitals=1, flags=[],
traps=[]))
>>> pow(Decimal(0), Decimal(3), Decimal(70))
Decimal('NaN')
>>> pow(Decimal(3), Decimal(0), Decimal(70))
Decimal('NaN')
>>>
History
Date User Action Args
2009-10-03 13:59:24skrahsetrecipients: + skrah
2009-10-03 13:59:24skrahsetmessageid: <1254578364.09.0.56728742883.issue7049@psf.upfronthosting.co.za>
2009-10-03 13:59:23skrahlinkissue7049 messages
2009-10-03 13:59:22skrahcreate