diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2020-08-15 16:46:01 +0100 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2020-08-15 16:46:01 +0100 |
commit | 89bee6a7fa2236da8f10bf200abdc4892d4085b8 (patch) | |
tree | b4a6efa27ad38a2e7146a91b6832b80631c0c677 /Examples/python/functor | |
parent | 2af35cb4ff80f352aa2f8f2b02bfd31000db4188 (diff) | |
download | swig-89bee6a7fa2236da8f10bf200abdc4892d4085b8.tar.gz |
Modify examples to be both Python 2 and 3 compatible
For removing dependency on 2to3
Diffstat (limited to 'Examples/python/functor')
-rw-r--r-- | Examples/python/functor/runme.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Examples/python/functor/runme.py b/Examples/python/functor/runme.py index 7f6f2b649..69289a78b 100644 --- a/Examples/python/functor/runme.py +++ b/Examples/python/functor/runme.py @@ -12,5 +12,5 @@ for i in range(0, 100): a(i) # Note: function call b(math.sqrt(i)) # Note: function call -print a.result() -print b.result() +print(a.result()) +print(b.result()) |