diff options
author | Victor Stinner <vstinner@python.org> | 2023-08-29 02:59:49 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-29 02:59:49 (GMT) |
commit | 921eb8ebf6ae9bd359bc03c24bf1f7537bb498ab (patch) | |
tree | 99ef7b99c27e0cd38348052c3549beba8c1e4115 /Include/cpython | |
parent | 21a7420190778fb6e9237bf12e029a26cd18d82d (diff) | |
download | cpython-921eb8ebf6ae9bd359bc03c24bf1f7537bb498ab.zip cpython-921eb8ebf6ae9bd359bc03c24bf1f7537bb498ab.tar.gz cpython-921eb8ebf6ae9bd359bc03c24bf1f7537bb498ab.tar.bz2 |
gh-106320: Remove private _PyLong_New() function (#108604)
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.
Diffstat (limited to 'Include/cpython')
-rw-r--r-- | Include/cpython/longintrepr.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/Include/cpython/longintrepr.h b/Include/cpython/longintrepr.h index 692c69b..fb82f83 100644 --- a/Include/cpython/longintrepr.h +++ b/Include/cpython/longintrepr.h @@ -89,14 +89,6 @@ struct _longobject { _PyLongValue long_value; }; -PyAPI_FUNC(PyLongObject *) _PyLong_New(Py_ssize_t); - -/* Return a copy of src. */ -PyAPI_FUNC(PyObject *) _PyLong_Copy(PyLongObject *src); - -PyAPI_FUNC(PyLongObject *) -_PyLong_FromDigits(int negative, Py_ssize_t digit_count, digit *digits); - /* Inline some internals for speed. These should be in pycore_long.h * if user code didn't need them inlined. */ |