More PyGreSQL questions

Harry Tanovich harryt at gte.net
Mon Oct 11 08:17:06 EDT 1999


"D'Arcy J.M. Cain" wrote:

> Harry Tanovich <harryt at gte.net> wrote:
> > I just skimmed over the source AND I'm pretty unfamiliar with
> > postgresql, but how hard would it be to re-do PyGreSQL so that:
>
> The next version of PyGreSQL (with DB-API 2.0) is going to start being
> worked on.  You should join the mailing list if you have suggestions
> on changes.
>

Thanks, I just did.

>
> > a) query results aren't strings but binary values that map directly to
> > python types
>
> Not sure what you mean by this.  It currently does check the type and
> only falls back to string if there is no good Python object type to
> convert to.  It converts to integers and floats as necessary.
>

line 1023 of the pgmodule.c that I've got has the first of a few strtod
calls.

>
> > b) cursors are used to fetch just as many rows as you want from the
> > database
>
> I believe this will be required for DB-API anyway.

Cool.

Thanks.

>
>
> --
> D'Arcy J.M. Cain <darcy at caingang.com>      |  Democracy is three wolves
> http://www.druid.net/darcy/                |  and a sheep voting on
> +1 416 425 1212     (DoD#0082)    (eNTP)   |  what's for dinner.





More information about the Python-list mailing list