From 1928936f9109f30a7bec02891be41a7b8594d59e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 23 Feb 2026 11:23:38 +0000 Subject: [PATCH 1/2] Initial plan From cfd9adaa96b3bdeae869181f10f33883356f5b0b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 23 Feb 2026 11:26:48 +0000 Subject: [PATCH 2/2] fix: avoid global enum access in generated Python checkError Co-authored-by: martinweismann <30837766+martinweismann@users.noreply.github.com> --- Source/buildbindingpython.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/buildbindingpython.go b/Source/buildbindingpython.go index 633b6787..ae7bcd68 100644 --- a/Source/buildbindingpython.go +++ b/Source/buildbindingpython.go @@ -323,7 +323,7 @@ func buildDynamicPythonImplementation(componentdefinition ComponentDefinition, w w.Writeln(" ") w.Writeln(" def checkError(self, instance, errorCode):") - w.Writeln(" if errorCode != ErrorCodes.SUCCESS.value:") + w.Writeln(" if errorCode != 0:") w.Writeln(" if instance:") w.Writeln(" if instance._wrapper != self:") w.Writeln(" raise E%sException(ErrorCodes.INVALIDCAST, 'invalid wrapper call')", NameSpace)