Crash report
import sqlite3
cx = sqlite3.connect(":memory:")
del cx.autocommit
set_autocommit() in Modules/_sqlite/connection.c passes the value to autocommit_converter(), which dereferences it in Py_IsTrue().
Deleting row_factory and text_factory of a connection is already rejected with an AttributeError (gh-149738); autocommit should be rejected too.
The same code is in 3.13, 3.14 and 3.15.
Linked PRs
Crash report
set_autocommit()inModules/_sqlite/connection.cpasses the value toautocommit_converter(), which dereferences it inPy_IsTrue().Deleting
row_factoryandtext_factoryof a connection is already rejected with anAttributeError(gh-149738);autocommitshould be rejected too.The same code is in 3.13, 3.14 and 3.15.
Linked PRs