Skip to content

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

@erlend-aaslanderlend-aasland commented Nov 5, 2020

Copy link
Copy Markdown
Contributor

Fixes#86430

@erlend-aaslanderlend-aasland changed the title bpo-42264: Deprecate OptimizedUnicodebpo-42264: Deprecate sqlite3.OptimizedUnicodeNov 5, 2020
Comment threadLib/sqlite3/deprecated.py Outdated
@bedevere-bot

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.

@erlend-aasland

Copy link
Copy Markdown
ContributorAuthor

I have made the requested changes; please review again

@bedevere-bot

Copy link
Copy Markdown

Thanks for making the requested changes!

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

@serhiy-storchakaserhiy-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.

LGTM.

@erlend-aasland

Copy link
Copy Markdown
ContributorAuthor

Thanks for reviewing, @serhiy-storchaka!

@serhiy-storchaka

Copy link
Copy Markdown
Member

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

@erlend-aasland

Copy link
Copy Markdown
ContributorAuthor

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.

@erlend-aasland

Copy link
Copy Markdown
ContributorAuthor

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 threadLib/sqlite3/deprecated.py Outdated
Comment threadMisc/NEWS.d/next/Library/2020-11-05-13-32-41.bpo-42264.r4KYUU.rst Outdated
Comment threadDoc/whatsnew/3.10.rst Outdated
Erlend Egeberg Aaslandand others added 2 commits November 5, 2020 20:11
Co-authored-by: Victor Stinner <vstinner@python.org>
@erlend-aasland

Copy link
Copy Markdown
ContributorAuthor

PTAL, @vstinner

Comment threadLib/sqlite3/__init__.py Outdated
@erlend-aasland

Copy link
Copy Markdown
ContributorAuthor

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

@vstinner

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.

@vstinnervstinner 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.

Good, it's way better! More comments.

Comment threadMisc/NEWS.d/next/Library/2020-11-05-13-32-41.bpo-42264.r4KYUU.rst Outdated
Comment threadLib/sqlite3/__init__.py Outdated
Erlend E. Aaslandand 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>
@erlend-aasland

Copy link
Copy Markdown
ContributorAuthor

Please take another look, @vstinner.

@vstinnervstinner 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.

LGTM.

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

@erlend-aasland

Copy link
Copy Markdown
ContributorAuthor

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

@serhiy-storchaka
serhiy-storchaka merged commit a1f401a into python:masterNov 17, 2020
@erlend-aasland
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>
Sign up for freeto 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

@erlend-aasland@bedevere-bot@serhiy-storchaka@vstinner@hafizulsaat92@the-knights-who-say-ni