I assumed for many years, because of the scorned and scornful tone of the lyrics, that this was a Lennon song. Actually, McCartney wrote most of it. The fact that he’s the lead singer should have tipped me off. John plays acoustic rhythm guitar and sings back-up.
Footnote: Paul is 69 and sounding a bit ragged (check out the Grammy Awards), but so what? The Beatles’ records will never get old.