Author Maxime Belanger
Recipients Maxime Belanger, ezio.melotti, vstinner
Date 2017-12-12.01:16:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1513041370.04.0.213398074469.issue32285@psf.upfronthosting.co.za>
In-reply-to
Content
In our deployment of Python 2.7, we've patched `unicodedata` to introduce a new function: `is_normalized` can check whether a unistr is in a given normal form. This currently has to be done by creating a normalized copy, then checking whether it is equal to the source string.

This function uses the internal helper (also called `is_normalized`) that can "quick check" normalization, but falls back on creating a normalized copy and comparing (when necessary).

We're contributing this change in case this can helpful to others. Feedback is welcome!
History
Date User Action Args
2017-12-12 01:16:10Maxime Belangersetrecipients: + Maxime Belanger, vstinner, ezio.melotti
2017-12-12 01:16:10Maxime Belangersetmessageid: <1513041370.04.0.213398074469.issue32285@psf.upfronthosting.co.za>
2017-12-12 01:16:09Maxime Belangerlinkissue32285 messages
2017-12-12 01:16:08Maxime Belangercreate