cython 中的类型错误
TypeError in cython
我有一个正在解析数十亿条记录的 cython 程序。但是,在我的输出中我得到了。
TypeError: 'an integer is required' in cython_test.parse_func ignored
是否有任何编译设置会在其中引发,以便我可以找到该行而不是 cython 处理错误并发出警告?
对于许多本机类型,cython 提供了内置的异常处理。
要传播异常,您需要定义异常。
例如:
cdef int spam() except -1
我有一个正在解析数十亿条记录的 cython 程序。但是,在我的输出中我得到了。
TypeError: 'an integer is required' in cython_test.parse_func ignored
是否有任何编译设置会在其中引发,以便我可以找到该行而不是 cython 处理错误并发出警告?
对于许多本机类型,cython 提供了内置的异常处理。
要传播异常,您需要定义异常。
例如:
cdef int spam() except -1