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:
74fff22
)
fix annotation for generated Python function wrapper
author
Stefan Behnel
<stefan_ml@behnel.de>
Sun, 1 Dec 2013 07:59:47 +0000
(08:59 +0100)
committer
Stefan Behnel
<stefan_ml@behnel.de>
Sun, 1 Dec 2013 07:59:47 +0000
(08:59 +0100)
Cython/Compiler/Nodes.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/Nodes.py
b/Cython/Compiler/Nodes.py
index
ba1e7e9
..
8f3294b
100644
(file)
--- a/
Cython/Compiler/Nodes.py
+++ b/
Cython/Compiler/Nodes.py
@@
-2941,6
+2941,7
@@
class DefNodeWrapper(FuncDefNode):
def generate_function_definitions(self, env, code):
lenv = self.target.local_scope
# Generate C code for header and body of function
+ code.mark_pos(self.pos)
code.putln("")
code.putln("/* Python wrapper */")
preprocessor_guard = self.target.get_preprocessor_guard()