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
0ea50f34
Commit
0ea50f34
authored
Aug 13, 2011
by
Vitja Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't try to create generator closure for c[p]def functions
parent
4575cc2c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
Cython/Compiler/ParseTreeTransforms.py
Cython/Compiler/ParseTreeTransforms.py
+1
-1
tests/errors/e_cdef_yield.pyx
tests/errors/e_cdef_yield.pyx
+12
-0
No files found.
Cython/Compiler/ParseTreeTransforms.py
View file @
0ea50f34
...
...
@@ -1885,7 +1885,7 @@ class MarkClosureVisitor(CythonTransform):
return
node
def
visit_CFuncDefNode
(
self
,
node
):
self
.
visit
_FuncDefNode
(
node
)
self
.
visit
children
(
node
)
if
node
.
needs_closure
:
error
(
node
.
pos
,
"closures inside cdef functions not yet supported"
)
return
node
...
...
tests/errors/e_cdef_yield.pyx
0 → 100644
View file @
0ea50f34
# mode: error
cdef
cdef
_yield
():
yield
cpdef
cpdef
_yield
():
yield
_ERRORS
=
u"""
4:4: 'yield' not supported here
7:4: 'yield' not supported here
"""
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