On Nov 24, 2009, at 4:25 PM, Lisandro Dalcin wrote:

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

I'm curious too.

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

I could be wrong, but I don't think Pyrex supports the b prefix on  
strings.

BTW, it be easier to just do

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

- Robert

_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to