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

Suggestions for PyLong_Import/Export API #4

Closed
wants to merge 12 commits into from

Conversation

skirpichev
Copy link

@skirpichev skirpichev commented Jul 4, 2024

  • change PyUnstable_Long_Import() to be more like PyUnstable_Long_Export(); importing doesn't require now a temporary buffer for digits
  • add PyUnstable_Long_ReleaseImport()

📚 Documentation preview 📚: https://cpython-previews--4.org.readthedocs.build/

vstinner and others added 10 commits July 3, 2024 17:29
Add PyLong_Export() and PyLong_Import() functions and PyLong_LAYOUT
structure.
* turn into public API
* change PyLong_Import() to be more like PyLong_Export(); importing
  doesn't require now a temporary buffer for digits
* make word/array endianes more like in mpz_import/export
* rename PyUnstable_LongExport to PyLongDigitsArray
@skirpichev skirpichev closed this Jul 5, 2024
@skirpichev skirpichev deleted the long_export-import branch July 5, 2024 00:30
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