"doc is a string, list, or tuple" . . . .