Skip to content

Commit

Permalink
Move new API to Include/cpython so it's not in limited API
Browse files Browse the repository at this point in the history
  • Loading branch information
carljm committed Oct 5, 2022
1 parent 1a28a45 commit 95e49ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Include/cpython/object.h
Original file line number Diff line number Diff line change
Expand Up @@ -510,3 +510,7 @@ Py_DEPRECATED(3.11) typedef int UsingDeprecatedTrashcanMacro;

PyAPI_FUNC(int) _PyObject_VisitManagedDict(PyObject *obj, visitproc visit, void *arg);
PyAPI_FUNC(void) _PyObject_ClearManagedDict(PyObject *obj);

typedef void(*PyType_ModifiedCallback)(PyTypeObject *);
PyAPI_FUNC(void) PyType_SetModifiedCallback(PyType_ModifiedCallback callback);
PyAPI_FUNC(PyType_ModifiedCallback) PyType_GetModifiedCallback(void);
3 changes: 0 additions & 3 deletions Include/object.h
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,6 @@ PyAPI_FUNC(PyObject *) PyType_GenericNew(PyTypeObject *,
PyObject *, PyObject *);
PyAPI_FUNC(unsigned int) PyType_ClearCache(void);
PyAPI_FUNC(void) PyType_Modified(PyTypeObject *);
typedef void(*PyType_ModifiedCallback)(PyTypeObject *);
PyAPI_FUNC(void) PyType_SetModifiedCallback(PyType_ModifiedCallback callback);
PyAPI_FUNC(PyType_ModifiedCallback) PyType_GetModifiedCallback(void);

/* Generic operations on objects */
PyAPI_FUNC(PyObject *) PyObject_Repr(PyObject *);
Expand Down

0 comments on commit 95e49ee

Please sign in to comment.