/tags/ttn-post-libtool-1-4-3-upgrade/SWIG/Examples/test-suite/python/using_protected_runme.py

# · Python · 7 lines · 5 code · 2 blank · 0 comment · 1 complexity · a1e0cab80ece018ac8f43f20f324ef6a MD5 · raw file

  1. from using_protected import *
  2. f = FooBar()
  3. f.x = 3
  4. if f.blah(4) != 4:
  5. raise RuntimeError, "blah(int)"