Skip to content

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Sep 12, 2025

Use the new public PyBytesWriter API in:

  • _PyBytes_FromHex()
  • _PyBytes_FromBuffer()
  • _PyBytes_FromList()
  • _PyBytes_FromTuple()
  • _PyBytes_FromIterator()

Add _PyBytesWriter_ResizeAndUpdatePointer() and
_PyBytesWriter_GetAllocated() helper functions.

Use the new public PyBytesWriter API in:

* _PyBytes_FromHex()
* _PyBytes_FromBuffer()
* _PyBytes_FromList()
* _PyBytes_FromTuple()
* _PyBytes_FromIterator()

Add _PyBytesWriter_ResizeAndUpdatePointer() and
_PyBytesWriter_GetAllocated() helper functions.
@vstinner vstinner merged commit 430900d into python:main Sep 13, 2025
47 checks passed
@vstinner vstinner deleted the pybyteswriter_bytes_from branch September 13, 2025 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant