-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
strip
does not take predicate functions.
#31195
Comments
Looks like |
ararslan
added a commit
that referenced
this issue
Feb 28, 2019
`lstrip` and `rstrip` take a predicate function as the first argument. It seems `strip` did not receive that addition, though its docstring suggests that it did. See #31195.
ararslan
added a commit
that referenced
this issue
Feb 28, 2019
`strip` is documented to accept a function argument but it does not. `rstrip` and `lstrip` do, so it seems this was simply an oversight. See #31195.
This was referenced Feb 28, 2019
ararslan
added a commit
that referenced
this issue
Feb 28, 2019
`lstrip` and `rstrip` take a predicate function as the first argument. It seems `strip` did not receive that addition, though its docstring suggests that it did. See #31195.
ararslan
added a commit
that referenced
this issue
Mar 1, 2019
`strip` is documented to accept a function argument but it does not. `rstrip` and `lstrip` do, so it seems this was simply an oversight. See #31195.
StefanKarpinski
pushed a commit
that referenced
this issue
Mar 3, 2019
`lstrip` and `rstrip` take a predicate function as the first argument. It seems `strip` did not receive that addition, though its docstring suggests that it did. See #31195.
ararslan
added a commit
that referenced
this issue
Mar 3, 2019
`strip` is documented to accept a function argument but it does not. `rstrip` and `lstrip` do, so it seems this was simply an oversight. See #31195.
fredrikekre
pushed a commit
that referenced
this issue
Mar 4, 2019
`strip` is documented to accept a function argument but it does not. `rstrip` and `lstrip` do, so it seems this was simply an oversight. See #31195.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From
strip
's docstring (emphasis mine):However:
(note the error is in
rstrip
, notstrip
.)Edited to add: even if you put the predicate function first,
strip
doesn't work.The text was updated successfully, but these errors were encountered: