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
Prev Previous commit
Next Next commit
gh-106318: Add doctest role to str.isascii() doc
  • Loading branch information
adorilson committed Aug 9, 2025
commit 7b2f53741c82930c44e786894637618501dbfc79
4 changes: 2 additions & 2 deletions Doc/library/stdtypes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1996,9 +1996,9 @@ 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:

For example::
.. doctest::

>>> 'a common word'.isascii()
Comment thread
adorilson marked this conversation as resolved.
Outdated
True
Expand Down
Loading