ok, this is what works:
if x == ():
sorry about the bad info. and what i ment to put was
x[0] not x(0)
thanks for the tips
its all good now
shawn
Steven D'Aprano wrote:
> On Sun, 31 Jul 2005 08:40:26 -0700, nephish wrote:
>
> > Hey there,
> > i have a simple database query that returns as a t
On Sun, 31 Jul 2005 08:40:26 -0700, nephish wrote:
> Hey there,
> i have a simple database query that returns as a tuple the number of
> rows that the query selected.
> kinda like this
>
cursor.execute('select value from table where autoinc > 234')
x = cursor.fetchall()
print x
>
On 31 Jul 2005 08:40:26 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> how do i encorporate that into an equation ?
> i have tried all kinds of stuff
>
> if x == 0L
> if x(0) == None
> if x == None
>
> anyway, what shoud i do to test if the result is empty?
Just like any other test:
if