[pygtk] GList Object

Fabien Carrion fabien.carrion at gmail.com
Thu Aug 23 11:33:03 WST 2007


Hi,

I am using a python binding which create a GList Object. This GList
Object has a lot of element which are pointer on a structure
mystructure I created myself.

In python when I get the list back it is as a python list. This is ok then.

But when I get each element of the list and I want to verify the type
with pyg_boxed_check(py_entry, mystructure), I get false.

Indeed the py_entry is not of the mystructure type anymore, it is of
the type gpointer.

So I want to know if when the binding of a C pointer to python is
done, will the type of a pointer be keeped or not?

Reference to: http://bugzilla.gnome.org/show_bug.cgi?id=409035

Thanks

-- 
Fabien Carrion

()  Campagne du ruban ASCII -- Contre les mails en html
/\  contre les pieces-jointes Microsoft
Web: http://fabien.carrion.free.fr/


More information about the pygtk mailing list