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 christian.heimes, ezio.melotti, facundobatista, maker, mark.dickinson, rhettinger, skrah, terry.reedy
Date 2013-08-30.16:08:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1377878934.78.0.919167153593.issue8786@psf.upfronthosting.co.za>
In-reply-to
Content
BTW, in _decimal the feature can already be enabled with:

./configure CFLAGS=-DEXTRA_FUNCTIONALITY


>>> IEEEContext(DECIMAL128)
Context(prec=34, rounding=ROUND_HALF_EVEN, Emin=-6143, Emax=6144, capitals=1, clamp=1, flags=[], traps=[])
>>> IEEEContext(DECIMAL64)
Context(prec=16, rounding=ROUND_HALF_EVEN, Emin=-383, Emax=384, capitals=1, clamp=1, flags=[], traps=[])
>>> IEEEContext(DECIMAL32)
Context(prec=7, rounding=ROUND_HALF_EVEN, Emin=-95, Emax=96, capitals=1, clamp=1, flags=[], traps=[])
>>>


>>> IEEEContext(512)
Context(prec=142, rounding=ROUND_HALF_EVEN, Emin=-103079215103, Emax=103079215104, capitals=1, clamp=1, flags=[], traps=[])
>>> IEEEContext(1024)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: argument must be a multiple of 32, with a maximum of 512
>>>

Of course this isn't the official API yet, but I think it's
reasonable.
History
Date User Action Args
2013-08-30 16:08:54skrahsetrecipients: + skrah, rhettinger, terry.reedy, facundobatista, mark.dickinson, christian.heimes, ezio.melotti, maker
2013-08-30 16:08:54skrahsetmessageid: <1377878934.78.0.919167153593.issue8786@psf.upfronthosting.co.za>
2013-08-30 16:08:54skrahlinkissue8786 messages
2013-08-30 16:08:54skrahcreate