[issue42064] Convert sqlite3 to multi-phase initialisation (PEP 489)

Erlend Egeberg Aasland report at bugs.python.org
Sat Oct 17 16:30:00 EDT 2020


Erlend Egeberg Aasland <erlend.aasland at innova.no> added the comment:

Instead of using a custom context struct for sqlite3_create_funcion_v2(), we may just use sqlite3_context_db_handle() to get `self`, and then fetch the state using PyType_GetModuleState(Py_TYPE(self)).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42064>
_______________________________________


More information about the Python-bugs-list mailing list