li = ["A", "B"] print li.pop print getattr(li, "pop") print getattr(li, "append") print li print getattr({}, "clear") print getattr((), "pop")