/pyjs/tests/test032.py
Python | 13 lines | 11 code | 2 blank | 0 comment | 1 complexity | 7d874c376333254acffc1dabd441d62b MD5 | raw file
1def i(x): 2 return x 3 4def test_builtins(): 5 x = [] 6 y = callable(x) 7 z = map(i, x) 8 filter(callable, z) 9 dir(x) 10 if hasattr(x, "foo"): 11 foo = getattr(x, "foo") 12 13test_builtins()