MySQLdb where's fetchoneDict()?

Gerhard Häring gh_pythonlist at
Sun Sep 30 11:31:22 CEST 2001

On Sun, Sep 30, 2001 at 10:39:25AM +0200, Gabriel Ambuehl wrote:
> Hello,
> I wonder whether there's a fetchoneDict() equivalent to
> fetchallDict()
> [...]
> says that for all the fetch*Dict() calls, does that mean I've got to
> rewrite all code that was written using fetch*Dict() based on v0.3.5?

There's no fetchoneDict() in the Python DB-API. So I think yes, you
should rewrite code that uses this. Sticking to the DB-API and using
portable SQL will also ensure that you can easily switch to a different
databaes, should you ever need that.

mail:   gerhard <at> bigfoot <dot> de       registered Linux user #64239
web:    OpenPGP public key id 86AB43C0
public key fingerprint: DEC1 1D02 5743 1159 CD20  A4B6 7B22 6575 86AB 43C0
reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 240 bytes
Desc: not available
URL: <>

More information about the Python-list mailing list