/pyjs/tests/test032.py
http://pyjamas.googlecode.com/ · Python · 13 lines · 11 code · 2 blank · 0 comment · 1 complexity · 7d874c376333254acffc1dabd441d62b MD5 · raw file
- def i(x):
- return x
- def test_builtins():
- x = []
- y = callable(x)
- z = map(i, x)
- filter(callable, z)
- dir(x)
- if hasattr(x, "foo"):
- foo = getattr(x, "foo")
- test_builtins()