It was already implemented in PyUnicode_RichCompare()
Attach a file by drag & drop or click to upload