RE:pygobject and buffers
- From: PICCA Frederic-Emmanuel <frederic-emmanuel picca synchrotron-soleil fr>
- To: Matthias Vogelgesang <matthias vogelgesang gmail com>, "python-hackers-list gnome org" <python-hackers-list gnome org>
- Subject: RE:pygobject and buffers
- Date: Thu, 4 Sep 2014 09:31:27 +0000
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]