From ba85d69a3e3610bdd05f0dd372cf4ebca178c7fb Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Thu, 30 Mar 2017 09:09:41 +0300 Subject: bpo-29878: Add global instances of int for 0 and 1. (#852) --- Include/longobject.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Include/longobject.h') diff --git a/Include/longobject.h b/Include/longobject.h index ac09a00853..7bdd0472ba 100644 --- a/Include/longobject.h +++ b/Include/longobject.h @@ -209,6 +209,11 @@ PyAPI_FUNC(long) PyOS_strtol(const char *, char **, int); 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; +#endif + #ifdef __cplusplus } #endif -- cgit v1.2.1