def i(x):
return x
class Foo:
passdef test_builtins():
x = []
y = callable(x)
z = map(i, x)
filter(callable, z)
dir(x)
if hasattr(x, "foo"):
foo = getattr(x, "foo")
f = Foo()
setattr(f, "bar", 42)
if hasattr(f, "bar"):
bar = getattr(f, "bar")
test_builtins()