Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-106320: Remove private _PyLong_New() function#108604

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
vstinner merged 1 commit intopython:mainfromvstinner:pycore_long
Aug 29, 2023

Conversation

vstinner
Copy link
Member

@vstinnervstinner commentedAug 29, 2023
edited by bedevere-bot
Loading

Move the following private API to the internal C API (pycore_long.h):

  • _PyLong_Copy()
  • _PyLong_FromDigits()
  • _PyLong_New()

No longer export most of these functions.

Move the following private API to the internal C API (pycore_long.h):* _PyLong_Copy()* _PyLong_FromDigits()* _PyLong_New()No longer export most of these functions.
@skirpichev
Copy link
Contributor

@vstinner, we use_PyLong_New() in the gmpy2, e.g. in theGMPy_PyLong_From_MPZ() method. What's now the intended replacement for this private API?

@skirpichev
Copy link
Contributor

Another user is the sage:

$ git grep _PyLong_Nsrc/sage/libs/gmp/pylong.pyx:from cpython.longintrepr cimport _PyLong_New, py_long, digit, PyLong_SHIFTsrc/sage/libs/gmp/pylong.pyx:    L = _PyLong_New(pylong_size)

@vstinner
Copy link
MemberAuthor

we use _PyLong_New() in the gmpy2, e.g. in theGMPy_PyLong_From_MPZ() method. What's now the intended replacement for this private API?

Would you mind to open a separated issue describing how you use _PyLong_New() and which API do you need? _PyLong_New() changed a log in Python 3.12: see also issue#111140.

@skirpichev
Copy link
Contributor

I've opened#111415

vstinner reacted with thumbs up emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@vstinner@skirpichev@bedevere-bot

[8]ページ先頭

©2009-2025 Movatter.jp