/srv/irclogs.ubuntu.com/2015/07/07/#launchpad.txt

zygacjwatson: somewhat offtopic, a collegaue asked me to look at some launchpadlib code he was working on, I was surprised that named methods (here project.searchTasks() returns a list of dicts, not a list of structured objects00:06
zygacjwatson: is that a bug or is this by design?00:06
zygacjwatson: http://paste.ubuntu.com/11833496/ (example code)00:06
zygacjwatson: I used launchpad.load() to resolve each bug's self_link to a bug object but I think this is wasteful00:07
wgrantzyga: .entries will give you raw dicts, yes.00:12
cjwatsonzyga: Just iterate over bugs (which should really be bug_tasks there), not over bugs.entries00:12
wgrantzyga: Don't use .entries.00:13
cjwatsonsnap00:13
wgrantlfaraone: That looks like it's C++ to me, which is pretty OK.00:16
zygawgrant, cjwatson: at, thanks for the tip, I'll try that :-)00:59
=== psivaa-afk is now known as psivaa
lfaraonegarin caize15:36
=== zyga_ is now known as zyga
=== dpm is now known as dpm-afk

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!