GeezerVison is showing github.com — Deprecate sqlite3.version and sqlite3.version_info · Issue #93370 · python/cpython
Deprecate sqlite3.version and sqlite3.version_info #93370DescriptionThe 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
Footnotes
-
The sqlite3 stdlib module was forked off of the external pysqlite module around 2005. ↩
-
Somewhere around 2015, IIRC. ↩
-
sqlite3.version is set to the value '2.6.0', and sqlite3.version_info is set to the value (2, 6, 0). ↩
Reacted by Ned Deily and sage Reacted by Simon Sawicki Activityserhiy-storchaka commented on May 31, 2022 But it would be nice to expose the Sqlite 3 version number. What do you think? erlend-aasland commented on Jun 1, 2022 ContributorAuthor More actions
But it would be nice to expose the Sqlite 3 version number. What do you think?
We already do :) sqlite3.sqlite_version and sqlite3.sqlite_version_info Reacted by Serhiy Storchaka and Jeong, YunWon subramaniam02 commented on Jun 3, 2022 Not sure what is the process. But I am interested to work on this. erlend-aasland commented on Jun 5, 2022 ContributorAuthor More actions
Not sure what is the process. But I am interested to work on this.
Sorry for the late reply. Looks like there is already a PR up, however there are probably more deprecations coming up in the 3.12 dev phase :) subramaniam02 commented on Jun 6, 2022
Not sure what is the process. But I am interested to work on this.
Sorry for the late reply. Looks like there is already a PR up, however there are probably more deprecations coming up in the 3.12 dev phase :)
Ok Thank you ! erlend-aasland commented on Jun 25, 2022 ContributorAuthor More actions erlend-aasland commented on Jun 27, 2022 ContributorAuthor More actions Remaining issue resolved by #94277. erlend-aasland commented on Jul 19, 2022 ContributorAuthor More actions There's a remaining use in Lib/test/test_sqlite3/__init__.py
MetadataMetadataStatusShow more project fields
DevelopmentNo branches or pull requestsIssue actions
|