Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-42264: Deprecate sqlite3.OptimizedUnicode #23163

Merged
merged 11 commits into from Nov 17, 2020

Conversation

erlend-aasland
Copy link
Contributor

@erlend-aasland erlend-aasland commented Nov 5, 2020

Fixes #86430

@erlend-aasland erlend-aasland changed the title bpo-42264: Deprecate OptimizedUnicode bpo-42264: Deprecate sqlite3.OptimizedUnicode Nov 5, 2020
Lib/sqlite3/deprecated.py Outdated Show resolved Hide resolved
@bedevere-bot
Copy link

@bedevere-bot bedevere-bot commented Nov 5, 2020

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
Contributor Author

@erlend-aasland erlend-aasland commented Nov 5, 2020

I have made the requested changes; please review again

@bedevere-bot
Copy link

@bedevere-bot bedevere-bot commented Nov 5, 2020

Thanks for making the requested changes!

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

Copy link
Member

@serhiy-storchaka serhiy-storchaka left a comment

LGTM.

@erlend-aasland
Copy link
Contributor Author

@erlend-aasland erlend-aasland commented Nov 5, 2020

Thanks for reviewing, @serhiy-storchaka!

@serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Nov 5, 2020

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

@erlend-aasland
Copy link
Contributor Author

@erlend-aasland erlend-aasland commented Nov 5, 2020

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
Contributor Author

@erlend-aasland erlend-aasland commented Nov 5, 2020

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

Lib/sqlite3/deprecated.py Outdated Show resolved Hide resolved
Doc/whatsnew/3.10.rst Outdated Show resolved Hide resolved
erlend-aasland and others added 2 commits Nov 5, 2020
Co-authored-by: Victor Stinner <vstinner@python.org>
@erlend-aasland
Copy link
Contributor Author

@erlend-aasland erlend-aasland commented Nov 5, 2020

PTAL, @vstinner

Lib/sqlite3/__init__.py Outdated Show resolved Hide resolved
@erlend-aasland
Copy link
Contributor Author

@erlend-aasland erlend-aasland commented Nov 5, 2020

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

@vstinner
Copy link
Member

@vstinner vstinner commented Nov 6, 2020

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.

Copy link
Member

@vstinner vstinner left a comment

Good, it's way better! More comments.

Lib/sqlite3/__init__.py Outdated Show resolved Hide resolved
erlend-aasland and others added 2 commits Nov 6, 2020
Use the same text as the What's New entry.
Co-authored-by: Victor Stinner <vstinner@python.org>
@erlend-aasland
Copy link
Contributor Author

@erlend-aasland erlend-aasland commented Nov 6, 2020

Please take another look, @vstinner.

Copy link
Member

@vstinner vstinner left a comment

LGTM.

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

@erlend-aasland
Copy link
Contributor Author

@erlend-aasland erlend-aasland commented Nov 17, 2020

@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:master Nov 17, 2020
10 checks passed
@erlend-aasland erlend-aasland deleted the bpo-42264 branch Nov 17, 2020
adorilson pushed a commit to adorilson/cpython that referenced this issue Mar 13, 2021
erlend-aasland added a commit to erlend-aasland/cpython that referenced this issue 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 issue 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 free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants