Skip to content

Commit aba957a

Browse files
committed
Update PyBytesWriter thread safety doc
1 parent c1b5fef commit aba957a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎Doc/c-api/bytes.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,8 @@ object.
305305
306306
A bytes writer object.
307307
308-
The API is **not thread safe**. A :c:type:`PyBytesWriter` object must only
309-
be used by a single thread, it must not be shared between threads.
308+
The API is **not thread safe**. To share a writer with multiple threads, a
309+
critical section or a lock is needed.
310310
311311
The instance must be destroyed by :c:func:`PyBytesWriter_Finish` on
312312
success, or :c:func:`PyBytesWriter_Discard` on error.

0 commit comments

Comments
 (0)