Skip to content

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Oct 9, 2025

Add pycore_utils.h internal header file. Move the following APIs to pycore_utils.h:

  • _PyObject_ASSERT() macro
  • _PyObject_ASSERT_FAILED_MSG() macro
  • _PyObject_ASSERT_FROM() macro
  • _PyObject_ASSERT_WITH_MSG() macro
  • _PyObject_AssertFailed() function

Add pycore_utils.h internal header file. Move the following APIs to
pycore_utils.h:

* _PyObject_ASSERT() macro
* _PyObject_ASSERT_FAILED_MSG() macro
* _PyObject_ASSERT_FROM() macro
* _PyObject_ASSERT_WITH_MSG() macro
* _PyObject_AssertFailed() function
@vstinner vstinner force-pushed the move_pyobject_assert branch from d1507a0 to 6cba648 Compare October 9, 2025 20:00
@vstinner
Copy link
Member Author

vstinner commented Oct 9, 2025

Oh. My assumption was that these APIs are not used. By my code search was wrong, in fact multiple projects use these APIs:

  • Nuitka
  • frozendict

I close my PR for now.

@vstinner vstinner closed this Oct 9, 2025
@vstinner vstinner deleted the move_pyobject_assert branch October 9, 2025 20:03
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.

1 participant