RE:pygobject and buffers



I wrote a tiny Python module that converts from our GObject-based buffer
class to a NumPy array [1]. Works okay but requires a memcpy.

[1] https://github.com/ufo-kit/ufo-python-tools/blob/master/src/ufo.c

Hello Matthias,

as an user of gobject introspection for my own C library.
it would be really nice if out of the box it should be possible to expose a C array as a numpy array with a 
dedicated gobject annotation.

Cheers

Frederic


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]