We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c26246e commit dee2be5Copy full SHA for dee2be5
peps/pep-0782.rst
@@ -143,6 +143,9 @@ Getters
143
144
Get the writer data.
145
146
+ The pointer is valid until :c:func:`PyBytesWriter_Finish` or
147
+ :c:func:`PyBytesWriter_Discard` is called on *writer*.
148
+
149
Low-level API
150
^^^^^^^^^^^^^
151
@@ -282,6 +285,9 @@ used. It avoids having to resize a :class:`bytes` object which is
282
285
inefficient. At the end, :c:func:`PyBytesWriter_Finish` creates the
283
286
:class:`bytes` object from this small buffer.
284
287
288
+A free list is used to reduce the cost of allocating a
289
+:c:type:`PyBytesWriter` on the heap memory.
290
291
292
Backwards Compatibility
293
=======================
0 commit comments