From 250afd6dc3b5f3aec2b13fb97655bd4b68b28cc2 Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Tue, 15 Mar 2022 11:06:20 +1300 Subject: [PATCH] List variables in variables example Seems useful in itself, but also serves to check if https://sourceforge.net/p/swig/bugs/976/ is still reproducible. --- Examples/python/variables/runme.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Examples/python/variables/runme.py b/Examples/python/variables/runme.py index d59e0aa3e..cf9f9f861 100644 --- a/Examples/python/variables/runme.py +++ b/Examples/python/variables/runme.py @@ -2,6 +2,8 @@ import example +print("Variables =", example.cvar) + # Try to set the values of some global variables example.cvar.ivar = 42 @@ -22,7 +24,7 @@ example.cvar.name = "Bill" # Now print out the values of the variables -print("Variables (values printed from Python)") +print("\nVariables (values printed from Python)") print("ivar = %s" % example.cvar.ivar) print("svar = %s" % example.cvar.svar)