swig/swig-Python-Regression-fix-add-in-missing-SwigPyIterator_.patch
2024-01-23 12:50:48 +01:00

40 lines
1.2 KiB
Diff

From 95140fa417a4350e2a0ff51c6933667199949442 Mon Sep 17 00:00:00 2001
From: William S Fulton <wsf@fultondesigns.co.uk>
Date: Mon, 8 Jan 2024 19:31:49 +0000
Subject: [PATCH] Python Regression fix - add in missing SwigPyIterator_T
fragment
Closes #2744
---
CHANGES.current | 3 +++
Lib/python/std_map.i | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
#diff --git a/CHANGES.current b/CHANGES.current
#index b88b2f563..c925cdda5 100644
#--- a/CHANGES.current
#+++ b/CHANGES.current
#@@ -7,3 +7,6 @@ the issue number to the end of the URL: https://github.com/swig/swig/issues/
# Version 4.2.1 (in progress)
# ===========================
#
#+2024-01-06: wsfulton
#+ [Python] #2744 Regression fix - add in missing SwigPyIterator_T fragment for
#+ SwigPyIteratorClosed_T when using %import on an instantiated std::map.
diff --git a/Lib/python/std_map.i b/Lib/python/std_map.i
index 3f8f3b06b..954e7eb2d 100644
--- a/Lib/python/std_map.i
+++ b/Lib/python/std_map.i
@@ -2,7 +2,7 @@
Maps
*/
-%fragment("StdMapCommonTraits","header",fragment="StdSequenceTraits")
+%fragment("StdMapCommonTraits","header",fragment="StdSequenceTraits",fragment="SwigPyIterator_T")
{
namespace swig {
template <class ValueType>
--
2.43.0