Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
632d692e
Commit
632d692e
authored
May 11, 2015
by
Raymond Hettinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #24161: Document that PyIter_Check() returns false positives for old-style instances.
parent
6c42d1c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
Doc/c-api/iter.rst
Doc/c-api/iter.rst
+4
-0
No files found.
Doc/c-api/iter.rst
View file @
632d692e
...
...
@@ -14,6 +14,10 @@ There are two functions specifically for working with iterators.
Return true if the object *o* supports the iterator protocol.
This function can return a false positive in the case of old-style
classes because those classes always define a :c:member:`tp_iternext`
slot with logic that either invokes a :meth:`next` method or raises
a :exc:`TypeError`.
.. c:function:: PyObject* PyIter_Next(PyObject *o)
...
...
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