X Tutup
Skip to content

gh-107211: No longer export internal functions (3)#107215

Merged
vstinner merged 1 commit intopython:mainfrom
vstinner:extern3
Jul 25, 2023
Merged

gh-107211: No longer export internal functions (3)#107215
vstinner merged 1 commit intopython:mainfrom
vstinner:extern3

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Jul 25, 2023

No longer export these 21 internal C API functions:

  • _PySys_Audit()
  • _PySys_SetAttr()
  • _PyToken_OneChar()
  • _PyToken_ThreeChars()
  • _PyToken_TwoChars()
  • _PyTraceBack_FromFrame()
  • _PyTraceBack_Print_Indented()
  • _PyUnicode_DecodeUnicodeEscapeInternal()
  • _PyUnicode_EncodeUTF16()
  • _PyUnicode_EncodeUTF32()
  • _PyUnicode_FormatAdvancedWriter()
  • _PyUnicode_FromId()
  • _PyUnicode_ScanIdentifier()
  • _PyWarnings_Init()
  • _Py_DumpASCII()
  • _Py_DumpDecimal()
  • _Py_DumpHexadecimal()
  • _Py_DumpTraceback()
  • _Py_DumpTracebackThreads()
  • _Py_WriteIndent()
  • _Py_WriteIndentedMargin()

No longer export these 14 internal C API functions:

* _PySys_Audit()
* _PySys_SetAttr()
* _PyTraceBack_FromFrame()
* _PyTraceBack_Print_Indented()
* _PyUnicode_FormatAdvancedWriter()
* _PyUnicode_ScanIdentifier()
* _PyWarnings_Init()
* _Py_DumpASCII()
* _Py_DumpDecimal()
* _Py_DumpHexadecimal()
* _Py_DumpTraceback()
* _Py_DumpTracebackThreads()
* _Py_WriteIndent()
* _Py_WriteIndentedMargin()
@vstinner vstinner enabled auto-merge (squash) July 25, 2023 02:00
@vstinner vstinner merged commit 0d0520a into python:main Jul 25, 2023
@vstinner vstinner deleted the extern3 branch July 25, 2023 02:27
jtcave pushed a commit to jtcave/cpython that referenced this pull request Jul 27, 2023
No longer export these 14 internal C API functions:

* _PySys_Audit()
* _PySys_SetAttr()
* _PyTraceBack_FromFrame()
* _PyTraceBack_Print_Indented()
* _PyUnicode_FormatAdvancedWriter()
* _PyUnicode_ScanIdentifier()
* _PyWarnings_Init()
* _Py_DumpASCII()
* _Py_DumpDecimal()
* _Py_DumpHexadecimal()
* _Py_DumpTraceback()
* _Py_DumpTracebackThreads()
* _Py_WriteIndent()
* _Py_WriteIndentedMargin()
alexmalyshev added a commit to alexmalyshev/cpython that referenced this pull request Mar 5, 2026
This function stopped being exported in python#107215.  However, it's very useful as
it's the only way to print a Python stacktrace safely from a signal handler.
Re-export it.
alexmalyshev added a commit to alexmalyshev/cpython that referenced this pull request Mar 5, 2026
These functions stopped being exported in python#107215.  However, they are the only
way to print a Python stacktrace safely from a signal handler, making them very
useful for extensions.  Re-export them.
alexmalyshev added a commit to alexmalyshev/cpython that referenced this pull request Mar 5, 2026
These functions stopped being exported in python#107215.  However, they are the only
way to print a Python stacktrace safely from a signal handler, making them very
useful for extensions.  Re-export them.
alexmalyshev added a commit to alexmalyshev/cpython that referenced this pull request Mar 5, 2026
…nctions

These functions stopped being exported in python#107215.  However, they are the only
way to print a Python stacktrace safely from a signal handler, making them very
useful for extensions.  Re-export them as PyUnsafe functions.
alexmalyshev added a commit to alexmalyshev/cpython that referenced this pull request Mar 5, 2026
…functions

These functions stopped being exported in python#107215.  However, they are the only
way to print a Python stacktrace safely from a signal handler, making them very
useful for extensions.  Re-export them as PyUnstable functions.
alexmalyshev added a commit to alexmalyshev/cpython that referenced this pull request Mar 5, 2026
…functions

These functions stopped being exported in python#107215.  However, they are the only
way to print a Python stacktrace safely from a signal handler, making them very
useful for extensions.  Re-export them as PyUnstable functions.
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

X Tutup