Skip to content

Commit dee2be5

Browse files
committed
Update
1 parent c26246e commit dee2be5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

peps/pep-0782.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,9 @@ Getters
143143
144144
Get the writer data.
145145
146+
The pointer is valid until :c:func:`PyBytesWriter_Finish` or
147+
:c:func:`PyBytesWriter_Discard` is called on *writer*.
148+
146149
Low-level API
147150
^^^^^^^^^^^^^
148151
@@ -282,6 +285,9 @@ used. It avoids having to resize a :class:`bytes` object which is
282285
inefficient. At the end, :c:func:`PyBytesWriter_Finish` creates the
283286
:class:`bytes` object from this small buffer.
284287
288+
A free list is used to reduce the cost of allocating a
289+
:c:type:`PyBytesWriter` on the heap memory.
290+
285291
286292
Backwards Compatibility
287293
=======================

0 commit comments

Comments
 (0)