From e79349d8868b0ad93b7317437f0eb8f95825aa6e Mon Sep 17 00:00:00 2001 From: Alec Cooper Date: Tue, 27 Oct 2015 20:12:03 -0400 Subject: Adding tp_finalize field to PyTypeObject for Python version 3.4 and up --- Lib/python/builtin.swg | 3 +++ Lib/python/pyinit.swg | 3 +++ Lib/python/pyrun.swg | 6 ++++++ 3 files changed, 12 insertions(+) (limited to 'Lib/python') diff --git a/Lib/python/builtin.swg b/Lib/python/builtin.swg index 1d892375c..340037580 100644 --- a/Lib/python/builtin.swg +++ b/Lib/python/builtin.swg @@ -435,6 +435,9 @@ SwigPyStaticVar_Type(void) { #if PY_VERSION_HEX >= 0x02060000 0, /* tp_version */ #endif +#if PY_VERSION_HEX >= 0x03040000 + 0, /* tp_finalize */ +#endif #ifdef COUNT_ALLOCS 0,0,0,0 /* tp_alloc -> tp_next */ #endif diff --git a/Lib/python/pyinit.swg b/Lib/python/pyinit.swg index e71c72b27..26c1d7ed3 100644 --- a/Lib/python/pyinit.swg +++ b/Lib/python/pyinit.swg @@ -185,6 +185,9 @@ swig_varlink_type(void) { #if PY_VERSION_HEX >= 0x02060000 0, /* tp_version */ #endif +#if PY_VERSION_HEX >= 0x03040000 + 0, /* tp_finalize */ +#endif #ifdef COUNT_ALLOCS 0,0,0,0 /* tp_alloc -> tp_next */ #endif diff --git a/Lib/python/pyrun.swg b/Lib/python/pyrun.swg index 5eedca483..47ac80492 100644 --- a/Lib/python/pyrun.swg +++ b/Lib/python/pyrun.swg @@ -806,6 +806,9 @@ SwigPyObject_TypeOnce(void) { #if PY_VERSION_HEX >= 0x02060000 0, /* tp_version */ #endif +#if PY_VERSION_HEX >= 0x03040000 + 0, /* tp_finalize */ +#endif #ifdef COUNT_ALLOCS 0,0,0,0 /* tp_alloc -> tp_next */ #endif @@ -985,6 +988,9 @@ SwigPyPacked_TypeOnce(void) { #if PY_VERSION_HEX >= 0x02060000 0, /* tp_version */ #endif +#if PY_VERSION_HEX >= 0x03040000 + 0, /* tp_finalize */ +#endif #ifdef COUNT_ALLOCS 0,0,0,0 /* tp_alloc -> tp_next */ #endif -- cgit v1.2.1