Python ctypes dtype multiply

I have the following line in python:

a = (ctypes.c_float*10)()

Here a is initialized as an object with _repr_ result:

<__main__.c_float_Array_10 object at 0x7fbb3e6cf340>

My understanding is that this object is some sort of a pointer that can interoperate between python and C functions. How does this work and how are we able to multiply ctypes.c_float class with and integer?

Leave a Comment