Skip to content

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Sep 12, 2025

@vstinner
Copy link
Member Author

@corona10: I added the following sentences to the doc:

The API is not thread safe: a writer should only be used by a single thread at the same time.

PyBytesWriter_Finish:

The writer instance is invalid after the call in any case. No API can be called on the writer after :c:func:PyBytesWriter_Finish.

PyBytesWriter_Discard:

The writer instance is invalid after the call. No API can be called on the writer after :c:func:PyBytesWriter_Discard.

@vstinner vstinner merged commit adb4140 into python:main Sep 12, 2025
48 checks passed
@vstinner vstinner deleted the pybyteswriter_api branch September 12, 2025 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant