From d5291a77e18dbc5342803f1d80bc55c6333f1271 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Thu, 6 Apr 2023 12:53:47 +0100 Subject: Remove now redundant use of Python Sequence protocol in STL wrappers Removes SwigPySequence_Cont and support classes: SwigPySequence_ArrowProxy, SwigPySequence_Cont, SwigPySequence_Ref The recently added Iterator Protocol support should cover the Sequence Protocol usage for converting from Python containers to STL containers. --- Lib/python/pyname_compat.i | 5 ----- 1 file changed, 5 deletions(-) (limited to 'Lib/python/pyname_compat.i') diff --git a/Lib/python/pyname_compat.i b/Lib/python/pyname_compat.i index a9630dbe7..ca063153b 100644 --- a/Lib/python/pyname_compat.i +++ b/Lib/python/pyname_compat.i @@ -25,7 +25,6 @@ */ %fragment("PySequence_Base", "header", fragment="SwigPySequence_Base") {} -%fragment("PySequence_Cont", "header", fragment="SwigPySequence_Cont") {} %fragment("PySwigIterator_T", "header", fragment="SwigPyIterator_T") {} %fragment("PyPairBoolOutputIterator", "header", fragment="SwigPyPairBoolOutputIterator") {} %fragment("PySwigIterator", "header", fragment="SwigPyIterator") {} @@ -39,10 +38,6 @@ #define PyObject_var SwigVar_PyObject #define PyOper SwigPyOper #define PySeq SwigPySeq -#define PySequence_ArrowProxy SwigPySequence_ArrowProxy -#define PySequence_Cont SwigPySequence_Cont -#define PySequence_InputIterator SwigPySequence_InputIterator -#define PySequence_Ref SwigPySequence_Ref #define PySwigClientData SwigPyClientData #define PySwigClientData_Del SwigPyClientData_Del #define PySwigClientData_New SwigPyClientData_New -- cgit v1.2.1 From 08aee96cbd1de0c842b29776be8c24e9f742ef2d Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Thu, 6 Apr 2023 13:08:47 +0100 Subject: Remove assign method uses by the removed Python Sequence Protocol --- Lib/python/pyname_compat.i | 2 -- 1 file changed, 2 deletions(-) (limited to 'Lib/python/pyname_compat.i') diff --git a/Lib/python/pyname_compat.i b/Lib/python/pyname_compat.i index ca063153b..789b28443 100644 --- a/Lib/python/pyname_compat.i +++ b/Lib/python/pyname_compat.i @@ -37,7 +37,6 @@ #define PyObject_ptr SwigPtr_PyObject #define PyObject_var SwigVar_PyObject #define PyOper SwigPyOper -#define PySeq SwigPySeq #define PySwigClientData SwigPyClientData #define PySwigClientData_Del SwigPyClientData_Del #define PySwigClientData_New SwigPyClientData_New @@ -74,7 +73,6 @@ #define PySwigPacked_repr SwigPyPacked_repr #define PySwigPacked_str SwigPyPacked_str #define PySwigPacked_type SwigPyPacked_type -#define pyseq swigpyseq #define pyswigobject_type swigpyobject_type #define pyswigpacked_type swigpypacked_type %} -- cgit v1.2.1