Skip to content

Commit cc5240c

Browse files
committed
pythongh-111415: restoring _PyLong_New() as public
This partially reverts python#108604.
1 parent 74f0772 commit cc5240c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Include/cpython/longintrepr.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ struct _longobject {
8989
_PyLongValue long_value;
9090
};
9191

92+
PyAPI_FUNC(PyLongObject *) _PyLong_New(Py_ssize_t);
93+
9294

9395
/* Inline some internals for speed. These should be in pycore_long.h
9496
* if user code didn't need them inlined. */

Include/internal/pycore_long.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ extern "C" {
4747
# error "_PY_LONG_DEFAULT_MAX_STR_DIGITS smaller than threshold."
4848
#endif
4949

50-
extern PyLongObject* _PyLong_New(Py_ssize_t);
51-
5250
// Return a copy of src.
5351
extern PyObject* _PyLong_Copy(PyLongObject *src);
5452

0 commit comments

Comments
 (0)