[issue42064] Convert sqlite3 to multi-phase initialisation (PEP 489)
Erlend E. Aasland
report at bugs.python.org
Tue Aug 31 08:49:35 EDT 2021
Erlend E. Aasland <erlend.aasland at innova.no> added the comment:
> The state doesn't have a refcount, but it is owned by a module object, so callback_context should own a reference to the module object.
Would it be sufficient to hold a reference to the connection object? The connection holds a reference to the connection type, and the connection type holds a reference to the module, right?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42064>
_______________________________________
More information about the Python-bugs-list
mailing list