Skip to content
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

Add PyLong Import/Export API #121

Merged
merged 6 commits into from
Dec 13, 2024
Merged

Conversation

skirpichev
Copy link
Member

@skirpichev skirpichev commented Nov 14, 2024

PyPy is not supported, as well as Py2. In the later case it's possible, but hardly worth code complications: most real-word potential consumers (e.g. Sage, gmpy2 or python-flint) support only Python 3.

PyPy is not supported, as well as Py2.  In the later case it's possible,
but hardly worth code complications: most real-word potential consumers
(e.g. Sage, gmpy2 or python-flint) support only Python 3.
@skirpichev skirpichev marked this pull request as ready for review December 9, 2024 01:03
@vstinner
Copy link
Member

python/cpython#121339 was merged. What's the status of this PR? Is it up to date and ready to be reviewed?

pythoncapi_compat.h Outdated Show resolved Hide resolved
docs/changelog.rst Outdated Show resolved Hide resolved
pythoncapi_compat.h Outdated Show resolved Hide resolved
pythoncapi_compat.h Outdated Show resolved Hide resolved
pythoncapi_compat.h Outdated Show resolved Hide resolved
tests/test_pythoncapi_compat_cext.c Show resolved Hide resolved
tests/test_pythoncapi_compat_cext.c Outdated Show resolved Hide resolved
Copy link
Member Author

@skirpichev skirpichev left a comment

Choose a reason for hiding this comment

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

Is it up to date and ready to be reviewed?

It's now slightly outdated. PyLongWriter_Create() should reject ndigits==0; export_long should be set to 0 on errors. I'll address this today.

(Unfortunately, I still don't know how implement this for PyPy (not in RPython, but within this project).)

docs/changelog.rst Outdated Show resolved Hide resolved
@skirpichev skirpichev requested a review from vstinner December 13, 2024 14:12
@vstinner vstinner merged commit 61709bf into python:main Dec 13, 2024
21 checks passed
@vstinner
Copy link
Member

Merged, thank you.

@skirpichev skirpichev deleted the long_import-export branch December 13, 2024 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants