PEP 757: Make PyLong_DigitArray.obj private (#3966)

This commit is contained in:
Victor Stinner 2024-09-16 13:20:45 +02:00 committed by GitHub
parent 02a70341a2
commit 5a1529c658
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -90,9 +90,6 @@ Export API
Export a Python integer as a digits array::
typedef struct PyLong_DigitArray {
// Strong reference to the Python int object.
PyObject *obj;
// 1 if the number is negative, 0 otherwise.
int negative;
@ -101,6 +98,9 @@ Export a Python integer as a digits array::
// Read-only array of unsigned digits.
const void *digits;
// Member used internally, must not be used for other purpose.
Py_uintptr_t _reserved;
} PyLong_DigitArray;
PyAPI_FUNC(int) PyLong_AsDigitArray(