Skip to content

Commit 5a1529c

Browse files
authored
PEP 757: Make PyLong_DigitArray.obj private (#3966)
1 parent 02a7034 commit 5a1529c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

peps/pep-0757.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,6 @@ Export API
9090
Export a Python integer as a digits array::
9191

9292
typedef struct PyLong_DigitArray {
93-
// Strong reference to the Python int object.
94-
PyObject *obj;
95-
9693
// 1 if the number is negative, 0 otherwise.
9794
int negative;
9895

@@ -101,6 +98,9 @@ Export a Python integer as a digits array::
10198

10299
// Read-only array of unsigned digits.
103100
const void *digits;
101+
102+
// Member used internally, must not be used for other purpose.
103+
Py_uintptr_t _reserved;
104104
} PyLong_DigitArray;
105105

106106
PyAPI_FUNC(int) PyLong_AsDigitArray(

0 commit comments

Comments
 (0)