Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite2188c7

Browse files
miss-islingtonadorilsonStanFromIrelandhugovk
authored
[3.13]gh-106318: Add example for str.isascii() (GH-137558) (#141899)
Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
1 parent2701e8e commite2188c7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

‎Doc/library/stdtypes.rst‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1927,7 +1927,14 @@ expression support in the :mod:`re` module).
19271927

19281928
Return ``True`` if the string is empty or all characters in the string are ASCII,
19291929
``False`` otherwise.
1930-
ASCII characters have code points in the range U+0000-U+007F.
1930+
ASCII characters have code points in the range U+0000-U+007F. For example:
1931+
1932+
..doctest::
1933+
1934+
>>>'ASCII characters'.isascii()
1935+
True
1936+
>>>'µ'.isascii()
1937+
False
19311938

19321939
..versionadded::3.7
19331940

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp