Skip to content
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 @@
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() # no-ascii characters could be alpha too
True

See :ref:`unicode-properties`.

Check warning on line 2004 in Doc/library/stdtypes.rst

View workflow job for this annotation

GitHub Actions / Docs / Docs

undefined label: 'unicode-properties' [ref.ref]


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