On Tue, 19 Sep 2006 13:20:56 -0400
"D'Arcy J.M. Cain" <[EMAIL PROTECTED]> wrote:
> In fact, let's make your comment a docstring:
>
> def row_factory(cur, row):
> """you can overwrite this with a custom row factory
> e.g. a dict_factory
>
> cursor = pgdbCursor(src, cache)
> def cursor.row_factory(caller, row):
> d = {}
> for idx, col in enumerate(caller.description):
> d[col[0]] = row[idx]
> return d
> """
> return rowI have further simplified your patch. See attached. Just one more thing - do you have a unit test? Add it to the file TEST_PyGreSQL_dbapi20.py in the same directory. Thanks. -- D'Arcy J.M. Cain PyGreSQL Development Group http://www.PyGreSQL.org
pgdb.py.diff.dc
Description: Binary data
_______________________________________________ PyGreSQL mailing list [email protected] http://mailman.vex.net/mailman/listinfo/pygresql
