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: Fix typos/spelling mistakes in Lib/*.py files
Type: enhancement Stage: resolved
Components: Documentation Versions: Python 3.3, Python 3.4, Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: ezio.melotti Nosy List: docs@python, ezio.melotti, iwontbecreative, mark.dickinson, python-dev, serhiy.storchaka
Priority: normal Keywords: patch

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:49adminsetgithub: 62905
2013-08-17 12:56:22ezio.melottisetstatus: open -> closed
versions: + Python 2.7
messages: + msg195461

assignee: docs@python -> ezio.melotti
resolution: fixed
stage: patch review -> resolved
2013-08-17 12:54:29python-devsetnosy: + python-dev
messages: + msg195460
2013-08-16 22:07:56serhiy.storchakasetmessages: + msg195433
2013-08-16 21:57:50pitrousetnosy: + serhiy.storchaka
2013-08-16 20:47:36ezio.melottisetmessages: + msg195417
2013-08-11 12:31:55mark.dickinsonsetmessages: + msg194892
2013-08-11 12:26:48iwontbecreativesettitle: Fix arround 100 typos/spelling mistakes -> Fix typos/spelling mistakes in Lib/*.py files
2013-08-11 12:25:35iwontbecreativesetfiles: + spelling_Lib.diff

messages: + msg194891
2013-08-11 10:19:28ezio.melottisetnosy: + ezio.melotti

messages: + msg194885
stage: patch review
2013-08-11 10:15:13iwontbecreativesetmessages: + msg194884
2013-08-11 10:02:47mark.dickinsonsetnosy: + mark.dickinson
messages: + msg194881
2013-08-10 23:48:56iwontbecreativesetfiles: + python_words.txt

messages: + msg194852
2013-08-10 23:48:10iwontbecreativesetfiles: + spell.py

messages: + msg194851
versions: + Python 3.3
2013-08-10 23:45:17iwontbecreativecreate