Re: Evaluate postgres boolean field

2013-01-05 Thread andydtaylor
Brilliant, thanks guys -- http://mail.python.org/mailman/listinfo/python-list

Re: Evaluate postgres boolean field

2013-01-04 Thread John Gordon
In andydtay...@gmail.com writes: > for row in cursor: > row_count += 1 > if row[4] = True > print row[1] Since row[4] is a boolean value, you should be able to just say: if row[4]: print row[1] -- John Gordon

Re: Evaluate postgres boolean field

2013-01-04 Thread donarb
On Friday, January 4, 2013 10:08:22 AM UTC-8, andyd...@gmail.com wrote: > Hi, > > I'm hoping for some help on a python script I need to query an api. I'm not a > (Python) programmer ordinarily, but do plan to improve! > > Specifically I have a for loop evaluating a database row, which I think I

Evaluate postgres boolean field

2013-01-04 Thread andydtaylor
Hi, I'm hoping for some help on a python script I need to query an api. I'm not a (Python) programmer ordinarily, but do plan to improve! Specifically I have a for loop evaluating a database row, which I think I can treat as a list. My [4] is a postgres boolean field, and I'm temporarily stuck