Changeset: 7ea2e264682d for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/7ea2e264682d
Modified Files:
        sql/backends/monet5/UDF/pyapi3/connection3.c
        sql/backends/monet5/UDF/pyapi3/emit3.c
Branch: Mar2025
Log Message:

Python portability improvement.


diffs (24 lines):

diff --git a/sql/backends/monet5/UDF/pyapi3/connection3.c 
b/sql/backends/monet5/UDF/pyapi3/connection3.c
--- a/sql/backends/monet5/UDF/pyapi3/connection3.c
+++ b/sql/backends/monet5/UDF/pyapi3/connection3.c
@@ -97,7 +97,7 @@ static PyMethodDef _connectionObject_met
 };
 
 PyTypeObject Py_ConnectionType = {
-       .ob_base.ob_base.ob_refcnt = 1,
+       PyVarObject_HEAD_INIT(NULL, 0)
        .tp_name = "monetdb._connection",
        .tp_basicsize = sizeof(Py_ConnectionObject),
        .tp_hash = (hashfunc)PyObject_HashNotImplemented,
diff --git a/sql/backends/monet5/UDF/pyapi3/emit3.c 
b/sql/backends/monet5/UDF/pyapi3/emit3.c
--- a/sql/backends/monet5/UDF/pyapi3/emit3.c
+++ b/sql/backends/monet5/UDF/pyapi3/emit3.c
@@ -418,7 +418,7 @@ static PyMethodDef _emitObject_methods[]
 };
 
 PyTypeObject PyEmitType = {
-       .ob_base.ob_base.ob_refcnt = 1,
+       PyVarObject_HEAD_INIT(NULL, 0)
        .tp_name = "monetdb._emit",
        .tp_basicsize = sizeof(PyEmitObject),
        .tp_hash = (hashfunc)PyObject_HashNotImplemented,
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to