New submission from Erlend Egeberg Aasland <erlend.aasl...@innova.no>:

We should explicitly initialise (and shut down) the SQLite library in the 
sqlite3 module. This may be required in future releases:

Quoting from the SQLite docs:
"For maximum portability, it is recommended that applications always invoke 
sqlite3_initialize() directly prior to using any other SQLite interface. Future 
releases of SQLite may require this. In other words, the behavior exhibited 
when SQLite is compiled with SQLITE_OMIT_AUTOINIT might become the default 
behavior in some future release of SQLite."

Ref.
- https://sqlite.org/c3ref/initialize.html
- https://sqlite.org/compile.html#omit_autoinit

----------
components: Library (Lib)
messages: 388788
nosy: berker.peksag, erlendaasland, serhiy.storchaka
priority: normal
severity: normal
status: open
title: [sqlite3] Explicitly initialise and shut down sqlite3
type: enhancement
versions: Python 3.10

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue43505>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to