Skip to content

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

@radarhere radarhere commented Jun 27, 2026

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 radarhere added the Deprecation Feature that will be removed in the future label Jun 27, 2026
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