Skip to content

Commit e4b2dad

Browse files
committed
Document PyBytesIter_Type
1 parent cadfc16 commit e4b2dad

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Doc/c-api/bytearray.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ Byte Array Objects
2121

2222
.. c:var:: PyTypeObject PyByteArrayIter_Type
2323
24-
Iterator over a :class:`bytearray` object.
24+
Type object for an iterator over a :class:`bytearray` object. Instances
25+
of this object are returned by :meth:`!bytearray.__iter__`.
2526

2627

2728
Type check macros

Doc/c-api/bytes.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ called with a non-bytes parameter.
2222
is the same object as :class:`bytes` in the Python layer.
2323

2424

25+
.. c:var:: PyTypeObject PyByteIter_Type
26+
27+
Type object for an iterator over a :class:`bytes` object. Instances
28+
of this object are returned by :meth:`!bytes.__iter__`.
29+
30+
2531
.. c:function:: int PyBytes_Check(PyObject *o)
2632
2733
Return true if the object *o* is a bytes object or an instance of a subtype

0 commit comments

Comments
 (0)