From 936e9264e81c273ad1c1abd87b9ce350b863cf4f Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Tue, 15 Mar 2022 18:10:27 +1300 Subject: [PATCH] Adjust Python variables example for Python 2 Explicitly call str() as previously Python 2 seemed to end up calling repr(). --- Examples/python/variables/runme.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Examples/python/variables/runme.py b/Examples/python/variables/runme.py index cf9f9f861..f305fbe25 100644 --- a/Examples/python/variables/runme.py +++ b/Examples/python/variables/runme.py @@ -2,7 +2,7 @@ import example -print("Variables =", example.cvar) +print("Variables = " + str(example.cvar)) # Try to set the values of some global variables