summaryrefslogtreecommitdiffstats
path: root/Include/internal/pycore_setobject.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-07-25 01:49:28 (GMT)
committerGitHub <noreply@github.com>2023-07-25 01:49:28 (GMT)
commit5a61692c6c334c017248bf3d8bb6422ff7b958e8 (patch)
tree303f5bc230962c5f1d91a2a0c678b3a6d2532d33 /Include/internal/pycore_setobject.h
parent11306a91bd316bb8d9a42ff188626ac5f76b3684 (diff)
downloadcpython-5a61692c6c334c017248bf3d8bb6422ff7b958e8.zip
cpython-5a61692c6c334c017248bf3d8bb6422ff7b958e8.tar.gz
cpython-5a61692c6c334c017248bf3d8bb6422ff7b958e8.tar.bz2
gh-107211: No longer export internal functions (2) (#107214)
No longer export these 43 internal C API functions: * _PyDict_CheckConsistency() * _PyErr_ChainStackItem() * _PyErr_CheckSignals() * _PyErr_CheckSignalsTstate() * _PyErr_Clear() * _PyErr_ExceptionMatches() * _PyErr_Fetch() * _PyErr_Format() * _PyErr_FormatFromCauseTstate() * _PyErr_GetExcInfo() * _PyErr_GetHandledException() * _PyErr_GetTopmostException() * _PyErr_NoMemory() * _PyErr_NormalizeException() * _PyErr_Restore() * _PyErr_SetHandledException() * _PyErr_SetNone() * _PyErr_SetObject() * _PyErr_SetString() * _PyErr_StackItemToExcInfoTuple() * _PyExc_CreateExceptionGroup() * _PyExc_PrepReraiseStar() * _PyException_AddNote() * _PyInterpreterState_Enable() * _PyLong_FormatAdvancedWriter() * _PyLong_FormatBytesWriter() * _PyLong_FormatWriter() * _PyMem_GetAllocatorName() * _PyMem_SetDefaultAllocator() * _PyMem_SetupAllocators() * _PyOS_InterruptOccurred() * _PyRuntimeState_Fini() * _PyRuntimeState_Init() * _PyRuntime_Finalize() * _PyRuntime_Initialize() * _PyThreadState_Bind() * _PyThreadState_DeleteExcept() * _PyThreadState_New() * _PyThreadState_Swap() * _PyType_CheckConsistency() * _PyUnicodeTranslateError_Create() * _Py_DumpExtensionModules() * _Py_FatalErrorFormat()
Diffstat (limited to 'Include/internal/pycore_setobject.h')
-rw-r--r--Include/internal/pycore_setobject.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Include/internal/pycore_setobject.h b/Include/internal/pycore_setobject.h
index 96f9aea..1b63479 100644
--- a/Include/internal/pycore_setobject.h
+++ b/Include/internal/pycore_setobject.h
@@ -8,12 +8,14 @@ extern "C" {
# error "this header requires Py_BUILD_CORE define"
#endif
-// _pickle shared extension uses _PySet_NextEntry() and _PySet_Update()
+// Export for 'pickle' shared extension
PyAPI_FUNC(int) _PySet_NextEntry(
PyObject *set,
Py_ssize_t *pos,
PyObject **key,
Py_hash_t *hash);
+
+// Export for 'pickle' shared extension
PyAPI_FUNC(int) _PySet_Update(PyObject *set, PyObject *iterable);
// Export _PySet_Dummy for the gdb plugin's benefit