Now I've got another failure with my code.

The following works ():

def winsize(size):
    try:
        w, h = size
    except TypeError:
        w = size
        h = size
    return w, h

But the following not:

def winsize(size):
    try:
        w, h = size
    except TypeError:
        w = h = size
    return w, h


So it seems there is a problem with a parallel assignement appearing
in the body of an 'except' clause.


On 7/11/08, Stefan Behnel <[EMAIL PROTECTED]> wrote:
> Hi,
>
>
>  Lisandro Dalcin wrote:
>  > Hi all, after some time of inactivity, I'm back. I've just pulled
>  > cython-devel repo and I'm having some trouble.
>
>
> Yes, so do I. :-/
>
>
>
>  > 1) It seems that the transforms code does not play nicely with the
>  > compiled Scanners.so. After installing Cython, I have to manually
>  > remove Scanners.so to get Cython running.
>
>
> Not sure what the problem is, I'll have to dig into that.
>
>
>
>  > 2) There is a typo, trivial to fix (just change a 'p' to a 's'), the
>
>
> Thanks.
>
>
>
>  > 3) But now, the code above seems to do not plat nice with the following:
>  >
>  > Error converting Pyrex file to C:
>  > ------------------------------------------------------------
>  > ...
>  > cdef extern from *:
>  >     int foo(int x[])
>  >     int bla(int[])
>  >               ^
>  > ------------------------------------------------------------
>  > /tmp/qq.pyx:3:15: Basic C types do not support buffer access
>
>
> Hmm, ok, I commented that code out for now and added a test case.
>
>  Should be back up working (at least for this part).
>
>  Stefan
>  _______________________________________________
>  Cython-dev mailing list
>  [email protected]
>  http://codespeak.net/mailman/listinfo/cython-dev
>


-- 
Lisandro Dalcín
---------------
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