Skip to content

Commit e4ee5c8

Browse files
vstinnerpitrou
andauthored
Update Doc/c-api/bytes.rst
Co-authored-by: Antoine Pitrou <[email protected]>
1 parent 1a00528 commit e4ee5c8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/c-api/bytes.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,8 @@ Low-level API
348348
.. c:function:: int PyBytesWriter_Resize(PyBytesWriter *writer, Py_ssize_t size)
349349
350350
Resize the writer to *size* bytes. It can be used to enlarge or to
351-
shrink the writer. Overallocate the writer.
351+
shrink the writer. This function typically overallocates to achieve
352+
amortized performance when resizing multiple times.
352353
353354
Newly allocated bytes are left uninitialized.
354355

0 commit comments

Comments
 (0)