mirror of https://github.com/swig/swig
Adjust Python variables example for Python 2
Explicitly call str() as previously Python 2 seemed to end up calling repr().
This commit is contained in:
parent
31f7b437f4
commit
936e9264e8
|
@ -2,7 +2,7 @@
|
|||
|
||||
import example
|
||||
|
||||
print("Variables =", example.cvar)
|
||||
print("Variables = " + str(example.cvar))
|
||||
|
||||
# Try to set the values of some global variables
|
||||
|
||||
|
|
Loading…
Reference in New Issue