[Chicago] List comprehension question

Carl Karsten carl at personnelware.com
Fri May 27 11:37:11 EDT 2016

On Wed, May 25, 2016 at 10:38 AM, Dan Mahoney <catdude at gmail.com> wrote:

> comm = [x for x in c.fetchall()][0]

move the 0 to the thing you want to 0...

comm = [x[0] for x in c.fetchall()]

Carl K
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/chicago/attachments/20160527/5cdf76aa/attachment.html>

More information about the Chicago mailing list