Skip to content

Conversation

cdce8p
Copy link
Collaborator

@cdce8p cdce8p commented Jan 26, 2025

_PyLong_New will be deprecated in 3.14.0a5. Replace it with the PyLongWriter API available in pythoncapi_compat.h for older versions.

https://docs.python.org/dev/c-api/long.html#pylongwriter-api

@cdce8p cdce8p added the topic-mypyc mypyc bugs label Jan 26, 2025
@cdce8p cdce8p marked this pull request as draft January 26, 2025 00:36
@cdce8p cdce8p force-pushed the mypyc-pylongwriter branch from 8f8cb4f to 9fa2b37 Compare January 26, 2025 00:39
@cdce8p cdce8p force-pushed the mypyc-pylongwriter branch from 815e3ff to b176f43 Compare January 26, 2025 00:42
@cdce8p cdce8p marked this pull request as ready for review January 26, 2025 00:43
@cdce8p cdce8p requested a review from JukkaL January 27, 2025 16:11
Copy link
Collaborator

@JukkaL JukkaL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's nice to not have to touch CPython internals as much.

@JukkaL JukkaL merged commit 42b5999 into python:master Jan 27, 2025
12 checks passed
@cdce8p cdce8p deleted the mypyc-pylongwriter branch January 27, 2025 17:13
x612skm pushed a commit to x612skm/mypy-dev that referenced this pull request Feb 24, 2025
`_PyLong_New` will be deprecated in `3.14.0a5`. Replace it with the
`PyLongWriter` API available in `pythoncapi_compat.h` for older
versions.

https://docs.python.org/dev/c-api/long.html#pylongwriter-api
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic-mypyc mypyc bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants