Originally for Python 3.7 and PythonNet 2.4.0 I wrote a snippet of code to
transform NumPy ndarray
into System.Array
from CLR and back again using
pure python and the ctypes
package memmove
function:
https://github.com/pythonnet/pythonnet/issues/514
https://github.com/pythonnet/pythonnet/issues/652
However, after the release of PythonNet 2.5.0 there were some changes to the PythonNet interface that created some small breaks in my code snippet: