Use _PyObject_CAST in internal headers #135906
Copy link
Copy link
Closed
Labels
buildThe build process and cross-buildThe build process and cross-buildinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
To be resolved by #135892
Linked PRs
- gh-135906: Use _PyObject_CAST in internal CPython headers #135892
- gh-135906: Test the internal C API in test_cext #136247
- [3.14] gh-135906: Use
_PyObject_CASTin internal headers (GH-135892) #136392 - gh-135906: Test more internal headers in test_cppext #144751
- [3.14] gh-135906: Test more internal headers in test_cext/test_cppext #144758
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
buildThe build process and cross-buildThe build process and cross-buildinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Activity
pythongh-135906: Test the internal C API in test_cext
pythongh-135906: Test the internal C API in test_cext
pythongh-135906: Test the internal C API in test_cext
gh-135906: Use `_PyObject_CAST` in internal headers (GH-135892)
pythongh-135906: Use `_PyObject_CAST` in internal headers (pythonGH-1…
ZeroIntensity commentedon Jul 7, 2025
Keeping this open until we figure out how to test for this.
[3.14] gh-135906: Use `_PyObject_CAST` in internal headers (GH-135892) (
pythongh-135906: Use `_PyObject_CAST` in internal headers (pythonGH-…
gh-135906: Test the internal C API in test_cext (#136247)
pythongh-135906: Use `_PyObject_CAST` in internal headers (pythonGH-…
5 remaining items
pythongh-135906: Use `_PyObject_CAST` in internal headers (pythonGH-…
pythongh-135906: Test the internal C API in test_cext (python#136247)
clin1234 commentedon Feb 5, 2026
So has there been a way to test this?
ZeroIntensity commentedon Feb 5, 2026
Yeah, see Victor's PR: #136247. We now include a few internal headers in
test_cppext. We'll add more headers there as needed.pythongh-135906: Test more internal headers in test_cppext
pythongh-135906: Test more internal headers in test_cppext
vstinner commentedon Feb 12, 2026
This issue miss some context. Here you have:
Fixes build errors encountered in python-greenlet/greenlet#450 when building greenlet against CPython 3.14.0b3 free-threaded.
gh-135906: Test more internal headers in test_cext/test_cppext (#144751)
pythongh-135906: Test more internal headers in test_cext/test_cppext (p…
[3.14] gh-135906: Test more internal headers in test_cext/test_cppext (…
pythongh-135906: Test more internal headers in test_cext/test_cppext (p…
vstinner commentedon Feb 16, 2026
test_cppext now checks for C++ compiler warnings in internal headers used by greenlet: pycore_frame.h, pycore_interpframe_structs.h and pycore_interpframe.h.
pythongh-135906: Test more internal headers in test_cext/test_cppext (p…
pythongh-135906: Test more internal headers in test_cext/test_cppext (p…