Message308085
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! |
|
Date |
User |
Action |
Args |
2017-12-12 01:16:10 | Maxime Belanger | set | recipients:
+ Maxime Belanger, vstinner, ezio.melotti |
2017-12-12 01:16:10 | Maxime Belanger | set | messageid: <1513041370.04.0.213398074469.issue32285@psf.upfronthosting.co.za> |
2017-12-12 01:16:09 | Maxime Belanger | link | issue32285 messages |
2017-12-12 01:16:08 | Maxime Belanger | create | |
|