From: Bryan on 10 Jan 2010 15:21 I am writing a small script to manage my ipod. I am using the python bindings for libgpod. I have never used swig, or used python to program against a c/c++ library. I can get the library to find my ipod, and parse its DB format, but I'm not sure how to interact with the types that some of the functions return, specifically a Swig Glist (gtk's doubly-linked list) import gpod db = gpod.itdb_parse('/media/ipod', None) print db.tracks >>><Swig Object of type 'GList *' at 0xa2536b0> Glist is not iterable or subscriptable. It contains a 'next' function which always seems to return None after printing "swig/python detected a memory leak of type 'GList *', no destructor found." to the console. How can I interact with this list?
|
Pages: 1 Prev: Fractional Hours from datetime? Next: setTextAlignment function Qtablewidget PyQt |