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
dbdebb8d
Commit
dbdebb8d
authored
7 years ago
by
Ronan Lamy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Always define __Pyx_PyIter_Next_ErrorNoIterator()
It is used even when CYTHON_USE_TYPE_SLOTS is disabled.
parent
9f18281a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
Cython/Utility/ObjectHandling.c
Cython/Utility/ObjectHandling.c
+0
-2
No files found.
Cython/Utility/ObjectHandling.c
View file @
dbdebb8d
...
@@ -186,12 +186,10 @@ static PyObject *__Pyx_PyIter_Next2Default(PyObject* defval) {
...
@@ -186,12 +186,10 @@ static PyObject *__Pyx_PyIter_Next2Default(PyObject* defval) {
return
NULL
;
return
NULL
;
}
}
#if CYTHON_USE_TYPE_SLOTS
static
void
__Pyx_PyIter_Next_ErrorNoIterator
(
PyObject
*
iterator
)
{
static
void
__Pyx_PyIter_Next_ErrorNoIterator
(
PyObject
*
iterator
)
{
PyErr_Format
(
PyExc_TypeError
,
PyErr_Format
(
PyExc_TypeError
,
"%.200s object is not an iterator"
,
Py_TYPE
(
iterator
)
->
tp_name
);
"%.200s object is not an iterator"
,
Py_TYPE
(
iterator
)
->
tp_name
);
}
}
#endif
// originally copied from Py3's builtin_next()
// originally copied from Py3's builtin_next()
static
CYTHON_INLINE
PyObject
*
__Pyx_PyIter_Next2
(
PyObject
*
iterator
,
PyObject
*
defval
)
{
static
CYTHON_INLINE
PyObject
*
__Pyx_PyIter_Next2
(
PyObject
*
iterator
,
PyObject
*
defval
)
{
...
...
This diff is collapsed.
Click to expand it.
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