-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
gh-137609: Update signatures of builtins in the documentation #137610
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
5f13e6f
72157aa
d08e13f
94cc645
899cc86
e82b3e8
a0f5a73
68706c2
b159ccd
c2068d2
c06089f
8b5e802
de15f70
150ad5b
402efa9
61754a3
816dea7
2961fff
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
This reverts commit b159ccd.
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3440,14 +3440,14 @@ produce new objects. | |
| it always produces a new object, even if no changes were made. | ||
|
|
||
|
|
||
| .. method:: bytes.lstrip(chars=None, /) | ||
| bytearray.lstrip(chars=None, /) | ||
| .. method:: bytes.lstrip(bytes=None, /) | ||
| bytearray.lstrip(bytes=None, /) | ||
|
|
||
| Return a copy of the sequence with specified leading bytes removed. The | ||
| *chars* argument is a binary sequence specifying the set of byte values to | ||
| *bytes* argument is a binary sequence specifying the set of byte values to | ||
| be removed - the name refers to the fact this method is usually used with | ||
| ASCII characters. If omitted or ``None``, the *chars* argument defaults | ||
| to removing ASCII whitespace. The *chars* argument is not a prefix; | ||
| ASCII characters. If omitted or ``None``, the *bytes* argument defaults | ||
| to removing ASCII whitespace. The *bytes* argument is not a prefix; | ||
| rather, all combinations of its values are stripped:: | ||
|
|
||
| >>> b' spacious '.lstrip() | ||
|
|
@@ -3496,14 +3496,14 @@ produce new objects. | |
| :meth:`split` which is described in detail below. | ||
|
|
||
|
|
||
| .. method:: bytes.rstrip(chars=None, /) | ||
| bytearray.rstrip(chars=None, /) | ||
| .. method:: bytes.rstrip(bytes=None, /) | ||
| bytearray.rstrip(bytes=None, /) | ||
|
|
||
| Return a copy of the sequence with specified trailing bytes removed. The | ||
| *chars* argument is a binary sequence specifying the set of byte values to | ||
| *bytes* argument is a binary sequence specifying the set of byte values to | ||
| be removed - the name refers to the fact this method is usually used with | ||
| ASCII characters. If omitted or ``None``, the *chars* argument defaults to | ||
| removing ASCII whitespace. The *chars* argument is not a suffix; rather, | ||
| ASCII characters. If omitted or ``None``, the *bytes* argument defaults to | ||
|
||
| removing ASCII whitespace. The *bytes* argument is not a suffix; rather, | ||
| all combinations of its values are stripped:: | ||
|
|
||
| >>> b' spacious '.rstrip() | ||
|
|
@@ -3573,14 +3573,14 @@ produce new objects. | |
| [b'1', b'2', b'3'] | ||
|
|
||
|
|
||
| .. method:: bytes.strip(chars=None, /) | ||
| bytearray.strip(chars=None, /) | ||
| .. method:: bytes.strip(bytes=None, /) | ||
| bytearray.strip(bytes=None, /) | ||
|
|
||
| Return a copy of the sequence with specified leading and trailing bytes | ||
| removed. The *chars* argument is a binary sequence specifying the set of | ||
| removed. The *bytes* argument is a binary sequence specifying the set of | ||
| byte values to be removed - the name refers to the fact this method is | ||
| usually used with ASCII characters. If omitted or ``None``, the *chars* | ||
| argument defaults to removing ASCII whitespace. The *chars* argument is | ||
| usually used with ASCII characters. If omitted or ``None``, the *bytes* | ||
|
||
| argument defaults to removing ASCII whitespace. The *bytes* argument is | ||
| not a prefix or suffix; rather, all combinations of its values are | ||
| stripped:: | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this sentence no longer makes sense after changing the argument name