diff options
author | Olly Betts <olly@survex.com> | 2022-03-15 18:10:27 +1300 |
---|---|---|
committer | Olly Betts <olly@survex.com> | 2022-03-15 18:11:34 +1300 |
commit | 936e9264e81c273ad1c1abd87b9ce350b863cf4f (patch) | |
tree | 4aaee2ba35b096f1156e3e7260538d4782cec150 | |
parent | 31f7b437f413a3e9c6c71c5c79ba7d3e6b6cc6f5 (diff) | |
download | swig-936e9264e81c273ad1c1abd87b9ce350b863cf4f.tar.gz |
Adjust Python variables example for Python 2
Explicitly call str() as previously Python 2 seemed to end up calling
repr().
-rw-r--r-- | Examples/python/variables/runme.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |