← 返回首页
bpo-42264: Deprecate sqlite3.OptimizedUnicode by erlend-aasland · Pull Request #23163 · 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-42264: Deprecate sqlite3.OptimizedUnicode#23163

Merged
serhiy-storchaka merged 11 commits into
python:masterfrom
erlend-aasland:bpo-42264
Nov 17, 2020
Merged

bpo-42264: Deprecate sqlite3.OptimizedUnicode#23163
serhiy-storchaka merged 11 commits into
python:masterfrom
erlend-aasland:bpo-42264

Conversation

erlend-aasland commented Nov 5, 2020
edited
Loading

Copy link
Copy Markdown
Contributor

Fixes #86430

erlend-aasland changed the title bpo-42264: Deprecate OptimizedUnicode bpo-42264: Deprecate sqlite3.OptimizedUnicode Nov 5, 2020
Comment thread Lib/sqlite3/deprecated.py Outdated Show resolved Hide resolved

Copy link
Copy Markdown

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

Copy link
Copy Markdown
Contributor Author

I have made the requested changes; please review again

Copy link
Copy Markdown

Thanks for making the requested changes!

@serhiy-storchaka: please review the changes made to this pull request.

serhiy-storchaka 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 for reviewing, @serhiy-storchaka!

Copy link
Copy Markdown
Member

And it could be good idea to add tests for filename to all existing deprecation tests.

Copy link
Copy Markdown
Contributor Author

And it could be good idea to add tests for filename to all existing deprecation tests.

I agree. I can open an issue for it.

Copy link
Copy Markdown
Contributor Author

And it could be good idea to add tests for filename to all existing deprecation tests.

There's a lot:

bash$ grep -r "DeprecationWarning" Lib/test | grep -v " as " | wc -l (master)cpython.git 519

Comment thread Lib/sqlite3/deprecated.py Outdated Show resolved Hide resolved
Comment thread Misc/NEWS.d/next/Library/2020-11-05-13-32-41.bpo-42264.r4KYUU.rst Outdated Show resolved Hide resolved
Comment thread Doc/whatsnew/3.10.rst Outdated Show resolved Hide resolved
Erlend Egeberg Aasland and others added 2 commits November 5, 2020 20:11
Co-authored-by: Victor Stinner <vstinner@python.org>
17 hidden items Load more…

Copy link
Copy Markdown
Contributor Author

PTAL, @vstinner

Comment thread Lib/sqlite3/__init__.py Outdated Show resolved Hide resolved

Copy link
Copy Markdown
Contributor Author

FYI, Ubuntu CI hangs again:
test_virtual_event (tkinter.test.test_ttk.test_widgets.ComboboxTest) ... Timeout (0:20:00)!

vstinner commented Nov 6, 2020

Copy link
Copy Markdown
Member

test_virtual_event (tkinter.test.test_ttk.test_widgets.ComboboxTest) ... Timeout (0:20:00)!

It is a know issue https://bugs.python.org/issue42142

You can ignore it. When it happens, I simply re-run the job until it pass.

vstinner 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

Good, it's way better! More comments.

Comment thread Misc/NEWS.d/next/Library/2020-11-05-13-32-41.bpo-42264.r4KYUU.rst Outdated Show resolved Hide resolved
Comment thread Lib/sqlite3/__init__.py Outdated Show resolved Hide resolved
Erlend E. Aasland and others added 2 commits November 6, 2020 20:08
Use the same text as the What's New entry.
Co-authored-by: Victor Stinner <vstinner@python.org>

Copy link
Copy Markdown
Contributor Author

Please take another look, @vstinner.

vstinner 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.

@serhiy-storchaka: Do you want to double check this PR?

Copy link
Copy Markdown
Contributor Author

@serhiy-storchaka Will you merge this after double checking, or will that be up to another core dev to decide?

serhiy-storchaka merged commit a1f401a into python:master Nov 17, 2020
erlend-aasland deleted the bpo-42264 branch November 17, 2020 19:55
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.