diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 0cbc5a9cb2701c..df431a83972b78 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -1927,7 +1927,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