On 16 February 2010 14:07, Stefan Behnel <[email protected]> wrote:
> Running the test suite on a patched CPython immediately revealed several
> Py3 problems in the tests, so please try to build a patched Py3.2 from SVN
> HEAD or apply the patch to the 3.1.1 release version, run Cython's test
> suite, and try to fix them as you see fit.
>

Indeed.

1) tests/run/complex_numbers*.py:

I'm already working on a quik fix for the issue related to repr() of
complex numbers (basically, it seems that -0.0+0.0 -> +0.0 ... not
sure is this is std behavior)

2) tests/run/extern_builtins_T258.pyx

I simply propose to remove the declaration of __builtin__.str from the
testcase (and use Py_SIZE(L) instead of L.ob_size).

3) tests/run/embedsignatures.pyx

I'm not sure what's going on here, but this is likely a leftover for
the change to string literals match Python-level 'str' type. Stefan, I
need you help here.

Stefan, Can you look at (3) ? I bet you will figure a fix in far less
time than me :-)

>
>
> diff -r 4465a45b8876 Python/ceval.c
> --- a/Python/ceval.c    Mon Feb 15 09:35:16 2010 +0100
> +++ b/Python/ceval.c    Mon Feb 15 20:51:58 2010 +0100
> @@ -1159,7 +1159,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int
>        assert(stack_pointer != NULL);
>        f->f_stacktop = NULL;   /* remains NULL unless yield suspends frame */
>
> -       if (f->f_code->co_flags & CO_GENERATOR) {
> +       if (!throwflag && (f->f_code->co_flags & CO_GENERATOR)) {
>                if (f->f_exc_type != NULL && f->f_exc_type != Py_None) {
>                        /* We were in an except handler when we left,
>                           restore the exception state which was put aside




-- 
Lisandro Dalcin
---------------
Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
PTLC - Güemes 3450, (3000) Santa Fe, Argentina
Tel/Fax: +54-(0)342-451.1594
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to