[Top][All Lists]

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

Re: [Gnumed-devel] Re: tuples returned by run_ro_query

From: Karsten Hilbert
Subject: Re: [Gnumed-devel] Re: tuples returned by run_ro_query
Date: Tue, 23 Sep 2003 14:21:49 +0200
User-agent: Mutt/

> IMHO in a case like this where we expect to get sometimes two elements, we
> should actually take them:
> res, idx = run_ro_query()
which results in "unpack non-sequence" when we *don't* return
a tuple...  hence I previously decided to always return a
tuple... however, the caller *knows* when it'll receive a
tuple (when get_col_idx is not None, that is) so we *can* know
beforehand what sort of result we get, hence I implemented
Ian's suggestion

GPG key ID E4071346 @
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346

reply via email to

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