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 1a00528 commit e4ee5c8Copy full SHA for e4ee5c8
Doc/c-api/bytes.rst
@@ -348,7 +348,8 @@ Low-level API
348
.. c:function:: int PyBytesWriter_Resize(PyBytesWriter *writer, Py_ssize_t size)
349
350
Resize the writer to *size* bytes. It can be used to enlarge or to
351
- shrink the writer. Overallocate the writer.
+ shrink the writer. This function typically overallocates to achieve
352
+ amortized performance when resizing multiple times.
353
354
Newly allocated bytes are left uninitialized.
355
0 commit comments