Skip to content
2 changes: 2 additions & 0 deletions Doc/howto/unicode.rst
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,8 @@ If you don't include such a comment, the default encoding used will be UTF-8 as
already mentioned. See also :pep:`263` for more information.


.. _unicode-properties:

Unicode Properties
------------------

Expand Down
12 changes: 12 additions & 0 deletions Doc/library/stdtypes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1990,6 +1990,18 @@ expression support in the :mod:`re` module).
from the `Alphabetic property defined in the section 4.10 'Letters, Alphabetic, and
Ideographic' of the Unicode Standard
<https://www.unicode.org/versions/Unicode16.0.0/core-spec/chapter-4/#G91002>`_.
For example:

.. doctest::

>>> 'a commom word'.isalpha()
False
>>> 'acommomword'.isalpha()
True
>>> 'µ'.isalpha() # non-ascii characters can be considered alphabetical too
True

See :ref:`unicode-properties`.


.. method:: str.isascii()
Expand Down
Loading