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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
cython
Commits
fda65d47
Commit
fda65d47
authored
Jul 16, 2010
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable closures inside cdef functions for now.
parent
0a9993ee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
Cython/Compiler/DebugFlags.py
Cython/Compiler/DebugFlags.py
+1
-1
Cython/Compiler/ParseTreeTransforms.py
Cython/Compiler/ParseTreeTransforms.py
+6
-0
No files found.
Cython/Compiler/DebugFlags.py
View file @
fda65d47
...
...
@@ -7,7 +7,7 @@ debug_coercion = 0
debug_temp_code_comments
=
0
# Write a call trace of the code generation phase into the C code
debug_trace_code_generation
=
0
debug_trace_code_generation
=
1
# Do not replace exceptions with user-friendly error messages
debug_no_exception_intercept
=
0
...
...
Cython/Compiler/ParseTreeTransforms.py
View file @
fda65d47
...
...
@@ -1224,6 +1224,12 @@ class MarkClosureVisitor(CythonTransform):
node
.
needs_closure
=
self
.
needs_closure
self
.
needs_closure
=
True
return
node
def
visit_CFuncDefNode
(
self
,
node
):
self
.
visit_FuncDefNode
(
node
)
if
node
.
needs_closure
:
error
(
node
.
pos
,
"closures inside cdef functions not yet supported"
)
return
node
def
visit_LambdaNode
(
self
,
node
):
self
.
needs_closure
=
False
...
...
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