gh-115754: Use Py_GetConstant(Py_CONSTANT_EMPTY_STR) by vstinner · Pull Request #125583 · python/cpython
-
-
Notifications
You must be signed in to change notification settings - Fork 34.7k
Merged
Merged
Conversation
Member
Replace PyUnicode_FromStringAndSize(NULL, 0)
with Py_GetConstant(Py_CONSTANT_EMPTY_STR).
Replace PyUnicode_FromStringAndSize(NULL, 0) with Py_GetConstant(Py_CONSTANT_EMPTY_STR).
vstinner
added
the
skip news
label
vstinner
requested review from
abalkin and
pganssle
as code owners
bedevere-app
Bot
added
the
awaiting core review
label
bedevere-app
Bot
mentioned this pull request
rruuaanng
approved these changes
rruuaanng
commented
Oct 17, 2024
rruuaanng commented
Contributor
LGTM, Looks very readable :)
vstinner
merged commit
ebcc578
into
python:main
vstinner
deleted the
empty_str2
branch
bedevere-app
Bot
removed
the
awaiting core review
label
ebonnal pushed a commit to ebonnal/cpython that referenced this pull request
…5583) Replace PyUnicode_FromStringAndSize(NULL, 0) with Py_GetConstant(Py_CONSTANT_EMPTY_STR).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment