Repository navigation
Deprecate sqlite3.version and sqlite3.version_info #93370
Description
Activity
- addedtype-featureA feature request or enhancementA feature request or enhancement3.12only security fixesonly security fixes
on May 31, 2022 - moved this from TODO: Feature to Backwards compatibility issues in sqlite3 issues
on May 31, 2022 - moved this from Backwards compatibility issues to TODO: Feature in sqlite3 issues
on May 31, 2022 But it would be nice to expose the Sqlite 3 version number. What do you think?
But it would be nice to expose the Sqlite 3 version number. What do you think?
We already do :)
sqlite3.sqlite_versionandsqlite3.sqlite_version_infoReacted by Serhiy Storchaka and Jeong, YunWonNot sure what is the process. But I am interested to work on this.
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 :)
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 !
3 remaining items
Reopening as pythoninfo.py was not updated to catch the deprecation warning. Excerpt from https://github.com/python/cpython/runs/7056328858?check_suite_focus=true:
/Users/runner/work/cpython/cpython/Lib/test/pythoninfo.py:55: DeprecationWarning: version is deprecated and will be removed in Python 3.14- added a commit that references this issue
on Jun 26, 2022 Remaining issue resolved by #94277.
There's a remaining use in
Lib/test/test_sqlite3/__init__.py- added a commit that references this issue
on Jul 19, 2022
Metadata
Metadata
Assignees
Labels
Projects
- StatusShow more project fieldsDone
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). ↩