Skip to content

gh-106320: Remove private _PyObject C API#107147

Merged
vstinner merged 1 commit intopython:mainfrom
vstinner:pycore_object
Jul 23, 2023
Merged

gh-106320: Remove private _PyObject C API#107147
vstinner merged 1 commit intopython:mainfrom
vstinner:pycore_object

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Jul 23, 2023

Move private debug _PyObject functions to the internal C API (pycore_object.h):

  • _PyDebugAllocatorStats()
  • _PyObject_CheckConsistency()
  • _PyObject_DebugTypeStats()
  • _PyObject_IsFreed()

No longer export most of these functions, except of _PyObject_IsFreed().

Move test functions using _PyObject_IsFreed() from _testcapi to _testinternalcapi. check_pyobject_is_freed() test no longer catch _testcapi.error: the tested function cannot raise _testcapi.error.

Loading
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