 Dustin Hoffman (qv) first got the idea to do this film while  working on _Kramer vs. Kramer (1979)_ (qv). He felt his character in  that film had to be both a mother and a father, so he started  thinking about how to play a man and a woman. Several scripts,  several writers and a few directors later, this was the result.