Issue 18705: Fix typos/spelling mistakes in Lib/*.py files (original) (raw)

Created on 2013-08-10 23:45 by iwontbecreative, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
spelling_Lib.diff iwontbecreative,2013-08-10 23:45 review
spell.py iwontbecreative,2013-08-10 23:48 Spellchecker
python_words.txt iwontbecreative,2013-08-10 23:48
spelling_Lib.diff iwontbecreative,2013-08-11 12:25 Updated patch review
Messages (12)
msg194850 - (view) Author: Févry Thibault (iwontbecreative) * Date: 2013-08-10 23:45
In issue 18466 I had said I was planning to write a tool that checks python source code to see if they are spelling mistakes in comments/strings. As it was said there, the big issue was the fact that python has so many non-english words and that docstrings often had variable names in them, so I had to work arround the issue and add a personal word list. I only applied the tool to Lib/*.py yet, as it takes some time to check false-positives and I didn't want to end with patches too big to be reviewed.
msg194851 - (view) Author: Févry Thibault (iwontbecreative) * Date: 2013-08-10 23:48
Note that I am not a very good python programmer so the attached script may look ugly to you, but it works.
msg194852 - (view) Author: Févry Thibault (iwontbecreative) * Date: 2013-08-10 23:48
And here is a python_words.txt so you have to press enter less times :)
msg194881 - (view) Author: Mark Dickinson (mark.dickinson) * (Python committer) Date: 2013-08-11 10:02
Thanks for the patch. I don't think there's a strict policy about using American spellings in the source; I think spellings like 'behaviour' and 'grey' should be left alone.
msg194884 - (view) Author: Févry Thibault (iwontbecreative) * Date: 2013-08-11 10:15
> I don't think there's a strict policy about using American spellings in the source; I think spellings like 'behaviour' and 'grey' should be left alone. I didn't really know whether to change them or not and did not find an answer in the devguide (Might be worth documenting it ?) so I decided to change it :/.
msg194885 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2013-08-11 10:19
Both AE and BE are OK, as long as each document is internally consistent. For new documents I think AE is preferred, but not forced.
msg194891 - (view) Author: Févry Thibault (iwontbecreative) * Date: 2013-08-11 12:25
Updated the patch to no longer change BE to AE and fixed two mistakes in my correction.
msg194892 - (view) Author: Mark Dickinson (mark.dickinson) * (Python committer) Date: 2013-08-11 12:31
Thanks for the update. All the changes in the updated patch look good to me.
msg195417 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2013-08-16 20:47
See also #18741.
msg195433 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2013-08-16 22:07
I'm not spelling expert Antoine. :-)
msg195460 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2013-08-17 12:54
New changeset d234dd21374a by Ezio Melotti in branch '2.7': #18705: fix a number of typos. Patch by Févry Thibault. http://hg.python.org/cpython/rev/d234dd21374a New changeset e07f104133d5 by Ezio Melotti in branch '3.3': #18705: fix a number of typos. Patch by Févry Thibault. http://hg.python.org/cpython/rev/e07f104133d5 New changeset a9ee869cae40 by Ezio Melotti in branch 'default': #18705: merge with 3.3. http://hg.python.org/cpython/rev/a9ee869cae40
msg195461 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2013-08-17 12:56
Fixed, thanks for the report and the patch!
History
Date User Action Args
2022-04-11 14:57:49 admin set github: 62905
2013-08-17 12:56:22 ezio.melotti set status: open -> closedversions: + Python 2.7messages: + assignee: docs@python -> ezio.melottiresolution: fixedstage: patch review -> resolved
2013-08-17 12:54:29 python-dev set nosy: + python-devmessages: +
2013-08-16 22:07:56 serhiy.storchaka set messages: +
2013-08-16 21:57:50 pitrou set nosy: + serhiy.storchaka
2013-08-16 20:47:36 ezio.melotti set messages: +
2013-08-11 12:31:55 mark.dickinson set messages: +
2013-08-11 12:26:48 iwontbecreative set title: Fix arround 100 typos/spelling mistakes -> Fix typos/spelling mistakes in Lib/*.py files
2013-08-11 12:25:35 iwontbecreative set files: + spelling_Lib.diffmessages: +
2013-08-11 10:19:28 ezio.melotti set nosy: + ezio.melottimessages: + stage: patch review
2013-08-11 10:15:13 iwontbecreative set messages: +
2013-08-11 10:02:47 mark.dickinson set nosy: + mark.dickinsonmessages: +
2013-08-10 23:48:56 iwontbecreative set files: + python_words.txtmessages: +
2013-08-10 23:48:10 iwontbecreative set files: + spell.pymessages: + versions: + Python 3.3
2013-08-10 23:45:17 iwontbecreative create