8000 gh-107211: No longer export internal functions (2) by vstinner · Pull Request #107214 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-107211: No longer export internal functions (2) #107214

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 25, 2023

Conversation

vstinner
Copy link
Member
@vstinner vstinner commented Jul 25, 2023

No longer export these 50 internal C API functions:

  • _PyArena_AddPyObject()
  • _PyArena_Free()
  • _PyArena_Malloc()
  • _PyArena_New()
  • _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_ProgramDecodedTextObject()
  • _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()
  • _PyState_AddModule()
  • _PyThreadState_Bind()
  • _PyThreadState_DeleteExcept()
  • _PyThreadState_New()
  • _PyThreadState_Swap()
  • _PyType_CheckConsistency()
  • _PyUnicodeTranslateError_Create()
  • _Py_DumpExtensionModules()
  • _Py_FatalErrorFormat()
  • _Py_GetConfig()

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()
@vstinner vstinner merged commit 5a61692 into python:main Jul 25, 2023
@vstinner vstinner deleted the extern2 branch July 25, 2023 01:49
@vstinner
Copy link
Member Author

The PR description is a outdated: I had to export again 7 functions to fix the build (Windows, Linux, macOS).

jtcave pushed a commit to jtcave/cpython that referenced this pull request Jul 27, 2023
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()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0