3 May
2022
3 May
'22
3:21 a.m.
On Mon, 2 May 2022 15:21:24 +0200 Victor Stinner <vstinner@python.org> wrote:
Slowly, more and more tests can be added. For example, this change fixing compiler warnings when passing "const PyObject*" to Python C API functions adds tests to _testcppext.cpp: https://github.com/python/cpython/pull/92138
Doesn't passing "const PyObject*" leak implementation details, for example that the reference count does not change? It seems to go counter the objective of making the C API more abstract and more stable. (C++ has the "mutable" keyword for such situat but I don't think C has it yet) Regards Antoine.