zyga | cjwatson: 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 objects | 00:06 |
---|---|---|
zyga | cjwatson: is that a bug or is this by design? | 00:06 |
zyga | cjwatson: http://paste.ubuntu.com/11833496/ (example code) | 00:06 |
zyga | cjwatson: I used launchpad.load() to resolve each bug's self_link to a bug object but I think this is wasteful | 00:07 |
wgrant | zyga: .entries will give you raw dicts, yes. | 00:12 |
cjwatson | zyga: Just iterate over bugs (which should really be bug_tasks there), not over bugs.entries | 00:12 |
wgrant | zyga: Don't use .entries. | 00:13 |
cjwatson | snap | 00:13 |
wgrant | lfaraone: That looks like it's C++ to me, which is pretty OK. | 00:16 |
zyga | wgrant, cjwatson: at, thanks for the tip, I'll try that :-) | 00:59 |
=== psivaa-afk is now known as psivaa | ||
lfaraone | garin caize | 15: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!