projects
/
platform
/
upstream
/
python-cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9016bdb
)
disable redundant exception checks for optimised builtins
author
Stefan Behnel
<stefan_ml@behnel.de>
Sat, 28 Dec 2013 15:18:38 +0000
(16:18 +0100)
committer
Stefan Behnel
<stefan_ml@behnel.de>
Sat, 28 Dec 2013 15:18:38 +0000
(16:18 +0100)
Cython/Compiler/Builtin.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/Builtin.py
b/Cython/Compiler/Builtin.py
index
ecac9da
..
7db0578
100644
(file)
--- 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