Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
9c93f96e
Commit
9c93f96e
authored
Apr 27, 2012
by
Mark Florisson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Call generate_execution_code on cdef specialed functions
parent
968404a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
Cython/Compiler/FusedNode.pyx
Cython/Compiler/FusedNode.pyx
+3
-1
No files found.
Cython/Compiler/FusedNode.pyx
View file @
9c93f96e
...
...
@@ -736,6 +736,8 @@ class FusedCFuncDefNode(StatListNode):
stat
.
generate_function_definitions
(
env
,
code
)
def
generate_execution_code
(
self
,
code
):
# Note: all def function specialization are wrapped in PyCFunction
# nodes in the self.__signatures__ dictnode.
for
default
in
self
.
defaults
:
if
default
is
not
None
:
default
.
generate_evaluation_code
(
code
)
...
...
@@ -748,7 +750,7 @@ class FusedCFuncDefNode(StatListNode):
code
.
mark_pos
(
stat
.
pos
)
if
isinstance
(
stat
,
ExprNodes
.
ExprNode
):
stat
.
generate_evaluation_code
(
code
)
el
if
not
isinstance
(
stat
,
FuncDefNode
):
# or stat.entry.used
:
el
se
:
stat
.
generate_execution_code
(
code
)
if
self
.
__signatures__
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment