[issue8540] Make Context._clamp public in decimal module
Stefan Krah
report at bugs.python.org
Sat May 22 12:11:29 CEST 2010
Stefan Krah <stefan-usenet at bytereef.org> added the comment:
I'm busy implementing the IEEE754 contexts for cdecimal. To keep things
in sync, it would be nice to agree how they should be created.
Suggestions:
1) c = Decimal64Context
2) c = Context(Decimal64)
3) ?
I have a preference for 2). It's clear that you get a new Object and
the user does not have to wonder if a template context will be
contaminated when using setcontext(Decimal64Context).
(I know there are measures against that, but setcontext( Context(Decimal64))
is explicit rather than implicit.)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8540>
_______________________________________
More information about the Python-bugs-list
mailing list