PageRenderTime 3ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/python/iadd_runme.py

#
Python | 9 lines | 6 code | 3 blank | 0 comment | 1 complexity | 939c5e8bdb6f7d8330fabc9f036d2a96 MD5 | raw file
1import iadd
2
3f = iadd.Foo()
4
5f.AsA.x = 3
6f.AsA += f.AsA 
7
8if f.AsA.x != 6:
9    raise RuntimeError