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
Gwenaël Samain
cython
Commits
cc65e45c
Commit
cc65e45c
authored
Jan 01, 2014
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix refnanny counting for StopIteration value in yield-from
parent
77eb0f6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+2
-0
No files found.
Cython/Compiler/ExprNodes.py
View file @
cc65e45c
...
@@ -7884,9 +7884,11 @@ class YieldFromExprNode(YieldExprNode):
...
@@ -7884,9 +7884,11 @@ class YieldFromExprNode(YieldExprNode):
# either error or sub-generator has normally terminated: return value => node result
# either error or sub-generator has normally terminated: return value => node result
if
self
.
result_is_used
:
if
self
.
result_is_used
:
# YieldExprNode has allocated the result temp for us
# YieldExprNode has allocated the result temp for us
code
.
putln
(
"%s = NULL;"
%
self
.
result
())
code
.
putln
(
"if (unlikely(__Pyx_PyGen_FetchStopIterationValue(&%s) < 0)) %s"
%
(
code
.
putln
(
"if (unlikely(__Pyx_PyGen_FetchStopIterationValue(&%s) < 0)) %s"
%
(
self
.
result
(),
self
.
result
(),
code
.
error_goto
(
self
.
pos
)))
code
.
error_goto
(
self
.
pos
)))
code
.
put_gotref
(
self
.
result
())
else
:
else
:
code
.
putln
(
"PyObject* exc_type = PyErr_Occurred();"
)
code
.
putln
(
"PyObject* exc_type = PyErr_Occurred();"
)
code
.
putln
(
"if (exc_type) {"
)
code
.
putln
(
"if (exc_type) {"
)
...
...
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