Skip to content

Commit 33f5bd0

Browse files
gh-106318: Make example for str.isascii() shorter
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
1 parent d69df4b commit 33f5bd0

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

Doc/library/stdtypes.rst

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2000,16 +2000,10 @@ expression support in the :mod:`re` module).
20002000

20012001
For example::
20022002

2003-
>>> 'a commom word'.isascii()
2004-
True
2005-
>>> 'acommomword'.isascii()
2003+
>>> 'a common word'.isascii()
20062004
True
20072005
>>> 'µ'.isascii()
20082006
False
2009-
>>> 'æ'.isascii()
2010-
False
2011-
>>> 'Ŧ'.isascii()
2012-
False
20132007

20142008
.. versionadded:: 3.7
20152009

0 commit comments

Comments
 (0)