gnumed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnumed-devel] curs.fetchone() ...


From: Horst Herb
Subject: Re: [Gnumed-devel] curs.fetchone() ...
Date: Sun, 9 Feb 2003 22:49:58 +1100
User-agent: KMail/1.5

On Sun, 9 Feb 2003 22:28, Karsten Hilbert wrote:
> ... returns a list even if there's only one column, Hilmar !
>
> >>> result = curs.fetchone()
> >>> print result
>
> ['a column']

but you can also do 
result, = curs.fetchone()
which delivers just the row, no a list of rows with one element only

Horst




reply via email to

[Prev in Thread] Current Thread [Next in Thread]