Skip to content

Comments

gh-115754: Use Py_GetConstant(Py_CONSTANT_EMPTY_STR)#125194

Merged
vstinner merged 3 commits intopython:mainfrom
vstinner:empty_str
Oct 9, 2024
Merged

gh-115754: Use Py_GetConstant(Py_CONSTANT_EMPTY_STR)#125194
vstinner merged 3 commits intopython:mainfrom
vstinner:empty_str

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Oct 9, 2024

Replace PyUnicode_New(0, 0) with Py_GetConstant(Py_CONSTANT_EMPTY_STR).

Replace PyUnicode_New(0, 0) with Py_GetConstant(Py_CONSTANT_EMPTY_STR).
@vstinner vstinner merged commit b9a8ca0 into python:main Oct 9, 2024
@vstinner vstinner deleted the empty_str branch October 9, 2024 15:15
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