On Sun, 29 Mar 2009 13:45:11 +0200 Christoph Zwerschke <[email protected]> wrote: > Adam schrieb: > > Cursor execute function return self (cursor) to allow for code like: > > I agree that this would be quite useful. It seems pyodbc now does the > same. There is only a small issue that other implementations and DBAPI1 > used to return the rowcount here. But PyGres never did this, and in > DBAPI2 it's undefined, so I don't think it's a real problem.
I suppose it is OK. I find a vague un-pythonic smell to returning self but I have no hard facts to back that up. I would like to see a comment in the docs warning that it is an extension that won't be portable and could break programs if the specification changes to return something else. -- D'Arcy J.M. Cain PyGreSQL Development Group http://www.PyGreSQL.org _______________________________________________ PyGreSQL mailing list [email protected] http://mailman.vex.net/mailman/listinfo/pygresql
