Message92034
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. |
|
Date |
User |
Action |
Args |
2009-08-28 10:28:27 | skrah | set | recipients:
+ skrah |
2009-08-28 10:28:27 | skrah | set | messageid: <1251455307.6.0.293968499648.issue6795@psf.upfronthosting.co.za> |
2009-08-28 10:28:26 | skrah | link | issue6795 messages |
2009-08-28 10:28:26 | skrah | create | |
|