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: Mon, 10 Feb 2003 07:42:10 +1100
User-agent: KMail/1.5

On Sun, 9 Feb 2003 23:03, Karsten Hilbert wrote:
> > but you can also do
> > result, = curs.fetchone()
> > which delivers just the row, no a list of rows with one element only
>
> which will fail, however, if result happens to be None ... :-(

Sure, you do
try:
        result, = cursor.fetchone()
except:
        failed

Horst




reply via email to

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