Message 104322 - Python tracker (original) (raw)
I'd prefer to drop the ExtendedContext completely. Reasons are:
_clamp, prec, emin and emax aren't set to IEEE754 values.
The use of 'extended' is decNumber specific (see http://speleotrove.com/decimal/dncont.html ). In IEEE754 'extended' has yet another meaning (AFAICS).
I can see that it is awkward to remove it, but if there's consensus I'd be willing to work on a patch.
Making clamp visible sounds fine to me. (Personally, I'd rather have capitals non-visible.)
If we make Decimal{32,64,128} contexts available, we should document exactly how the arithmetic deviates from IEEE754.