diff options
author | Victor Stinner <vstinner@python.org> | 2020-10-27 20:34:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-27 20:34:33 (GMT) |
commit | c310185c081110741fae914c06c7aaf673ad3d0d (patch) | |
tree | ad2e40e44a63818789a06ee92ff79ed603693e22 /Include/longobject.h | |
parent | 0564aafb71a153dd0aca4b9266dfae9336a4f2cb (diff) | |
download | cpython-c310185c081110741fae914c06c7aaf673ad3d0d.zip cpython-c310185c081110741fae914c06c7aaf673ad3d0d.tar.gz cpython-c310185c081110741fae914c06c7aaf673ad3d0d.tar.bz2 |
bpo-42161: Remove private _PyLong_Zero and _PyLong_One (GH-23003)
Use PyLong_FromLong(0) and PyLong_FromLong(1) of the public C API
instead. For Python internals, _PyLong_GetZero() and _PyLong_GetOne()
of pycore_long.h can be used.
Diffstat (limited to 'Include/longobject.h')
-rw-r--r-- | Include/longobject.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Include/longobject.h b/Include/longobject.h index 06e3e24..e2301d7 100644 --- a/Include/longobject.h +++ b/Include/longobject.h @@ -210,9 +210,6 @@ PyAPI_FUNC(PyObject *) _PyLong_GCD(PyObject *, PyObject *); #endif /* !Py_LIMITED_API */ #ifndef Py_LIMITED_API -PyAPI_DATA(PyObject *) _PyLong_Zero; -PyAPI_DATA(PyObject *) _PyLong_One; - PyAPI_FUNC(PyObject *) _PyLong_Rshift(PyObject *, size_t); PyAPI_FUNC(PyObject *) _PyLong_Lshift(PyObject *, size_t); #endif |