PageRenderTime 45ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/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
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. from using_protected import *
  2. f = FooBar()
  3. f.x = 3
  4. if f.blah(4) != 4:
  5. raise RuntimeError, "blah(int)"