[Python-Dev] SIGCHECK() in longobject.c
Brett Cannon
brett at python.org
Tue Oct 20 22:54:53 CEST 2009
On Tue, Oct 20, 2009 at 07:57, Mark Dickinson <dickinsm at gmail.com> wrote:
> 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.
And this is why you shouldn't have to worry. As long as the tests exercise
both the pure Python and C versions then the other VMs are covered.
-Brett
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20091020/99138bec/attachment.htm>
More information about the Python-Dev
mailing list