The sqlite3.version and sqlite3.version_info attributes have historically created some confusion, as they are sometimes mistaken for the SQLite 3 version number. They used to reflect the pysqlite1 version number, until the external pysqlite package stopped upstreaming changes to the stdlib sqlite3 module2, but today they carry no meaning or practical value3.
In order to avoid future frustration, I suggest to deprecate sqlite3.version and sqlite3.version_info in 3.12, and remove them in 3.14.
See also discussion on Discourse
The
sqlite3.versionandsqlite3.version_infoattributes have historically created some confusion, as they are sometimes mistaken for the SQLite 3 version number. They used to reflect the pysqlite1 version number, until the external pysqlite package stopped upstreaming changes to the stdlib sqlite3 module2, but today they carry no meaning or practical value3.In order to avoid future frustration, I suggest to deprecate
sqlite3.versionandsqlite3.version_infoin 3.12, and remove them in 3.14.See also discussion on Discourse
Footnotes
The sqlite3 stdlib module was forked off of the external pysqlite module around 2005. ↩
Somewhere around 2015, IIRC. ↩
sqlite3.versionis set to the value'2.6.0', andsqlite3.version_infois set to the value(2, 6, 0). ↩