Skip to content

gh-129813, PEP 782: Add PyBytesWriter C API - #138822

Merged
vstinner merged 1 commit into
python:mainfrom
vstinner:pybyteswriter_api
Sep 12, 2025
Merged

vstinner merged 1 commit into
python:mainfrom
vstinner:pybyteswriter_api

Conversation

@vstinner

@vstinner vstinner commented Sep 12, 2025 •

Copy link
Copy Markdown
Member
@vstinner

Copy link
Copy Markdown
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
@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

1 participant