Commit 6069140a authored by Stefan Behnel's avatar Stefan Behnel

fix exception handling for optimised len(builtin)

parent a471b0ca
...@@ -2064,7 +2064,8 @@ class OptimizeBuiltinCalls(Visitor.EnvTransform): ...@@ -2064,7 +2064,8 @@ class OptimizeBuiltinCalls(Visitor.EnvTransform):
PyObject_Size_func_type = PyrexTypes.CFuncType( PyObject_Size_func_type = PyrexTypes.CFuncType(
PyrexTypes.c_py_ssize_t_type, [ PyrexTypes.c_py_ssize_t_type, [
PyrexTypes.CFuncTypeArg("obj", PyrexTypes.py_object_type, None) PyrexTypes.CFuncTypeArg("obj", PyrexTypes.py_object_type, None)
]) ],
exception_value="-1")
_map_to_capi_len_function = { _map_to_capi_len_function = {
Builtin.unicode_type : "__Pyx_PyUnicode_GET_LENGTH", Builtin.unicode_type : "__Pyx_PyUnicode_GET_LENGTH",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment