FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-53509: Move _PyObject_ASSERT() to the internal C API by vstinner · Pull Request #139872 · python/cpython · GitHub

Repository navigation

gh-53509: Move _PyObject_ASSERT() to the internal C API - #139872

Closed
vstinner wants to merge 1 commit into
python:mainfrom
vstinner:move_pyobject_assert
Closed

vstinner wants to merge 1 commit into
python:mainfrom
vstinner:move_pyobject_assert

Conversation

vstinner commented Oct 9, 2025 •
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member

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 force-pushed the move_pyobject_assert branch from d1507a0 to 6cba648 Compare October 9, 2025 20:00

vstinner commented Oct 9, 2025

Copy link
Copy Markdown
Member Author

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 closed this Oct 9, 2025
vstinner deleted the move_pyobject_assert branch October 9, 2025 20:03
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL