module for working with the result set

Diez B. Roggisch deetsNOSPAM at web.de
Mon May 17 12:09:19 EDT 2004


john fabiani wrote:

> Hi,
> newbie question:
> PyPgSQL (postgres driver) returns a list (not a tuple O'Rielly states
> DBAPI returns a tuple) and most of the books describe how to work with
> tuples and dictionaries when working with a result set. Does anyone know
> of a paper or tutorial that explains a few ways to deal with result
> sets. Or if anyone knows of a module that will help (that I can study) -
> that would be just as helpful?

What exactly is your problem? Lists behave equally with respect to read
accees to tuples. So whatever you want to do with a tuple, do it. 
-- 
Regards,

Diez B. Roggisch



More information about the Python-list mailing list