This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Typo in doc string for str.strip
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 3.9, Python 3.8, Python 3.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: Bob Dowling, hansrajdas, xtreak, zach.ware
Priority: normal Keywords: patch

Created on 2019-10-08 13:59 by Bob Dowling, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
str_strip.patch Bob Dowling, 2019-10-08 13:59 Source code patch to fix the bug.
Pull Requests
URL Status Linked Edit
PR 16681 closed hansrajdas, 2019-10-09 19:46
PR 16682 merged zach.ware, 2019-10-09 20:20
PR 16684 merged miss-islington, 2019-10-09 21:09
PR 16686 merged zach.ware, 2019-10-09 21:12
Messages (6)
msg354209 - (view) Author: Bob Dowling (Bob Dowling) Date: 2019-10-08 13:59
The doc string for str.strip() has a typo: the "d" at the end of "removed" is missing.

help(str.strip)

Currently:
Return a copy of the string with leading and trailing whitespace remove.

Should be:
Return a copy of the string with leading and trailing whitespace removed.

I have attached an offered patch.
msg354215 - (view) Author: Karthikeyan Singaravelan (xtreak) * (Python committer) Date: 2019-10-08 14:40
Thanks for the patch and report. CPython now accepts GitHub pull requests https://devguide.python.org/pullrequest/
msg354295 - (view) Author: Zachary Ware (zach.ware) * (Python committer) Date: 2019-10-09 21:09
New changeset 09895c27cd8ff60563a794016e8c099bc897cc74 by Zachary Ware in branch 'master':
bpo-38409: Fix grammar in str.strip() docstring (GH-16682)
https://github.com/python/cpython/commit/09895c27cd8ff60563a794016e8c099bc897cc74
msg354301 - (view) Author: Zachary Ware (zach.ware) * (Python committer) Date: 2019-10-09 21:55
New changeset 0baa6b3c7d9ef1d96f10939c40f8ff95aba9155b by Zachary Ware (Miss Islington (bot)) in branch '3.8':
bpo-38409: Fix grammar in str.strip() docstring (GH-16682) (GH-16684)
https://github.com/python/cpython/commit/0baa6b3c7d9ef1d96f10939c40f8ff95aba9155b
msg354302 - (view) Author: Zachary Ware (zach.ware) * (Python committer) Date: 2019-10-09 21:56
New changeset a774ac6637e8f155a28b7733a0a93d4a680584d4 by Zachary Ware in branch '3.7':
[3.7] bpo-38409: Fix grammar in str.strip() docstring (GH-16682) (GH-16686)
https://github.com/python/cpython/commit/a774ac6637e8f155a28b7733a0a93d4a680584d4
msg354303 - (view) Author: Zachary Ware (zach.ware) * (Python committer) Date: 2019-10-09 21:57
Thanks for the report, Bob!
History
Date User Action Args
2022-04-11 14:59:21adminsetgithub: 82590
2019-10-09 21:57:24zach.waresetstatus: open -> closed
versions: + Python 3.8, Python 3.9
messages: + msg354303

keywords: - newcomer friendly
resolution: fixed
stage: patch review -> resolved
2019-10-09 21:56:10zach.waresetmessages: + msg354302
2019-10-09 21:55:42zach.waresetmessages: + msg354301
2019-10-09 21:12:29zach.waresetpull_requests: + pull_request16272
2019-10-09 21:09:14miss-islingtonsetpull_requests: + pull_request16270
2019-10-09 21:09:03zach.waresetnosy: + zach.ware
messages: + msg354295
2019-10-09 20:20:03zach.waresetpull_requests: + pull_request16268
2019-10-09 19:46:46hansrajdassetstage: patch review
pull_requests: + pull_request16267
2019-10-08 20:26:07hansrajdassetnosy: + hansrajdas
2019-10-08 14:40:38xtreaksetnosy: + xtreak
messages: + msg354215
2019-10-08 14:03:35vstinnersetkeywords: + newcomer friendly
2019-10-08 13:59:54Bob Dowlingcreate