Written for the screen by Donald Ogden Stewart and an un-credited Waldo Salt, it is considered one of the best examples of a comedy of remarriage, a genre popular in the 1930s and 1940s, in which a couple divorce, flirt with outsiders and then remarryโa useful story-telling ploy at a time when the depiction of extramarital affairs was blocked by the Production Code. (Wikipedia)