diff --git a/Include/object.h b/Include/object.h index 4c96c9ea655fc1..a40f267eea8083 100644 --- a/Include/object.h +++ b/Include/object.h @@ -394,7 +394,9 @@ PyAPI_FUNC(void) PyType_Modified(PyTypeObject *); /* Generic operations on objects */ PyAPI_FUNC(PyObject *) PyObject_Repr(PyObject *); PyAPI_FUNC(PyObject *) PyObject_Str(PyObject *); +#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03100000 PyAPI_FUNC(PyObject *) PyObject_Pretty(PyObject *, PyObject *); +#endif PyAPI_FUNC(PyObject *) PyObject_ASCII(PyObject *); PyAPI_FUNC(PyObject *) PyObject_Bytes(PyObject *); PyAPI_FUNC(PyObject *) PyObject_RichCompare(PyObject *, PyObject *, int);