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
Boxiang Sun
cython
Commits
cd3e1897
Commit
cd3e1897
authored
Oct 31, 2017
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent MinGW builds on Windows from relying on a non-exported symbol for "_PyGen_Send".
Closes #1968.
parent
eb270f7e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
CHANGES.rst
CHANGES.rst
+3
-0
Cython/Utility/Coroutine.c
Cython/Utility/Coroutine.c
+3
-3
No files found.
CHANGES.rst
View file @
cd3e1897
...
...
@@ -14,6 +14,9 @@ Bugs fixed
* NumPy slicing generated incorrect results when compiled with Pythran.
(Github issue #1946)
* Fix "undefined reference" linker error for generators on Windows in Py3.3-3.5.
(Github issue #1968)
* Adapt to recent C-API change of ``PyThreadState`` in CPython 3.7.
...
...
Cython/Utility/Coroutine.c
View file @
cd3e1897
...
...
@@ -783,13 +783,13 @@ static PyObject *__Pyx_Coroutine_Send(PyObject *self, PyObject *value) {
ret
=
__Pyx_async_gen_asend_send
(
yf
,
value
);
}
else
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03030000 && (
!defined(_MSC_VER) || PY_VERSION_HEX >= 0x03060000
)
#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
);
}
else
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03050000 && defined(PyCoro_CheckExact) && (
!defined(_MSC_VER) || PY_VERSION_HEX >= 0x03060000
)
#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
);
...
...
@@ -885,7 +885,7 @@ static PyObject *__Pyx_Generator_Next(PyObject *self) {
ret
=
__Pyx_Generator_Next
(
yf
);
}
else
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03030000 && (
!defined(_MSC_VER) || PY_VERSION_HEX >= 0x03060000
)
#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
);
...
...
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