ATRIUMsearch → argument graph
AnecdoteArticle

sqlite-utils 的自动事务处理机制与使用 Python 3.12 新增的 autocommit=True/False 选项创建的连接从根本上不兼容,这一问题一经发现,几乎导致整个测试套件都出现故障。

Simon Willison 承认自己没有考虑到 Python 3.12 新增的 autocommit 连接模式;与 Fable 一起测试后发现,在这类连接上,db.atomic() 以及各方法自身的自动提交几乎会导致整个测试套件失败,因此需要进行修复,让这个库明确拒绝此类连接。 ✦ AI 生成 · 平台预翻

Simon Willison · Simon Willison's Weblog · 2026-07-05 · English original →

我承认自己没有想过 sqlite-utils 在面对 Python 3.12 新增的 autocommit 设置时会有什么反应。结果发现,所谓「在这类连接上表现不同」,等同于几乎整个测试套件都会失败,所以我和这个模型一起,确保这种差异不会破坏这个库原本的工作方式。
I admit I hadn't thought about how sqlite-utils would react to the more recent autocommit setting, added in Python 3.12. It turns out "behave differently on those connections" equated to almost the entire test suite failing, so I worked with the model to ensure that this difference would not break how the library works.

阅读原文 ↗合理引用摘录 · 中文为平台译文