[Python-Dev] SIGCHECK() in longobject.c

Mark Dickinson dickinsm at gmail.com
Tue Oct 20 16:57:13 CEST 2009


On Tue, Oct 20, 2009 at 3:50 PM, Eric Smith <eric at trueblade.com> wrote:
>> The code was working a few months ago (with all Decimal tests
>> passing), but there have been some changes and bugfixes since
>> then.  I might try to resurrect that code, dropping the _Decimal type and
>> just concentrating on Deccoeff.
>
> My only concern about this is the effect it would have on IronPython,
> Jython, PyPy, and other alternate implementations that use the stdlib.

Yes, that worries me a bit, too.  I have the same worry with the idea
of rewriting the entire decimal module in C.

The Deccoeff type is very simple, though.  It would be easy to create
a pure Python version of it, and then do something like:

try:
    from _decimal import Deccoeff  # try to get C version
except ImportError:
    from deccoeff import Deccoeff  # else use Python fallback code.

Mark


More information about the Python-Dev mailing list