Skip to content

Replace deprecated PyLong_AS_LONG with PyLong_AsLong - #10295

Merged
radarhere merged 1 commit into
python-pillow:mainfrom
radarhere:pylong
Oct 23, 2026
Merged

radarhere merged 1 commit into
python-pillow:mainfrom
radarhere:pylong

Conversation

@radarhere

Copy link
Copy Markdown
Member

https://docs.python.org/3/c-api/long.html#c.PyLong_AS_LONG

long PyLong_AS_LONG(PyObject *obj)
Exactly equivalent to the preferred PyLong_AsLong. In particular, it can fail with OverflowError or another exception.

Soft deprecated since version 3.14.

@hugovk hugovk added the Cleanup label Oct 23, 2026
@radarhere
radarhere enabled auto-merge (squash) October 23, 2026 13:15
@radarhere
radarhere disabled auto-merge October 23, 2026 13:15
@radarhere
radarhere merged commit 691fb18 into python-pillow:main Oct 23, 2026
58 of 65 checks passed
@radarhere
radarhere deleted the pylong branch October 23, 2026 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants