GKeyFile giving unexpected function call return
Submitted by Christian Fredrik Kalager Schaller
Link to original bug (#738422)
Description
Created attachment 288355 simple python test app
So I translated a Vala example of how to use GKeyFile to Python. Works fine now, but there was one thing that struck me as weird.
The get_groups() and get_keys() call doesn't just return a list of the values, but they also return the lenght of the array. So this is easy enough to deal with as seen below, but I am not sure it is what I would say is my expectation of what I should get back, so I am filing this bug to ask if this might be a bindings bug and that the call should just provide those lists back.
lists,groupsarraylenght=file.get_groups()
for x in lists:
keys,keyarraylenght=file.get_keys(x)
Attaching my little sample app and sample keyfile.
Attachment 288355, "simple python test app":
gkeyfile.py
Edited by Christoph Reiter