summaryrefslogtreecommitdiff
path: root/Lib/python
diff options
context:
space:
mode:
authorAlec Cooper <ahnolds@gmail.com>2015-10-27 20:12:03 -0400
committerAlec Cooper <ahnolds@gmail.com>2015-10-27 20:12:03 -0400
commite79349d8868b0ad93b7317437f0eb8f95825aa6e (patch)
tree3ef48f2fc86b35a4f9c4620884d1538effdcf658 /Lib/python
parent00ca9c07d13adfc4f6b8917753a1db8f18561839 (diff)
downloadswig-e79349d8868b0ad93b7317437f0eb8f95825aa6e.tar.gz
Adding tp_finalize field to PyTypeObject for Python version 3.4 and up
Diffstat (limited to 'Lib/python')
-rw-r--r--Lib/python/builtin.swg3
-rw-r--r--Lib/python/pyinit.swg3
-rw-r--r--Lib/python/pyrun.swg6
3 files changed, 12 insertions, 0 deletions
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