Skip to content

Commit 240cbae

Browse files
Peters suggestions
1 parent 448fd5f commit 240cbae

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed

Doc/glossary.rst

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1446,11 +1446,25 @@ Glossary
14461446
whitespace
14471447
Characters that represent horizontal or vertical space.
14481448
In an ASCII context, Python recognizes these characters as whitespace:
1449-
``' \t\n\v\f\r'`` (space, tab, newline, vertical tab, form feed, carriage return).
1449+
1450+
+-----------+-----------------+
1451+
| ``' '`` | space |
1452+
+-----------+-----------------+
1453+
| ``'\t'`` | tab |
1454+
+-----------+-----------------+
1455+
| ``'\n'`` | newline |
1456+
+-----------+-----------------+
1457+
| ``'\v'`` | vertical tab |
1458+
+-----------+-----------------+
1459+
| ``'\f'`` | form feed |
1460+
+-----------+-----------------+
1461+
| ``'\r'`` | carriage return |
1462+
+-----------+-----------------+
14501463

14511464
In a Unicode context, whitespace characters are the
1452-
characters defined in the Unicode character database as "Other" or "Separator"
1453-
and those with bidirectional property being one of "WS", "B", or "S".
1465+
characters defined in the `Unicode Character Database
1466+
<https://www.unicode.org/reports/tr44/>`_ as "Other" or "Separator"
1467+
and those with bidirectional property being one of "WS," "B," or "S."
14541468

14551469
This is used, for example, to :meth:`~str.split` or
14561470
:meth:`~str.strip` strings.

Doc/library/stdtypes.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3522,8 +3522,9 @@ place, and instead produce new objects.
35223522
.. method:: bytes.isspace()
35233523
bytearray.isspace()
35243524

3525-
Return ``True`` if all bytes in the sequence are :term:`ASCII whitespace <whitespace>`
3526-
and the sequence is not empty, ``False`` otherwise.
3525+
Return ``True`` if all bytes in the sequence are
3526+
:term:`ASCII whitespace <whitespace>` and the sequence is not empty,
3527+
``False`` otherwise.
35273528

35283529

35293530
.. method:: bytes.istitle()

0 commit comments

Comments
 (0)