summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2017-10-24 21:27:50 +0200
committerStefan Behnel <stefan_ml@behnel.de>2017-10-24 21:27:50 +0200
commit95eec209b553a5e7103e4bd12e4a8f356b0950cb (patch)
tree23b734008e06e7fa15022a829cbd9ad6b9e1c474
parent26ab50adda12ce1db3e9fdab730485c9095f8205 (diff)
downloadcython-95eec209b553a5e7103e4bd12e4a8f356b0950cb.tar.gz
Minor speedup in compiled Pythran module.
-rw-r--r--Cython/Compiler/Pythran.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Cython/Compiler/Pythran.py b/Cython/Compiler/Pythran.py
index 0a5743012..d2c3573bc 100644
--- a/Cython/Compiler/Pythran.py
+++ b/Cython/Compiler/Pythran.py
@@ -1,3 +1,5 @@
+# cython: language_level=3
+
from __future__ import absolute_import
from .PyrexTypes import CType, CTypedefType, CStructOrUnionType
@@ -58,7 +60,7 @@ def pythran_unaryop_type(op, type_):
op, pythran_type(type_))
-@cython.ccall
+@cython.cfunc
def _index_access(index_code, indices):
indexing = ",".join([index_code(idx) for idx in indices])
return ('[%s]' if len(indices) == 1 else '(%s)') % indexing