summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorGreg Price <gnprice@gmail.com>2019-09-12 09:23:43 (GMT)
committerBenjamin Peterson <benjamin@python.org>2019-09-12 09:23:43 (GMT)
commita65678c5c90002c5e40fa82746de07e6217df625 (patch)
tree18ba0406e9b31b21cc9469e159ce526c4476d18c /Misc
parent5e9caeec76119a0d61c25f1466c27b7dbd5115bd (diff)
downloadcpython-a65678c5c90002c5e40fa82746de07e6217df625.zip
cpython-a65678c5c90002c5e40fa82746de07e6217df625.tar.gz
cpython-a65678c5c90002c5e40fa82746de07e6217df625.tar.bz2
bpo-37760: Convert from length-18 lists to a dataclass, in makeunicodedata. (GH-15265)
Now the fields have names! Much easier to keep straight as a reader than the elements of an 18-tuple. Runs about 10-15% slower: from 10.8s to 12.3s, on my laptop. Fortunately that's perfectly fine for this maintenance script.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Build/2019-08-24-17-39-09.bpo-37760.f3jXuH.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Build/2019-08-24-17-39-09.bpo-37760.f3jXuH.rst b/Misc/NEWS.d/next/Build/2019-08-24-17-39-09.bpo-37760.f3jXuH.rst
new file mode 100644
index 0000000..0498173
--- /dev/null
+++ b/Misc/NEWS.d/next/Build/2019-08-24-17-39-09.bpo-37760.f3jXuH.rst
@@ -0,0 +1,6 @@
+The :file:`Tools/unicode/makeunicodedata.py` script, which is used for
+converting information from the Unicode Character Database into generated
+code and data used by the methods of :class:`str` and by the
+:mod:`unicodedata` module, now handles each character's data as a
+``dataclass`` with named attributes, rather than a length-18 list of
+different fields.