@@ -252,7 +252,7 @@ struct _specialization_cache {
252252 // by the specialization machinery, and are invalidated by PyType_Modified.
253253 // The rules for using them are as follows:
254254 // - If getitem is non-NULL, then it is the same Python function that
255- // PyType_Lookup (cls, "__getitem__") would return.
255+ // _PyType_Lookup (cls, "__getitem__") would return.
256256 // - If getitem is NULL, then getitem_version is meaningless.
257257 // - If getitem->func_version == getitem_version, then getitem can be called
258258 // with two positional arguments and no keyword arguments, and has neither
@@ -289,8 +289,16 @@ typedef struct _heaptypeobject {
289289} PyHeapTypeObject ;
290290
291291PyAPI_FUNC (const char * ) _PyType_Name (PyTypeObject * );
292- PyAPI_FUNC (PyObject * ) _PyType_Lookup (PyTypeObject * , PyObject * );
293- PyAPI_FUNC (PyObject * ) _PyType_LookupRef (PyTypeObject * , PyObject * );
292+ PyAPI_FUNC (int ) PyType_Lookup (
293+ PyTypeObject * type ,
294+ PyObject * name ,
295+ PyObject * * attr );
296+ _Py_DEPRECATED_EXTERNALLY (3.15 ) PyAPI_FUNC (PyObject * ) _PyType_Lookup (
297+ PyTypeObject * type ,
298+ PyObject * name );
299+ _Py_DEPRECATED_EXTERNALLY (3.15 ) PyAPI_FUNC (PyObject * ) _PyType_LookupRef (
300+ PyTypeObject * type ,
301+ PyObject * name );
294302PyAPI_FUNC (PyObject * ) PyType_GetDict (PyTypeObject * );
295303
296304PyAPI_FUNC (int ) PyObject_Print (PyObject * , FILE * , int );
0 commit comments