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
39e7f001
Commit
39e7f001
authored
Nov 27, 2020
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '0.29.x'
parents
17336946
b37607f4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
3 deletions
+34
-3
CHANGES.rst
CHANGES.rst
+3
-0
Cython/Utility/Coroutine.c
Cython/Utility/Coroutine.c
+29
-3
test-requirements-cpython.txt
test-requirements-cpython.txt
+2
-0
No files found.
CHANGES.rst
View file @
39e7f001
...
...
@@ -545,6 +545,9 @@ Features added
Bugs
fixed
----------
*
A
crash
when
calling
certain
functions
in
Py3
.9
and
later
was
resolved
.
(
Github
issue
#
3917
)
*
``
const
``
memory
views
of
structs
failed
to
compile
.
(
Github
issue
#
2251
)
...
...
Cython/Utility/Coroutine.c
View file @
39e7f001
...
...
@@ -797,6 +797,32 @@ PyObject *__Pyx_Coroutine_MethodReturn(CYTHON_UNUSED PyObject* gen, PyObject *re
return
retval
;
}
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03030000 && (defined(__linux__) || PY_VERSION_HEX >= 0x030600B3)
static
CYTHON_INLINE
PyObject
*
__Pyx_PyGen_Send
(
PyGenObject
*
gen
,
PyObject
*
arg
)
{
#if PY_VERSION_HEX < 0x030A00A1
return
_PyGen_Send
(
gen
,
arg
);
#else
PyObject
*
result
;
// PyGen_Send() asserts non-NULL arg
if
(
PyGen_Send
(
gen
,
arg
?
arg
:
Py_None
,
&
result
)
==
PYGEN_RETURN
)
{
if
(
PyAsyncGen_CheckExact
(
gen
))
{
assert
(
result
==
Py_None
);
PyErr_SetNone
(
PyExc_StopAsyncIteration
);
}
else
if
(
result
==
Py_None
)
{
PyErr_SetNone
(
PyExc_StopIteration
);
}
else
{
_PyGen_SetStopIterationValue
(
result
);
}
Py_CLEAR
(
result
);
}
return
result
;
#endif
}
#endif
static
CYTHON_INLINE
PyObject
*
__Pyx_Coroutine_FinishDelegation
(
__pyx_CoroutineObject
*
gen
)
{
PyObject
*
ret
;
...
...
@@ -838,13 +864,13 @@ static PyObject *__Pyx_Coroutine_Send(PyObject *self, PyObject *value) {
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03030000 && (defined(__linux__) || PY_VERSION_HEX >= 0x030600B3)
// _PyGen_Send() is not exported before Py3.6
if
(
PyGen_CheckExact
(
yf
))
{
ret
=
_PyGen_Send
((
PyGenObject
*
)
yf
,
value
==
Py_None
?
NULL
:
value
);
ret
=
_
_Pyx_
PyGen_Send
((
PyGenObject
*
)
yf
,
value
==
Py_None
?
NULL
:
value
);
}
else
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03050000 && defined(PyCoro_CheckExact) && (defined(__linux__) || PY_VERSION_HEX >= 0x030600B3)
// _PyGen_Send() is not exported before Py3.6
if
(
PyCoro_CheckExact
(
yf
))
{
ret
=
_PyGen_Send
((
PyGenObject
*
)
yf
,
value
==
Py_None
?
NULL
:
value
);
ret
=
_
_Pyx_
PyGen_Send
((
PyGenObject
*
)
yf
,
value
==
Py_None
?
NULL
:
value
);
}
else
#endif
{
...
...
@@ -939,7 +965,7 @@ static PyObject *__Pyx_Generator_Next(PyObject *self) {
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03030000 && (defined(__linux__) || PY_VERSION_HEX >= 0x030600B3)
// _PyGen_Send() is not exported before Py3.6
if
(
PyGen_CheckExact
(
yf
))
{
ret
=
_PyGen_Send
((
PyGenObject
*
)
yf
,
NULL
);
ret
=
_
_Pyx_
PyGen_Send
((
PyGenObject
*
)
yf
,
NULL
);
}
else
#endif
#ifdef __Pyx_Coroutine_USED
...
...
test-requirements-cpython.txt
View file @
39e7f001
...
...
@@ -2,3 +2,5 @@ jupyter
line_profiler
# transitive dependency of jupyter (17.0+ lacks wheels for Py3.4)
pyzmq<17
pyrsistent<0.16
qtconsole<5
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