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 C API functions#108429

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:internal_long
Aug 24, 2023

Conversation

vstinner
Copy link
Member

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

Remove private PyLong C API functions:

  • _PyLong_AsByteArray()
  • _PyLong_DivmodNear()
  • _PyLong_Format()
  • _PyLong_Frexp()
  • _PyLong_FromByteArray()
  • _PyLong_FromBytes()
  • _PyLong_GCD()
  • _PyLong_Lshift()
  • _PyLong_Rshift()

Move these functions to the internal C API. No longer export _PyLong_FromBytes() function.

Remove private PyLong C API functions:* _PyLong_AsByteArray()* _PyLong_DivmodNear()* _PyLong_Format()* _PyLong_Frexp()* _PyLong_FromByteArray()* _PyLong_FromBytes()* _PyLong_GCD()* _PyLong_Lshift()* _PyLong_Rshift()Move these functions to the internal C API. No longer export_PyLong_FromBytes() function.
@vstinnervstinner changed the title106320: Remove private PyLong C API functionsgh-106320: Remove private PyLong C API functionsAug 24, 2023
@rhettingerrhettinger removed their request for reviewAugust 24, 2023 16:30
@vstinner
Copy link
MemberAuthor

@erlend-aasland: sqlite3 uses another private function,_PyLong_AsByteArray().

erlend-aasland reacted with eyes emoji

@vstinnervstinner merged commitc55e731 intopython:mainAug 24, 2023
@vstinnervstinner deleted the internal_long branchAugust 24, 2023 16:53
@scoder
Copy link
Contributor

What is the intended replacement for_PyLong_FromByteArray() ?

@scoder
Copy link
Contributor

What is the intended replacement for_PyLong_GCD() ?

@vstinner
Copy link
MemberAuthor

vstinner commentedOct 20, 2023
edited
Loading

@scoder:

What is the intended replacement for _PyLong_FromByteArray() ?

I created PR#111140: C API: Consider adding public PyLong_AsByteArray() and PyLong_FromByteArray() functions.

What is the intended replacement for _PyLong_GCD() ?

I created PR#111139: C API: Consider adding a public PyLong_GCD() function.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@corona10corona10Awaiting requested review from corona10corona10 is a code owner

@berkerpeksagberkerpeksagAwaiting requested review from berkerpeksagberkerpeksag is a code owner

@erlend-aaslanderlend-aaslandAwaiting requested review from erlend-aaslanderlend-aasland is a code owner

@1st11st1Awaiting requested review from 1st11st1 is a code owner

Assignees
No one assigned
Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@vstinner@scoder@bedevere-bot

[8]ページ先頭

©2009-2025 Movatter.jp