From b353c1e8bfe8f9d250cabec277082e0a070d1fa6 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 28 Dec 2013 16:18:38 +0100 Subject: [PATCH] disable redundant exception checks for optimised builtins --- Cython/Compiler/Builtin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Cython/Compiler/Builtin.py b/Cython/Compiler/Builtin.py index ecac9da..7db0578 100644 --- a/Cython/Compiler/Builtin.py +++ b/Cython/Compiler/Builtin.py @@ -87,6 +87,7 @@ class _BuiltinOverride(object): def build_func_type(self, sig=None, self_arg=None): if sig is None: sig = Signature(self.args, self.ret_type) + sig.exception_check = False # not needed for the current builtins func_type = sig.function_type(self_arg) if self.is_strict_signature: func_type.is_strict_signature = True -- 2.7.4