Is it a bad practice to use @property as db.cursor?

前端 未结 0 1739
感动是毒
感动是毒 2021-01-06 01:52

The main question is it ok that I don\'t commit any executions and don\'t close db at all?

    @property
    def cursor(self):
        return sqlite3.connect(         


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