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-08-28.10:28:26
SpamBayes Score 1.4250691e-05
Marked as misclassified No
Message-id <1251455307.6.0.293968499648.issue6795@psf.upfronthosting.co.za>
In-reply-to
Content
Hi,

a couple of minor issues:

1:
>>> c = getcontext()
>>> c.traps[InvalidOperation] = False
>>> Decimal("NaN").__int__()
Decimal('NaN')

I think the return value should be None.


2:
>>> c = getcontext()
>>> c.traps[InvalidOperation] = False
>>> Decimal("NaN").__long__()
Traceback (most recent call last):
...
RuntimeError: maximum recursion depth exceeded in cmp


3:
>>> setcontext(8)
>>> getcontext()
8

This is just a usability issue, perhaps a type check could be performed.
History
Date User Action Args
2009-08-28 10:28:27skrahsetrecipients: + skrah
2009-08-28 10:28:27skrahsetmessageid: <1251455307.6.0.293968499648.issue6795@psf.upfronthosting.co.za>
2009-08-28 10:28:26skrahlinkissue6795 messages
2009-08-28 10:28:26skrahcreate