Skip to content

Commit fdef628

Browse files
committed
Address review comments
1 parent 73b9b87 commit fdef628

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Doc/c-api/typeobj.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2552,6 +2552,13 @@ and :c:data:`PyType_Type` effectively act as defaults.)
25522552
.. versionadded:: 3.12
25532553

25542554

2555+
.. c:member:: iteritemfunc PyTypeObject.tp_iteritem
2556+
2557+
Internal. Do not use.
2558+
2559+
.. versionadded:: 3.15
2560+
2561+
25552562
.. _static-types:
25562563

25572564
Static Types

Include/cpython/object.h

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

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

233+
/* Below here all fields are internal to the VM */
234234

235235
/* bitset of which type-watchers care about this type */
236236
unsigned char tp_watched;
@@ -241,6 +241,7 @@ struct _typeobject {
241241
* Otherwise, limited to MAX_VERSIONS_PER_CLASS (defined elsewhere).
242242
*/
243243
uint16_t tp_versions_used;
244+
iteritemfunc tp_iteritem; /* Virtual iterator next function */
244245
};
245246

246247
#define _Py_ATTR_CACHE_UNUSED (30000) // (see tp_versions_used)

0 commit comments

Comments
 (0)