diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 87dcf8fe977347..9b1c6a3a744fdc 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -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