News for hackers. Stuff that matters.
Re:Thinking Psycopg3 by quietbritishjim on Thursday March 12, 2020 @06:33AM (#22555375)
You are right and I had forgotten about that. I mostly use SQLite from Python which actually does allow .execute() on the connection as a non-standard extension to DBAPI, so it supports exactly the two snippets you posted. It is a bit awkward that you have to create your cursor before you execute the query, I don't quite see the reason for that.

There are no comments on this comment yet.