Skip to content

Commit 74b5289

Browse files
committed
Document new tp_iteritem function slot.
1 parent 3a6f48d commit 74b5289

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Doc/c-api/typeobj.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ Quick Reference
147147
+------------------------------------------------+-----------------------------------+-------------------+---+---+---+---+
148148
| :c:member:`~PyTypeObject.tp_vectorcall` | :c:type:`vectorcallfunc` | | | | | |
149149
+------------------------------------------------+-----------------------------------+-------------------+---+---+---+---+
150+
| [:c:member:`~PyTypeObject.tp_iteritem`] | opaque function pointer | | | | | |
151+
+------------------------------------------------+-----------------------------------+-------------------+---+---+---+---+
150152
| [:c:member:`~PyTypeObject.tp_watched`] | unsigned char | | | | | |
151153
+------------------------------------------------+-----------------------------------+-------------------+---+---+---+---+
152154

Include/cpython/object.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ struct _typeobject {
229229

230230
destructor tp_finalize;
231231
vectorcallfunc tp_vectorcall;
232-
iteritemfunc tp_iteritem;
232+
iteritemfunc tp_iteritem; /* Virtual iterator next function */
233233

234234

235235
/* bitset of which type-watchers care about this type */

0 commit comments

Comments
 (0)