◐ Shell
clean mode source ↗

gh-92547: Remove deprecated sqlite3 features by erlend-aasland · Pull Request #92548 · python/cpython

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)

Signed-off-by: Erlend E. Aasland <erlend.aasland@protonmail.com>

JelleZijlstra

Choose a reason for hiding this comment

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

Code looks good, but let's hold off on merging until the nltk usage of OptimizedUnicode is fixed.

@erlend-aasland

Code looks good, but let's hold off on merging until the nltk usage of OptimizedUnicode is fixed.

FTR, nltk/nltk#3000 was just merged.

@JelleZijlstra

@erlend-aasland

Thanks for helping, Jelle and Victor!

@vstinner

Removed code contained instructions to port existing code to avoid the deprecation warning: replace OptimizedUnicode with str and use URI with cache=shared: 00f22e8

Would you mind to copy these information in What's New in Python 3.12?

@erlend-aasland

Removed code contained instructions to port existing code to avoid the deprecation warning: replace OptimizedUnicode with str and use URI with cache=shared: 00f22e8

Would you mind to copy these information in What's New in Python 3.12?

Yes, I'll amend What's New. Thanks for the heads-up!

@erlend-aasland

Would you mind to copy these information in What's New in Python 3.12?

Something like this? #93872

@vstinner

Something like this? #93872

That's very valuable, thanks.

donbarbos added a commit to donbarbos/typeshed that referenced this pull request

Mar 29, 2026