We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0773ea commit 0afcb51Copy full SHA for 0afcb51
Doc/library/stdtypes.rst
@@ -2063,7 +2063,14 @@ expression support in the :mod:`re` module).
2063
2064
Return ``True`` if the string is empty or all characters in the string are ASCII,
2065
``False`` otherwise.
2066
- 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:
2067
+
2068
+ .. doctest::
2069
2070
+ >>> 'ASCII characters'.isascii()
2071
+ True
2072
+ >>> 'µ'.isascii()
2073
+ False
2074
2075
.. versionadded:: 3.7
2076
0 commit comments