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. If we start disallowing similar things for str&friends, would it make sense to require an explicit cast in the case above? I don't think a warning quite fits here. Stefan _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
