Reputation: 2617
I have a cython program that is parsing billions of records. However, in my output i am getting.
TypeError: 'an integer is required' in cython_test.parse_func ignored
Is there any setting for compilation in which it will raise so I can find the line instead of cython handling the error and giving a warning?
Upvotes: 0
Views: 487
Reputation: 2617
for a number of native types, cython provides exception handling built in.
to propagate the exception, you need to define an exception.
for example:
cdef int spam() except -1
Upvotes: 1