Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Doc/library/re.rst
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ character ``'$'``.

Matches ``[0-9]`` if the :py:const:`~re.ASCII` flag is used.

__ https://www.unicode.org/versions/Unicode17.0.0/core-spec/chapter-4/#G124142
__ https://www.unicode.org/versions/Unicode18.0.0/core-spec/chapter-4/#G124142

For 8-bit (bytes) patterns:
Matches any decimal digit in the ASCII character set;
Expand Down
8 changes: 4 additions & 4 deletions Doc/library/stdtypes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1881,7 +1881,7 @@ expression support in the :mod:`re` module).

The casefolding algorithm is `described in section 3.13.3 'Default Case
Folding' of the Unicode Standard
<https://www.unicode.org/versions/Unicode17.0.0/core-spec/chapter-3/#G53253>`__.
<https://www.unicode.org/versions/Unicode18.0.0/core-spec/chapter-3/#G53253>`__.

.. versionadded:: 3.3

Expand Down Expand Up @@ -2122,7 +2122,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 section 4.10 'Letters, Alphabetic, and
Ideographic' of the Unicode Standard
<https://www.unicode.org/versions/Unicode17.0.0/core-spec/chapter-4/#G91002>`__.
<https://www.unicode.org/versions/Unicode18.0.0/core-spec/chapter-4/#G91002>`__.
For example:

.. doctest::
Expand Down Expand Up @@ -2388,7 +2388,7 @@ expression support in the :mod:`re` module).

The lowercasing algorithm used is `described in section 3.13.2 'Default Case
Conversion' of the Unicode Standard
<https://www.unicode.org/versions/Unicode17.0.0/core-spec/chapter-3/#G34078>`__.
<https://www.unicode.org/versions/Unicode18.0.0/core-spec/chapter-3/#G34078>`__.


.. method:: str.lstrip(chars=None, /)
Expand Down Expand Up @@ -2900,7 +2900,7 @@ expression support in the :mod:`re` module).

The uppercasing algorithm used is `described in section 3.13.2 'Default Case
Conversion' of the Unicode Standard
<https://www.unicode.org/versions/Unicode17.0.0/core-spec/chapter-3/#G34078>`__.
<https://www.unicode.org/versions/Unicode18.0.0/core-spec/chapter-3/#G34078>`__.


.. method:: str.zfill(width, /)
Expand Down
10 changes: 5 additions & 5 deletions Doc/library/unicodedata.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,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 17.0.0
<https://www.unicode.org/Public/17.0.0/ucd>`_.
this database is compiled from the `UCD version 18.0.0
<https://www.unicode.org/Public/18.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 @@ -170,7 +170,7 @@ Standard Annex #44, `"Unicode Character Database"
.. function:: block(chr, /)

Returns the `block
<https://www.unicode.org/versions/Unicode17.0.0/core-spec/chapter-3/#G64189>`_
<https://www.unicode.org/versions/Unicode18.0.0/core-spec/chapter-3/#G64189>`_
assigned to the character *chr*. For example::

>>> unicodedata.block('S')
Expand Down Expand Up @@ -326,6 +326,6 @@ In addition, the module exposes the following constants:

.. rubric:: Footnotes

.. [#] https://www.unicode.org/Public/17.0.0/ucd/NameAliases.txt
.. [#] https://www.unicode.org/Public/18.0.0/ucd/NameAliases.txt

.. [#] https://www.unicode.org/Public/17.0.0/ucd/NamedSequences.txt
.. [#] https://www.unicode.org/Public/18.0.0/ucd/NamedSequences.txt
6 changes: 3 additions & 3 deletions Doc/reference/lexical_analysis.rst
Original file line number Diff line number Diff line change
Expand Up @@ -602,8 +602,8 @@ Unicode categories use the version of the Unicode Character Database as
included in the :mod:`unicodedata` module.

.. _UAX-31: https://www.unicode.org/reports/tr31/
.. _PropList.txt: https://www.unicode.org/Public/17.0.0/ucd/PropList.txt
.. _DerivedCoreProperties.txt: https://www.unicode.org/Public/17.0.0/ucd/DerivedCoreProperties.txt
.. _PropList.txt: https://www.unicode.org/Public/18.0.0/ucd/PropList.txt
.. _DerivedCoreProperties.txt: https://www.unicode.org/Public/18.0.0/ucd/DerivedCoreProperties.txt
.. _normalization form: https://www.unicode.org/reports/tr15/#Norm_Forms

.. seealso::
Expand Down Expand Up @@ -916,7 +916,7 @@ with the given *name*::
This sequence cannot appear in :ref:`bytes literals <bytes-literal>`.

.. versionchanged:: 3.3
Support for `name aliases <https://www.unicode.org/Public/17.0.0/ucd/NameAliases.txt>`__
Support for `name aliases <https://www.unicode.org/Public/18.0.0/ucd/NameAliases.txt>`__
has been added.

.. _string-escape-long-hex:
Expand Down
6 changes: 3 additions & 3 deletions Lib/re/_properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
# CATEGORY_DIGIT matches Nd (but, like \d, is restricted to ASCII under the
# ASCII flag). The gc group memberships (L = Lu|Ll|Lt|Lm|Lo, N = Nd|Nl|No)
# are given by the Unicode Standard 4.5, Table 4-4 "General_Category Values"
# (https://www.unicode.org/versions/Unicode17.0.0/core-spec/chapter-4/#G124142)
# (https://www.unicode.org/versions/Unicode18.0.0/core-spec/chapter-4/#G124142)
# and listed in
# https://www.unicode.org/Public/UCD/latest/ucd/PropertyValueAliases.txt
# The compound categories Lu, N, Lm, Nl, No, Cf, Z, Zs, C and Cn are
Expand All @@ -127,7 +127,7 @@
# (private use) and the single code points Zl and Zp. Cc, Cs and Co are the
# control codes, surrogate and private-use areas, fixed by the Unicode
# Standard 23.1, 23.6 and 23.5:
# https://www.unicode.org/versions/Unicode17.0.0/core-spec/chapter-23/
# https://www.unicode.org/versions/Unicode18.0.0/core-spec/chapter-23/
# All five are listed in
# https://www.unicode.org/Public/UCD/latest/ucd/extracted/DerivedGeneralCategory.txt
_CC_RANGES = [(0x00, 0x1F), (0x7F, 0x9F)]
Expand Down Expand Up @@ -174,7 +174,7 @@ def _analytic_ranges():
# normalised.
# Noncharacter_Code_Point: U+FDD0..FDEF and the last two of every plane,
# permanently reserved (the Unicode Standard 23.7, "Noncharacters":
# https://www.unicode.org/versions/Unicode17.0.0/core-spec/chapter-23/).
# https://www.unicode.org/versions/Unicode18.0.0/core-spec/chapter-23/).
noncharacter = [(0xFDD0, 0xFDEF)]
noncharacter += [(plane | 0xFFFE, plane | 0xFFFF)
for plane in range(0, MAXUNICODE + 1, 0x10000)]
Expand Down
2 changes: 1 addition & 1 deletion Lib/stringprep.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# when unicodedata is modified to ensure conformant behavior.
import unicodedata

assert unicodedata.unidata_version == '17.0.0'
assert unicodedata.unidata_version == '18.0.0'

from unicodedata import ucd_3_2_0 as unicodedata_320

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update Unicode to 18.0.0
Loading
Loading