Paul McCartney recalls in his authorised biography, Many Years from Now, that he had written the song, intending to give it to Marianne Faithfull to record, but she passed on recording it, as did the Beatles.
