-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
bpo-38409: Grammatically correct help documentation of str.strip() #16681
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
Conversation
* `remove` should be `removed` as done for lstrip and rstrip help docs
@@ -0,0 +1 @@ | |||
Grammatically corrected help(str.strip) documentation. Patch by Hansraj Das |
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.
Trivial fixes like these don't need a news blurb. I'm gonna apply to the skip-news
label if you wanna take it out.
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.
Deleted news blurb file. Thank you!
@@ -582,7 +582,7 @@ PyDoc_STRVAR(unicode_strip__doc__, | |||
"strip($self, chars=None, /)\n" | |||
"--\n" | |||
"\n" | |||
"Return a copy of the string with leading and trailing whitespace remove.\n" | |||
"Return a copy of the string with leading and trailing whitespace removed.\n" |
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 file is automatically generated using argument clinic, you need to regenerate it using make regen-all
or make clinic
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.
executed make clinic
…icodeobject.c.h * checksums also updated
Considering that this is incorrect and was taken without attribution or approval of the original author, I'm closing this in favor of GH-16682. Since the original author hasn't signed the CLA, the usability of this patch is murky anyway. Thanks for contributing, @hansrajdas, but when the reporter has offered a patch on bugs.python.org please give them a chance to either submit their own PR or refuse to do so; this one was submitted only yesterday. |
Yes, I saw this bug reported yesterday itself(maked myself in that bug also yesterday) so waited one day if original author wants to send an PR. Sorry, I should have waited more! |
The documented suggested wait time is one week of no response. |
Thank you @zware for guidance, I was not aware of this. Will always follow this guideline ever in future! |
remove
should beremoved
as done for lstrip and rstrip help docsstrip help doc in python2 was correct but it was updated in python3:
python2.7
python3.7
https://bugs.python.org/issue38409