Does it make sense to try-except a with statement for opening a database connection using psycopg2 or can I let psycopg2 handle errors itself

前端 未结 0 1280
感情败类
感情败类 2021-01-30 04:31

I\'ve heard once that with with statement, the commit (and the closing, but I\'m not quite sure for that and you would still need to close it on your own after the

相关标签:
回答
  • 消灭零回复
提交回复
热议问题