[issue38043] small cleanups in Unicode normalization code
Greg Price
report at bugs.python.org
Fri Sep 6 00:46:54 EDT 2019
New submission from Greg Price <gnprice at gmail.com>:
Benjamin noticed in reviewing GH-15558 (for #37966) several points where the existing code around Unicode normalization can be improved:
* on the `QuickcheckResult` enum:
> Maybe `makeunicodedata.py` should output this enum (with better name namespacing)
* > merging `test_normalization` into this file [i.e. `test_unicodedata.py`] for clarity
* > These "boolean int" parameters could be actual `bool`s. [sc. the `nfc` and `k` parameters to `is_normalized_quickcheck`]
None of these are super hard, so good to knock them out while we're thinking of them.
----------
components: Unicode
messages: 351229
nosy: Greg Price, benjamin.peterson, ezio.melotti, vstinner
priority: normal
severity: normal
status: open
title: small cleanups in Unicode normalization code
versions: Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38043>
_______________________________________
More information about the Python-bugs-list
mailing list