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
3cd1e3da
Commit
3cd1e3da
authored
Nov 14, 2017
by
Yury Selivanov
Committed by
Stefan Behnel
Nov 16, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix coroutine.c
Signed-off-by:
Stefan Behnel
<
stefan_ml@behnel.de
>
parent
626f79ae
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
Cython/Utility/Coroutine.c
Cython/Utility/Coroutine.c
+9
-2
No files found.
Cython/Utility/Coroutine.c
View file @
3cd1e3da
...
...
@@ -893,6 +893,11 @@ static PyObject *__Pyx_Generator_Next(PyObject *self) {
if
(
PyGen_CheckExact
(
yf
))
{
ret
=
_PyGen_Send
((
PyGenObject
*
)
yf
,
NULL
);
}
else
#endif
#ifdef __Pyx_Coroutine_USED
if
(
__Pyx_Coroutine_Check
(
yf
))
{
ret
=
__Pyx_Coroutine_Send
(
yf
,
Py_None
);
}
else
#endif
ret
=
Py_TYPE
(
yf
)
->
tp_iternext
(
yf
);
gen
->
is_running
=
0
;
...
...
@@ -1590,6 +1595,8 @@ static PyTypeObject __pyx_CoroutineType_type = {
#endif
};
static
PyTypeObject
__pyx_IterableCoroutineType_type
;
static
int
__pyx_Coroutine_init
(
void
)
{
// on Windows, C-API functions can't be used in slots statically
__pyx_CoroutineType_type
.
tp_getattro
=
PyObject_GenericGetAttr
;
...
...
@@ -1621,8 +1628,8 @@ static PyTypeObject *__pyx_IterableCoroutineType = 0;
#undef __Pyx_Coroutine_Check
#define __Pyx_Coroutine_Check(obj) (__Pyx_Coroutine_CheckExact(obj) || (Py_TYPE(obj) == __pyx_IterableCoroutineType))
#define __Pyx_IterableCoroutine_New(body, closure, name, qualname, module_name) \
__Pyx__Coroutine_New(__pyx_IterableCoroutineType, body, closure, name, qualname, module_name)
#define __Pyx_IterableCoroutine_New(body, c
ode, c
losure, name, qualname, module_name) \
__Pyx__Coroutine_New(__pyx_IterableCoroutineType, body, c
ode, c
losure, name, qualname, module_name)
//////////////////// IterableCoroutine ////////////////////
...
...
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