◐ Shell
clean mode source ↗

gh-106320: Remove private PyLong C API functions by vstinner · Pull Request #108429 · python/cpython

Skip to content

Navigation Menu

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Merged

vstinner

merged 1 commit into

Aug 24, 2023

Conversation

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.

@vstinner vstinner changed the title 106320: Remove private PyLong C API functions gh-106320: Remove private PyLong C API functions

Aug 24, 2023

@vstinner

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

@scoder

What is the intended replacement for _PyLong_FromByteArray() ?

@scoder

What is the intended replacement for _PyLong_GCD() ?

This was referenced

Oct 20, 2023

@vstinner

@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.

Labels