Dan Stromberg, 01.06.2010 06:48:
> All seems fine, except for the exceptions. When I raise an exception in
> Cython, I see a message on my terminal (I believe there should be none),

I wonder why you didn't think of presenting that "message on your terminal" 
here, so that we know what it says and can /tell/ you if there really 
"should be none".


> I added the add_from_fileno_c/add_from_file
> distinction, because I was hoping that a def would be able to raise an
> exception, after finding that cdef's and cpdef's seemed to have problems
> with it - but it appears that there's some sort of exception barrier
> between Cython and CPython.

No, there isn't. There may be one in your code if you use cdef functions, 
as those can only propagate exceptions when a) their return type implicitly 
allows it or b) they are explicitly declared to raise an exception. You 
should read the Cython docs on exceptions.

Also note that this question would have been more appropriate for the 
cython-users mailing list.

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

Reply via email to