Skip to content

Comments

gh-115754: Use Py_GetConstant(Py_CONSTANT_EMPTY_BYTES)#125195

Merged
vstinner merged 1 commit intopython:mainfrom
vstinner:empty_bytes
Oct 9, 2024
Merged

gh-115754: Use Py_GetConstant(Py_CONSTANT_EMPTY_BYTES)#125195
vstinner merged 1 commit intopython:mainfrom
vstinner:empty_bytes

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Oct 9, 2024

Replace PyBytes_FromString("") and PyBytes_FromStringAndSize("", 0) with Py_GetConstant(Py_CONSTANT_EMPTY_BYTES).

Replace PyBytes_FromString("") and PyBytes_FromStringAndSize("", 0)
with Py_GetConstant(Py_CONSTANT_EMPTY_BYTES).
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