[DB-SIG] PEP249 - Proposed change to DB-API 2.0
Federico Di Gregorio
fog@mixadlive.com
Fri, 27 Apr 2001 11:16:11 +0200
Scavenging the mail folder uncovered Chris Cogdon's letter:
> On Fri, 27 Apr 2001, Federico Di Gregorio wrote:
>
> > i don't understand. the following code (taken from psycopg)
> > implements *both* format and pyformat:
> >
> > query = PyString_Format(str, dict_or_tuple)
> >
> > that wotks both with %(name)s stype and a dict or %s stype and a tuple.
>
> Thats excellent, unfortunately the DB API as it stands has no way of
> advertising the fact that it could support both paramstyles.
agreed.
[snip]
> The issue I wanted to raise first was the lack of support for even
> /reporting/ that it can be done in the API spec, which at the moment
> assumes that the API writer will only ever write one calling method.
agreed again. this will go in the proposed extensions, when we'll have a
proposed extensions document. :)
ciao,
federico
--
Federico Di Gregorio
MIXAD LIVE Chief of Research & Technology fog@mixadlive.com
Debian GNU/Linux Developer & Italian Press Contact fog@debian.org
God is real. Unless declared integer. -- Anonymous FORTRAN programmer