← 返回首页
bpo-24464: Deprecate sqlite3.enable_shared_cache by erlend-aasland · Pull Request #24008 · python/cpython · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

bpo-24464: Deprecate sqlite3.enable_shared_cache#24008

Merged
berkerpeksag merged 10 commits into
python:masterfrom
erlend-aasland:sqlite-shared-cache
Jan 6, 2021
Merged

bpo-24464: Deprecate sqlite3.enable_shared_cache#24008
berkerpeksag merged 10 commits into
python:masterfrom
erlend-aasland:sqlite-shared-cache

Conversation

erlend-aasland commented Dec 30, 2020
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Contributor

Copy link
Copy Markdown
Contributor Author

cc @ned-deily, @ronaldoussoren

Copy link
Copy Markdown
Contributor Author

FYI https://sqlite.org/c3ref/enable_shared_cache.html:
"Shared cache is disabled by default. It is recommended that it stay that way. In other words, do not use this routine. This interface continues to be provided for historical compatibility, but its use is discouraged. Any use of shared cache is discouraged."

Comment thread Doc/whatsnew/3.10.rst Outdated
(Contributed by Erlend E. Aasland in :issue:`42264`.)

* ``sqlite3.enable_shared_cache`` is now deprecated, scheduled for removal in
Python 3.12. The method is undocumented, and it's use is strongly

ZackerySpytz Dec 31, 2020
edited
Loading

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality Hide comment
Suggested change
Python 3.12. The method is undocumented, and it's use is strongly
Python 3.12. The method is undocumented, and its use is strongly

It is incorrect to use a contraction here.

Also, it seems that sqlite3.enable_shared_cache is not a method.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality Hide comment

Also, it seems that sqlite3.enable_shared_cache is not a method.

Correct, it's a built-in function. Good catch.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality Hide comment

See 7d52671. Is the new phrasing acceptable?

Comment thread Misc/NEWS.d/next/Library/2020-12-30-14-56-25.bpo-24464.vbNVHe.rst Outdated Show resolved Hide resolved
Comment thread Misc/NEWS.d/next/Library/2020-12-30-14-56-25.bpo-24464.vbNVHe.rst Outdated Show resolved Hide resolved
Erlend Egeberg Aasland and others added 4 commits December 31, 2020 20:05
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Co-authored-by: Zackery Spytz <zspytz@gmail.com>

Copy link
Copy Markdown
Contributor Author

PTAL, @ZackerySpytz

Comment thread Lib/sqlite3/dbapi2.py Show resolved Hide resolved
Comment thread Lib/sqlite3/dbapi2.py Outdated Show resolved Hide resolved
Comment thread Lib/sqlite3/dbapi2.py Outdated Show resolved Hide resolved
Erlend E. Aasland and others added 2 commits January 5, 2021 00:09

berkerpeksag left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality Hide comment

LGTM!

Copy link
Copy Markdown
Contributor Author

Thanks, and thanks for the markup fix, @berkerpeksag !

Copy link
Copy Markdown
Member

All failed tests seem to be unrelated and flaky. Will continue with merge.

adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 13, 2021
erlend-aasland added a commit to erlend-aasland/cpython that referenced this pull request May 9, 2022
The following sqlite3 features were deprecated in 3.10, scheduled for removal in 3.12: - sqlite3.OptimizedUnicode (pythongh-23163) - sqlite3.enable_shared_cache (pythongh-24008) Signed-off-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
erlend-aasland added a commit that referenced this pull request May 16, 2022
The following sqlite3 features were deprecated in 3.10, scheduled for removal in 3.12: - sqlite3.OptimizedUnicode (gh-23163) - sqlite3.enable_shared_cache (gh-24008) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Signed-off-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

Footer

© 2026 GitHub, Inc.