Hi list!

it would be nice to

def getSet(conn, sql):
   with conn.cursor() as cur:
      return cur.execute(something)

Are you against committing to the 'with' interface (__enter__, __exit__) for cursors or has there just been no need for it?

Best regards,
Marcus

_______________________________________________
PyGreSQL mailing list
[email protected]
http://mailman.vex.net/mailman/listinfo/pygresql

Reply via email to