FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-115754: Use Py_GetConstant(Py_CONSTANT_EMPTY_BYTES) by vstinner · Pull Request #125195 · python/cpython · GitHub

/ cpython Public

gh-115754: Use Py_GetConstant(Py_CONSTANT_EMPTY_BYTES) - #125195

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

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

Conversation

vstinner commented Oct 9, 2024
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member

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).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL