Skip to content

Commit b159ccd

Browse files
Rename "bytes" back to "chars".
1 parent 68706c2 commit b159ccd

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

Doc/library/stdtypes.rst

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3440,14 +3440,14 @@ produce new objects.
34403440
it always produces a new object, even if no changes were made.
34413441

34423442

3443-
.. method:: bytes.lstrip(bytes=None, /)
3444-
bytearray.lstrip(bytes=None, /)
3443+
.. method:: bytes.lstrip(chars=None, /)
3444+
bytearray.lstrip(chars=None, /)
34453445

34463446
Return a copy of the sequence with specified leading bytes removed. The
3447-
*bytes* argument is a binary sequence specifying the set of byte values to
3447+
*chars* argument is a binary sequence specifying the set of byte values to
34483448
be removed - the name refers to the fact this method is usually used with
3449-
ASCII characters. If omitted or ``None``, the *bytes* argument defaults
3450-
to removing ASCII whitespace. The *bytes* argument is not a prefix;
3449+
ASCII characters. If omitted or ``None``, the *chars* argument defaults
3450+
to removing ASCII whitespace. The *chars* argument is not a prefix;
34513451
rather, all combinations of its values are stripped::
34523452

34533453
>>> b' spacious '.lstrip()
@@ -3496,14 +3496,14 @@ produce new objects.
34963496
:meth:`split` which is described in detail below.
34973497

34983498

3499-
.. method:: bytes.rstrip(bytes=None, /)
3500-
bytearray.rstrip(bytes=None, /)
3499+
.. method:: bytes.rstrip(chars=None, /)
3500+
bytearray.rstrip(chars=None, /)
35013501

35023502
Return a copy of the sequence with specified trailing bytes removed. The
3503-
*bytes* argument is a binary sequence specifying the set of byte values to
3503+
*chars* argument is a binary sequence specifying the set of byte values to
35043504
be removed - the name refers to the fact this method is usually used with
3505-
ASCII characters. If omitted or ``None``, the *bytes* argument defaults to
3506-
removing ASCII whitespace. The *bytes* argument is not a suffix; rather,
3505+
ASCII characters. If omitted or ``None``, the *chars* argument defaults to
3506+
removing ASCII whitespace. The *chars* argument is not a suffix; rather,
35073507
all combinations of its values are stripped::
35083508

35093509
>>> b' spacious '.rstrip()
@@ -3573,14 +3573,14 @@ produce new objects.
35733573
[b'1', b'2', b'3']
35743574

35753575

3576-
.. method:: bytes.strip(bytes=None, /)
3577-
bytearray.strip(bytes=None, /)
3576+
.. method:: bytes.strip(chars=None, /)
3577+
bytearray.strip(chars=None, /)
35783578

35793579
Return a copy of the sequence with specified leading and trailing bytes
3580-
removed. The *bytes* argument is a binary sequence specifying the set of
3580+
removed. The *chars* argument is a binary sequence specifying the set of
35813581
byte values to be removed - the name refers to the fact this method is
3582-
usually used with ASCII characters. If omitted or ``None``, the *bytes*
3583-
argument defaults to removing ASCII whitespace. The *bytes* argument is
3582+
usually used with ASCII characters. If omitted or ``None``, the *chars*
3583+
argument defaults to removing ASCII whitespace. The *chars* argument is
35843584
not a prefix or suffix; rather, all combinations of its values are
35853585
stripped::
35863586

0 commit comments

Comments
 (0)