Something More Elegant

Victor Subervi victorsubervi at gmail.com
Sat Jan 9 16:28:31 CET 2010


On Sat, Jan 9, 2010 at 10:14 AM, Iuri <iurisilvio at gmail.com> wrote:

> And you should use cursor.fetchall() instead of cursor in list
> comprehension:
>
> packageIDs = [itm[0] for itm in cursor.fetchall()]
>

Now, someone else on this list told me the other. Can you explain the
difference?
TIA,
beno
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100109/8d6985ea/attachment.html>


More information about the Python-list mailing list