disable redundant exception checks for optimised builtins
authorStefan Behnel <stefan_ml@behnel.de>
Sat, 28 Dec 2013 15:18:38 +0000 (16:18 +0100)
committerStefan Behnel <stefan_ml@behnel.de>
Sat, 28 Dec 2013 15:18:38 +0000 (16:18 +0100)
Cython/Compiler/Builtin.py

index ecac9da..7db0578 100644 (file)
@@ -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