How to activate a layer via Python?

I realise we had that discussion before:

Sorry, I still don’t see a realistic scenario in which the current behaviour is better, and I see a lot of uses in which it would be be better to always make Cmd+1 switch to the first master.

Georg, can you explain why you think the current behaviour is better?