Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CPyCppyy] Remove implicit conversion of any ctypes ptr type to
void*
The `IsCTypesArrayOrPointer` gives false positives in Python 3.13, resulting the void pointer converter to take the wrong code path and crash. See: wlav/cppyy#272 This code path is used for implicit conversion from other `ctypes` pointer types to `void*`, which is not strictly required. One can always do an explicit cast: `ctypes.cast(my_ptr, ctypes.c_void_p )`. Given that this a niche feature that broke Python 3.13 support for functions taking `void*`, which is quite common, it can be argued that it's better to remove this implicit conversion. This commit fixes the following tests under Python 3.13: ``` roottest-python-basic-datatype roottest-python-cpp-cpp ``` This reverts the following commit from upstream: wlav/CPyCppyy@80a0205
- Loading branch information