Simplified converting to char * by radarhere · Pull Request #8662 · python-pillow/Pillow
Navigation Menu
{{ message }}
python-pillow / Pillow Public
- Notifications You must be signed in to change notification settings
- Fork 2.4k
Merged
hugovk merged 1 commit intopython-pillow:mainfrom
Jan 8, 2025Merged
Simplified converting to char *#8662
hugovk merged 1 commit intopython-pillow:mainfrom
Simplified converting to char *#8662
hugovk merged 1 commit intopython-pillow:mainfrom
Conversation
Copy link Copy Markdown
Member
Rather than using PyUnicode_AsUTF8String to get a PyObject and then passing that to PyBytes_AS_STRING to get char * and PyBytes_GET_SIZE to get Py_ssize_t,
just use PyUnicode_AsUTF8AndSize. It returns const char * and passes back Py_ssize_t.
radarhere
added
the
Cleanup
label
hugovk
merged commit
b69f204
into
python-pillow:main
radarhere
deleted the
pyunicode
branch
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