bpo-32285: Add unicodedata.is_normalized to check the current norma… by maxbelanger · Pull Request #4806 · python/cpython (original) (raw)

Introduces unicodedata.is_normalized, which can check whether a unistr is in a given normal form.

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

https://bugs.python.org/issue32285