On Tue, Nov 24, 2009 at 7:47 PM, Joachim Saul <[email protected]> wrote:
>
> Indeed, Pyrex compatibility is a requirement for me. I want to use/test
> the Cython-generated code but need to be able to revert to Pyrex in case
> of problems.

What kind of problems are you worried about? Could you elaborate on this?

> Anyway, what I have done is
>
> def foo(bytes bar=bytes("")):
>     c_foo(bar)
>

Can you try this: ?

def foo(bytes bar=b""):
    c_foo(bar)




-- 
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