You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
C API: Rename _PyThreadState_GetUnchecked() to public PyThreadState_GetUnchecked #108867
In Python 3.13, I'm trying to remove private functions from the public C API: issue #106320.
Since _PyThreadState_UncheckedGet() had at least one user and exposing this API is revelant, I propose renaming the private _PyThreadState_UncheckedGet() function to PyThreadState_GetUnchecked() and so make it public, but not added it to the limited C API (not needed).
For the function name, see: capi-workgroup/problems#52 I propose to use the Unsafe suffix for "unsafe" function. Previously, the function used Unchecked, but it wasn't a suffix!
UPDATE: I renamed PyThreadState_GetUnsafe() to PyThreadState_GetUnchecked().
changed the title [-]C API: Rename _PyThreadState_UncheckedGet() to public PyThreadState_GetUnsafe()[/-][+]C API: Rename _PyThreadState_GetUnchecked() to public PyThreadState_GetUnsafe()[/+]on Sep 12, 2023
changed the title [-]C API: Rename _PyThreadState_GetUnchecked() to public PyThreadState_GetUnsafe()[/-][+]C API: Rename _PyThreadState_GetUnchecked() to public PyThreadState_GetUnchecked[/+]on Oct 3, 2023
Activity
pythongh-108867: Add PyThreadState_GetUnsafe() function
pythongh-108867: Add PyThreadState_GetUnsafe() function
pythongh-108867: Add PyThreadState_GetUnsafe() function
[-]C API: Rename _PyThreadState_UncheckedGet() to public PyThreadState_GetUnsafe()[/-][+]C API: Rename _PyThreadState_GetUnchecked() to public PyThreadState_GetUnsafe()[/+]pythongh-108867: Add PyThreadState_GetUnsafe() function
[-]C API: Rename _PyThreadState_GetUnchecked() to public PyThreadState_GetUnsafe()[/-][+]C API: Rename _PyThreadState_GetUnchecked() to public PyThreadState_GetUnchecked[/+]pythongh-108867: Add PyThreadState_GetUnchecked() function
vstinner commentedon Oct 3, 2023
UPDATE: I renamed PyThreadState_GetUnsafe() to PyThreadState_GetUnchecked().
gh-108867: Add PyThreadState_GetUnchecked() function (#108870)
pythongh-108867: Add PyThreadState_GetUnchecked() function (python#10…