Because John Kerry was about to be elected President of the USA couple years ago (snicker, snicker), the Massachusetts legislature passed a law that stated the sitting governor MUST appoint a senator of the same party as the former senator.
Well, fortunately, the law was not needed. But I wonder if a republican could simply change party to become a democrat - temporarily, of course?