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
Kirill Smelkov
cython
Commits
e9dbd6df
Commit
e9dbd6df
authored
Nov 03, 2017
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '0.27.x'
parents
109f07b9
8ad16fc8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
Cython/Utility/Coroutine.c
Cython/Utility/Coroutine.c
+8
-1
No files found.
Cython/Utility/Coroutine.c
View file @
e9dbd6df
...
@@ -1730,13 +1730,20 @@ static void __Pyx__ReturnWithStopIteration(PyObject* value) {
...
@@ -1730,13 +1730,20 @@ static void __Pyx__ReturnWithStopIteration(PyObject* value) {
Py_INCREF
(
value
);
Py_INCREF
(
value
);
exc
=
value
;
exc
=
value
;
}
}
#if CYTHON_FAST_THREAD_STATE
__Pyx_PyThreadState_assign
__Pyx_PyThreadState_assign
if
(
!
$
local_tstate_cname
->
exc_type
)
{
#if PY_VERSION_HEX >= 0x030700A2
if
(
!
$
local_tstate_cname
->
exc_state
.
exc_type
)
#else
if
(
!
$
local_tstate_cname
->
exc_type
)
#endif
{
// no chaining needed => avoid the overhead in PyErr_SetObject()
// no chaining needed => avoid the overhead in PyErr_SetObject()
Py_INCREF
(
PyExc_StopIteration
);
Py_INCREF
(
PyExc_StopIteration
);
__Pyx_ErrRestore
(
PyExc_StopIteration
,
exc
,
NULL
);
__Pyx_ErrRestore
(
PyExc_StopIteration
,
exc
,
NULL
);
return
;
return
;
}
}
#endif
#else
#else
args
=
PyTuple_Pack
(
1
,
value
);
args
=
PyTuple_Pack
(
1
,
value
);
if
(
unlikely
(
!
args
))
return
;
if
(
unlikely
(
!
args
))
return
;
...
...
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