-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use y*
instead of y#
#6975
Comments
Some of the code you've highlighted is using Just to write it out, the other functions you've highlighted are |
I've created PR #6988 for For some of methods, the data is read first. So there isn't a basic situation where the data passed to the C layer will be a
For Pillow/src/PIL/WebPImagePlugin.py Lines 340 to 341 in 1457d2c
and im.tobytes() won't create a memoryview .
The other two instances were |
#6974 changed
Pillow/src/decode.c
Line 124 in dbcd737
y*
instead ofy#
so that it can accept amemoryview
object, and notes thaty*
is actually the recommended way to accept binary data.y#
is used in a few other locations; should these be changed as well?Pillow/src/display.c
Line 201 in 7d8a08b
Pillow/src/display.c
Line 721 in 7d8a08b
Pillow/src/encode.c
Line 567 in 7d8a08b
Pillow/src/encode.c
Line 1060 in 7d8a08b
Pillow/src/_imaging.c
Line 1644 in 7d8a08b
Pillow/src/_imaging.c
Line 1709 in 7d8a08b
Pillow/src/_imaging.c
Line 2220 in 7d8a08b
Pillow/src/_imaging.c
Line 2544 in 7d8a08b
Pillow/src/_imagingcms.c
Line 124 in 7d8a08b
Pillow/src/_imagingft.c
Line 142 in 7d8a08b
Pillow/src/_imagingft.c
Line 1099 in 7d8a08b
Pillow/src/_imagingft.c
Line 1145 in 7d8a08b
Pillow/src/_webp.c
Line 599 in 7d8a08b
The text was updated successfully, but these errors were encountered: