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

2009年10月20日 13:56:44 -0700

On Tue, Oct 20, 2009 at 07:57, Mark Dickinson <[email protected]> wrote:
> On Tue, Oct 20, 2009 at 3:50 PM, Eric Smith <[email protected]> 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
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to