X Tutup
Skip to content
Merged
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
gh-106318: Add example for str.isascii() (GH-137558)
(cherry picked from commit 0afcb51)

Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
  • Loading branch information
3 people authored and miss-islington committed Nov 24, 2025
commit 7e9782d9e860da217184c7fbbe53d0c53645bd80
9 changes: 8 additions & 1 deletion Doc/library/stdtypes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2063,7 +2063,14 @@ expression support in the :mod:`re` module).

Return ``True`` if the string is empty or all characters in the string are ASCII,
``False`` otherwise.
ASCII characters have code points in the range U+0000-U+007F.
ASCII characters have code points in the range U+0000-U+007F. For example:

.. doctest::

>>> 'ASCII characters'.isascii()
True
>>> 'µ'.isascii()
False

.. versionadded:: 3.7

Expand Down
Loading
X Tutup