Skip to content
Merged
Changes from 1 commit
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
Next Next commit
gh-106318: Add example for str.isascii()
  • Loading branch information
adorilson committed Aug 8, 2025
commit d69df4b3ee270843840ec6b25e12af6026f22090
13 changes: 13 additions & 0 deletions Doc/library/stdtypes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1998,6 +1998,19 @@ expression support in the :mod:`re` module).
``False`` otherwise.
ASCII characters have code points in the range U+0000-U+007F.

For example::

>>> 'a commom word'.isascii()
True
>>> 'acommomword'.isascii()
True
>>> 'µ'.isascii()
False
>>> 'æ'.isascii()
False
>>> 'Ŧ'.isascii()
False
Comment thread
adorilson marked this conversation as resolved.
Outdated

.. versionadded:: 3.7


Expand Down