Skip to content

Commit

Permalink
pythongh-124016: update Unicode to 16.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminp committed Sep 12, 2024
1 parent b2afe2a commit 0e6b610
Show file tree
Hide file tree
Showing 10 changed files with 22,575 additions and 20,687 deletions.
8 changes: 4 additions & 4 deletions Doc/library/stdtypes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1679,7 +1679,7 @@ expression support in the :mod:`re` module).

The casefolding algorithm is
`described in section 3.13 'Default Case Folding' of the Unicode Standard
<https://www.unicode.org/versions/Unicode15.1.0/ch03.pdf>`__.
<https://www.unicode.org/versions/Unicode16.0.0/core-spec/chapter-3/#G33992>`__.

.. versionadded:: 3.3

Expand Down Expand Up @@ -1843,7 +1843,7 @@ expression support in the :mod:`re` module).
property being one of "Lm", "Lt", "Lu", "Ll", or "Lo". Note that this is different
from the `Alphabetic property defined in the section 4.10 'Letters, Alphabetic, and
Ideographic' of the Unicode Standard
<https://www.unicode.org/versions/Unicode15.1.0/ch04.pdf>`_.
<https://www.unicode.org/versions/Unicode16.0.0/core-spec/chapter-4/#G91002>`_.


.. method:: str.isascii()
Expand Down Expand Up @@ -1979,7 +1979,7 @@ expression support in the :mod:`re` module).

The lowercasing algorithm used is
`described in section 3.13 'Default Case Folding' of the Unicode Standard
<https://www.unicode.org/versions/Unicode15.1.0/ch03.pdf>`__.
<https://www.unicode.org/versions/Unicode16.0.0/core-spec/chapter-3/#G33992>`__.


.. method:: str.lstrip([chars])
Expand Down Expand Up @@ -2331,7 +2331,7 @@ expression support in the :mod:`re` module).

The uppercasing algorithm used is
`described in section 3.13 'Default Case Folding' of the Unicode Standard
<https://www.unicode.org/versions/Unicode15.1.0/ch03.pdf>`__.
<https://www.unicode.org/versions/Unicode16.0.0/core-spec/chapter-3/#G33992>`__.


.. method:: str.zfill(width)
Expand Down
8 changes: 4 additions & 4 deletions Doc/library/unicodedata.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@

This module provides access to the Unicode Character Database (UCD) which
defines character properties for all Unicode characters. The data contained in
this database is compiled from the `UCD version 15.1.0
<https://www.unicode.org/Public/15.1.0/ucd>`_.
this database is compiled from the `UCD version 16.0.0
<https://www.unicode.org/Public/16.0.0/ucd>`_.

The module uses the same names and symbols as defined by Unicode
Standard Annex #44, `"Unicode Character Database"
Expand Down Expand Up @@ -175,6 +175,6 @@ Examples:

.. rubric:: Footnotes

.. [#] https://www.unicode.org/Public/15.1.0/ucd/NameAliases.txt
.. [#] https://www.unicode.org/Public/16.0.0/ucd/NameAliases.txt
.. [#] https://www.unicode.org/Public/15.1.0/ucd/NamedSequences.txt
.. [#] https://www.unicode.org/Public/16.0.0/ucd/NamedSequences.txt
8 changes: 4 additions & 4 deletions Doc/reference/lexical_analysis.rst
Original file line number Diff line number Diff line change
Expand Up @@ -314,16 +314,16 @@ The Unicode category codes mentioned above stand for:
* *Nd* - decimal numbers
* *Pc* - connector punctuations
* *Other_ID_Start* - explicit list of characters in `PropList.txt
<https://www.unicode.org/Public/15.1.0/ucd/PropList.txt>`_ to support backwards
<https://www.unicode.org/Public/16.0.0/ucd/PropList.txt>`_ to support backwards
compatibility
* *Other_ID_Continue* - likewise

All identifiers are converted into the normal form NFKC while parsing; comparison
of identifiers is based on NFKC.

A non-normative HTML file listing all valid identifier characters for Unicode
15.1.0 can be found at
https://www.unicode.org/Public/15.1.0/ucd/DerivedCoreProperties.txt
16.0.0 can be found at
https://www.unicode.org/Public/16.0.0/ucd/DerivedCoreProperties.txt


.. _keywords:
Expand Down Expand Up @@ -1044,4 +1044,4 @@ occurrence outside string literals and comments is an unconditional error:
.. rubric:: Footnotes

.. [#] https://www.unicode.org/Public/15.1.0/ucd/NameAliases.txt
.. [#] https://www.unicode.org/Public/16.0.0/ucd/NameAliases.txt
5 changes: 5 additions & 0 deletions Doc/whatsnew/3.14.rst
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,11 @@ typing
* Remove :class:`!typing.ByteString`. It had previously raised a
:exc:`DeprecationWarning` since Python 3.12.

unicodedata
-----------

* The Unicode database has been updated to Unicode 16.0.0.

urllib
------

Expand Down
4 changes: 2 additions & 2 deletions Lib/test/test_unicodedata.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
class UnicodeMethodsTest(unittest.TestCase):

# update this, if the database changes
expectedchecksum = '63aa77dcb36b0e1df082ee2a6071caeda7f0955e'
expectedchecksum = '9e43ee3929471739680c0e705482b4ae1c4122e4'

@requires_resource('cpu')
def test_method_checksum(self):
Expand Down Expand Up @@ -71,7 +71,7 @@ class UnicodeFunctionsTest(UnicodeDatabaseTest):

# Update this if the database changes. Make sure to do a full rebuild
# (e.g. 'make distclean && make') to get the correct checksum.
expectedchecksum = '232affd2a50ec4bd69d2482aa0291385cbdefaba'
expectedchecksum = '23ab09ed4abdf93db23b97359108ed630dd8311d'

@requires_resource('cpu')
def test_function_checksum(self):
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update :mod:`unicodedata` database to Unicode 16.0.0.
4,667 changes: 2,446 additions & 2,221 deletions Modules/unicodedata_db.h

Large diffs are not rendered by default.

Loading

0 comments on commit 0e6b610

Please sign in to comment.