pygobject / pgi

[Unmaintained: Use PyGObject instead] GTK+ / GObject Introspection Bindings for PyPy.
GNU Lesser General Public License v2.1
74 stars 16 forks source link

GLib.Bytes.get_data() returns list of pgi.clib.gir.gitypelib.LP_c_ubyte #22

Open jim-easterbrook opened 9 years ago

jim-easterbrook commented 9 years ago

When using PyGObject GLib.Bytes.get_data() returns a Python 2 str or Python 3 bytes object (which is easily decoded to a str). With pgi I get a Python list of pgi.clib.gir.gitypelib.LP_c_ubyte objects. I've not yet found a way to convert this to anything useful.