/pyjs/tests/test032.py

http://pyjamas.googlecode.com/ · Python · 13 lines · 11 code · 2 blank · 0 comment · 1 complexity · 7d874c376333254acffc1dabd441d62b MD5 · raw file

  1. def i(x):
  2. return x
  3. def test_builtins():
  4. x = []
  5. y = callable(x)
  6. z = map(i, x)
  7. filter(callable, z)
  8. dir(x)
  9. if hasattr(x, "foo"):
  10. foo = getattr(x, "foo")
  11. test_builtins()