@@ -3440,14 +3440,14 @@ produce new objects.
3440
3440
it always produces a new object, even if no changes were made.
3441
3441
3442
3442
3443
- .. method :: bytes.lstrip(bytes =None, /)
3444
- bytearray.lstrip(bytes =None, /)
3443
+ .. method :: bytes.lstrip(chars =None, /)
3444
+ bytearray.lstrip(chars =None, /)
3445
3445
3446
3446
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
3448
3448
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;
3451
3451
rather, all combinations of its values are stripped::
3452
3452
3453
3453
>>> b' spacious '.lstrip()
@@ -3496,14 +3496,14 @@ produce new objects.
3496
3496
:meth: `split ` which is described in detail below.
3497
3497
3498
3498
3499
- .. method :: bytes.rstrip(bytes =None, /)
3500
- bytearray.rstrip(bytes =None, /)
3499
+ .. method :: bytes.rstrip(chars =None, /)
3500
+ bytearray.rstrip(chars =None, /)
3501
3501
3502
3502
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
3504
3504
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,
3507
3507
all combinations of its values are stripped::
3508
3508
3509
3509
>>> b' spacious '.rstrip()
@@ -3573,14 +3573,14 @@ produce new objects.
3573
3573
[b'1', b'2', b'3']
3574
3574
3575
3575
3576
- .. method :: bytes.strip(bytes =None, /)
3577
- bytearray.strip(bytes =None, /)
3576
+ .. method :: bytes.strip(chars =None, /)
3577
+ bytearray.strip(chars =None, /)
3578
3578
3579
3579
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
3581
3581
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
3584
3584
not a prefix or suffix; rather, all combinations of its values are
3585
3585
stripped::
3586
3586
0 commit comments