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

Deprecate P;2L and P;4L in frombytes() by radarhere · Pull Request #9723 · python-pillow/Pillow · GitHub

Deprecate P;2L and P;4L in frombytes() - #9723

Open
radarhere wants to merge 1 commit into
python-pillow:mainfrom
radarhere:frombytes_pxl
Open

Deprecate P;2L and P;4L in frombytes()#9723
radarhere wants to merge 1 commit into
python-pillow:mainfrom
radarhere:frombytes_pxl

Conversation

radarhere commented Jun 27, 2026
edited
Loading

Copy link
Copy Markdown
Member

Sequel to #9725

That PR raised a ValueError if P;2L or P;4L data is truncated in frombytes(). This PR deprecates their use as independent unpackers altogether. They can still be used when decoding PCX images.

I've moved the unpackers from Unpack.c to PcxDecode.c. Once the deprecation period is up, the unpackers and RAWMODES entries can be removed.

radarhere added the Deprecation Feature that will be removed in the future label Jun 27, 2026
radarhere force-pushed the frombytes_pxl branch 2 times, most recently from 3051313 to 04b841f Compare June 27, 2026 22:54
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

Labels

Deprecation Feature that will be removed in the future

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL