PageRenderTime 31ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/pyjs/tests/test040.py

http://pyjamas.googlecode.com/
Python | 18 lines | 11 code | 5 blank | 2 comment | 0 complexity | 0ac0eb619007055e7c408f202b5093c2 MD5 | raw file
Possible License(s): LGPL-2.1, Apache-2.0
  1. # some assignment tests
  2. class Foo:
  3. mu = 5
  4. def test(self):
  5. foo = 5
  6. baz[1] = 5
  7. bar.foo = 5
  8. self.foo = 5
  9. biz.baz.foo = 5
  10. baz[2].foo = 5
  11. # augmented assignments
  12. foo += 5
  13. bar.foo += 5