mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-41861: Convert _sqlite3 RowType and StatementType to heap types (GH-22444)
This commit is contained in:
parent
fa7ce08017
commit
9031bd4fa4
9 changed files with 72 additions and 119 deletions
|
@ -267,7 +267,7 @@ static PyType_Slot pysqlite_NodeType_slots[] = {
|
|||
static PyType_Spec pysqlite_NodeType_spec = {
|
||||
.name = MODULE_NAME ".Node",
|
||||
.basicsize = sizeof(pysqlite_Node),
|
||||
.flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE | Py_TPFLAGS_HEAPTYPE,
|
||||
.flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
|
||||
.slots = pysqlite_NodeType_slots,
|
||||
};
|
||||
PyTypeObject *pysqlite_NodeType = NULL;
|
||||
|
@ -291,7 +291,7 @@ static PyType_Slot pysqlite_CacheType_slots[] = {
|
|||
static PyType_Spec pysqlite_CacheType_spec = {
|
||||
.name = MODULE_NAME ".Cache",
|
||||
.basicsize = sizeof(pysqlite_Cache),
|
||||
.flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE | Py_TPFLAGS_HEAPTYPE,
|
||||
.flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
|
||||
.slots = pysqlite_CacheType_slots,
|
||||
};
|
||||
PyTypeObject *pysqlite_CacheType = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue