On Sep 16, 2009, at 7:56 AM, Stefan Behnel wrote:

> Lisandro Dalcin wrote:
>> cdef void foo(a): # "a" is untyped
>>     cdef list b
>>     b = a # implicit downcast object -> list
>
> I didn't try, but given that you consider this a problem, I assume  
> that
> Cython currently allows this and you get a runtime error here if a  
> is not a
> list, right? I would expect users to wrap that code by a type test  
> anyway.

The way I see it, if the user doesn't wrap it by a type test, Cython  
does it for you.

- Robert

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

Reply via email to