Message 163192 - Python tracker
I'm well aware of the fact that they have different timings. That's why I argued against including a unicode aware variant of the timing safe compare function.
I've used Guido's time machine and seen requests for a unicode function in the future. ;) I think (educated guess) that s.encode('unicode-internal') discloses the least amount of information. That way I argued that we suggest it in the documentation.