]> granicus.if.org Git - python/commitdiff
Issue #27626: Spelling fixes in docs, comments and internal names
authorMartin Panter <vadmium+py@gmail.com>
Thu, 28 Jul 2016 01:11:04 +0000 (01:11 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Thu, 28 Jul 2016 01:11:04 +0000 (01:11 +0000)
Based on patch by Ville Skyttä.

34 files changed:
Demo/tix/samples/Balloon.py
Demo/tix/samples/BtnBox.py
Demo/tix/samples/CmpImg.py
Demo/tix/samples/ComboBox.py
Demo/tix/samples/Control.py
Demo/tix/samples/DirList.py
Demo/tix/samples/DirTree.py
Demo/tix/samples/NoteBook.py
Demo/tix/samples/OptMenu.py
Demo/tix/samples/PanedWin.py
Demo/tix/samples/PopMenu.py
Demo/tix/samples/SHList1.py
Demo/tix/samples/SHList2.py
Demo/tix/samples/Tree.py
Demo/turtle/tdemo_I_dontlike_tiltdemo.py
Doc/howto/sockets.rst
Include/longobject.h
Lib/ctypes/test/test_numbers.py
Lib/ctypes/test/test_structures.py
Lib/idlelib/CallTipWindow.py
Lib/idlelib/ParenMatch.py
Lib/platform.py
Lib/test/test_cookielib.py
Lib/test/test_deque.py
Lib/test/test_structseq.py
Lib/unittest/case.py
Misc/NEWS
Misc/cheatsheet
Modules/_ctypes/_ctypes.c
Modules/itertoolsmodule.c
Objects/exceptions.c
Objects/longobject.c
Tools/freeze/freeze.py
Tools/scripts/redemo.py

index 576b4ed5811dd4d3c6f8fe47fd05b22087877293..0cd57c0c3f4d0eaeba00704a3b28250342f2559a 100644 (file)
@@ -2,7 +2,7 @@
 #
 # $Id$
 #
-# Tix Demostration Program
+# Tix Demonstration Program
 #
 # This sample program is structured in such a way so that it can be
 # executed from the Tix demo program "tixwidgets.py": it must have a
index af2a2a8753887da54c3474bafcaa43bafd9e7277..d5e2e29d91da5cc79d42a46934362d579e7f494a 100644 (file)
@@ -2,7 +2,7 @@
 #
 # $Id$
 #
-# Tix Demostration Program
+# Tix Demonstration Program
 #
 # This sample program is structured in such a way so that it can be
 # executed from the Tix demo program "tixwidgets.py": it must have a
index 8b335796d5ce20d6e234c24a6945ff0002845ab3..2fc513bb77ed70c22fb5483d959f6033274af970 100644 (file)
@@ -2,7 +2,7 @@
 #
 # $Id$
 #
-# Tix Demostration Program
+# Tix Demonstration Program
 #
 # This sample program is structured in such a way so that it can be
 # executed from the Tix demo program "tixwidgets.py": it must have a
index 914098715376b6ffc2e87f6dd3f09b90c9229615..8abcf698866554c9316865efda5ba636543b30f8 100644 (file)
@@ -2,7 +2,7 @@
 #
 # $Id$
 #
-# Tix Demostration Program
+# Tix Demonstration Program
 #
 # This sample program is structured in such a way so that it can be
 # executed from the Tix demo program "tixwidgets.py": it must have a
index 3a344c1e27660bc8fb32eca37f4c0cbf35b15e79..b486592b35a802f9587e3272d2d5166b606191f8 100644 (file)
@@ -2,7 +2,7 @@
 #
 # $Id$
 #
-# Tix Demostration Program
+# Tix Demonstration Program
 #
 # This sample program is structured in such a way so that it can be
 # executed from the Tix demo program "tixwidgets.py": it must have a
index 5fd8c0de7f10b3874602e88d36dffd3cf94b542f..054d1f87e24f757f9ee555f446d94e15f278c5ac 100644 (file)
@@ -2,7 +2,7 @@
 #
 #       $Id$
 #
-# Tix Demostration Program
+# Tix Demonstration Program
 #
 # This sample program is structured in such a way so that it can be
 # executed from the Tix demo program "tixwidgets.py":  it must have a
index 2e4fe0b957c4b70e2b5e71e04a825953a14e5086..dfeadfbe78584056766623d498d588f3afc76960 100644 (file)
@@ -2,7 +2,7 @@
 #
 #       $Id$
 #
-# Tix Demostration Program
+# Tix Demonstration Program
 #
 # This sample program is structured in such a way so that it can be
 # executed from the Tix demo program "tixwidgets.py":  it must have a
index 1e0da3e76a6f37aed71b65e2a60dfd1b3e788678..96c0b0ff4cd6c7e50bfe97c2c84ee6a73b2e731a 100644 (file)
@@ -2,7 +2,7 @@
 #
 # $Id$
 #
-# Tix Demostration Program
+# Tix Demonstration Program
 #
 # This sample program is structured in such a way so that it can be
 # executed from the Tix demo program "tixwidgets.py": it must have a
index 1d39420cd9122b6d929ea82b360509fcd4f1ec18..8e51a9d134b962fbd1b75c610ae16635902aa047 100644 (file)
@@ -2,7 +2,7 @@
 #
 # $Id$
 #
-# Tix Demostration Program
+# Tix Demonstration Program
 #
 # This sample program is structured in such a way so that it can be
 # executed from the Tix demo program "tixwidgets.py": it must have a
index 3efc7317c4fc3e2e50d538bb8414bf5a86f0131b..13aeb5a9e849a459f80bec1fc496159bbb3b5032 100644 (file)
@@ -2,7 +2,7 @@
 #
 # $Id$
 #
-# Tix Demostration Program
+# Tix Demonstration Program
 #
 # This sample program is structured in such a way so that it can be
 # executed from the Tix demo program "tixwidgets.py": it must have a
index 32f322929489e1981ac32cd25f0ab2c16aa119cd..7028f69b920c5528a235c8541eb69cf0cc823f65 100644 (file)
@@ -2,7 +2,7 @@
 #
 #       $Id$
 #
-# Tix Demostration Program
+# Tix Demonstration Program
 #
 # This sample program is structured in such a way so that it can be
 # executed from the Tix demo program "tixwidgets.py": it must have a
index 7ca7b3e7fbbf0306b960f8846f9445f0e03aad6b..51d005adb5a2e1edd33edab76924d1c621686b87 100644 (file)
@@ -2,7 +2,7 @@
 #
 # $Id$
 #
-# Tix Demostration Program
+# Tix Demonstration Program
 #
 # This sample program is structured in such a way so that it can be
 # executed from the Tix demo program "tixwidgets.py": it must have a
index 17fd5519e2c0f085291fd6ee29f0e2c20ad55be2..5dd51ff505df09f854b84ed4cb687763adbafc9b 100644 (file)
@@ -2,7 +2,7 @@
 #
 # $Id$
 #
-# Tix Demostration Program
+# Tix Demonstration Program
 #
 # This sample program is structured in such a way so that it can be
 # executed from the Tix demo program "tixwidget": it must have a
index 9a7e4810f5f609904bc03d8c440190a3339204c8..af5e421e8fec4102e12b9c17a7e07a973954860d 100644 (file)
@@ -2,7 +2,7 @@
 #
 # $Id$
 #
-# Tix Demostration Program
+# Tix Demonstration Program
 #
 # This sample program is structured in such a way so that it can be
 # executed from the Tix demo program "tixwidgets.py": it must have a
index c9e6e652e26f42d1cfb57aee46fa4a2407e0da8d..3851f55765b1a221201ded4862a3902fb56108ea 100755 (executable)
@@ -3,7 +3,7 @@
 
      tdemo-I_dont_like_tiltdemo.py
 
-Demostrates
+Demonstrates
   (a) use of a tilted ellipse as
       turtle shape
   (b) stamping that shape
index 2b08141292661ce013b075623c86abff0b35ed7c..69abf78abaa3a36f7905aaadd7a8e32b73ed1309 100644 (file)
@@ -110,7 +110,7 @@ mainloop of the web server::
 There's actually 3 general ways in which this loop could work - dispatching a
 thread to handle ``clientsocket``, create a new process to handle
 ``clientsocket``, or restructure this app to use non-blocking sockets, and
-mulitplex between our "server" socket and any active ``clientsocket``\ s using
+multiplex between our "server" socket and any active ``clientsocket``\ s using
 ``select``. More about that later. The important thing to understand now is
 this: this is *all* a "server" socket does. It doesn't send any data. It doesn't
 receive any data. It just produces "client" sockets. Each ``clientsocket`` is
index 8be2345a46c4947a6969346ef5c29c012f01dd7b..4e33ff2bb17ffd4596c4d7316b4e13df458e57dc 100644 (file)
@@ -110,7 +110,7 @@ PyAPI_FUNC(PyObject *) _PyLong_FromByteArray(
      example, if is_signed is 0 and there are more digits in the v than
      fit in n; or if is_signed is 1, v < 0, and n is just 1 bit shy of
      being large enough to hold a sign bit.  OverflowError is set in this
-     case, but bytes holds the least-signficant n bytes of the true value.
+     case, but bytes holds the least-significant n bytes of the true value.
 */
 PyAPI_FUNC(int) _PyLong_AsByteArray(PyLongObject* v,
        unsigned char* bytes, size_t n,
index d623465b2bf2f253d022a3bc308c533beba7fd01..ec42e96299c0e6a430fbdd6b4a4dd5c0c51c56f4 100644 (file)
@@ -76,7 +76,7 @@ class NumberTestCase(unittest.TestCase):
             self.assertEqual(t(v).value, truth(v))
 
     def test_typeerror(self):
-        # Only numbers are allowed in the contructor,
+        # Only numbers are allowed in the constructor,
         # otherwise TypeError is raised
         for t in signed_types + unsigned_types + float_types:
             self.assertRaises(TypeError, t, "")
index f983a6b54a8c5c10c5a7a07c33e37ab596aac859..5650189f8a89cf4ef1994115712c355dcaed9673 100644 (file)
@@ -106,7 +106,7 @@ class StructureTestCase(unittest.TestCase):
         self.assertEqual(alignment(XX), alignment(X))
         self.assertEqual(sizeof(XX), calcsize("3s 3s 0s"))
 
-    def test_emtpy(self):
+    def test_empty(self):
         # I had problems with these
         #
         # Although these are pathological cases: Empty Structures!
index 90c2d7ceb83ba3ca03c08ab25a3cb84a99af662b..e63164b5a00a59bc7d41f0b50a2740f7f9830004 100644 (file)
@@ -9,7 +9,7 @@ HIDE_VIRTUAL_EVENT_NAME = "<<calltipwindow-hide>>"
 HIDE_SEQUENCES = ("<Key-Escape>", "<FocusOut>")
 CHECKHIDE_VIRTUAL_EVENT_NAME = "<<calltipwindow-checkhide>>"
 CHECKHIDE_SEQUENCES = ("<KeyRelease>", "<ButtonRelease>")
-CHECKHIDE_TIME = 100 # miliseconds
+CHECKHIDE_TIME = 100 # milliseconds
 
 MARK_RIGHT = "calltipwindowregion_right"
 
index 19bad8ce3856de02c5dc4cc573cb7c5c7e942105..47e10f3517bf96da0414441d446318aca81d87fa 100644 (file)
@@ -9,7 +9,7 @@ from idlelib.HyperParser import HyperParser
 from idlelib.configHandler import idleConf
 
 _openers = {')':'(',']':'[','}':'{'}
-CHECK_DELAY = 100 # miliseconds
+CHECK_DELAY = 100 # milliseconds
 
 class ParenMatch:
     """Highlight matching parentheses
index 63455ce7e9624bc32f6afe26e7cff4ce479a7306..6e264f1ade2c337246df065f3cdc8a6e3d616a77 100755 (executable)
@@ -63,7 +63,7 @@
 #            though
 #    0.5.2 - fixed uname() to return '' instead of 'unknown' in all
 #            return values (the system uname command tends to return
-#            'unknown' instead of just leaving the field emtpy)
+#            'unknown' instead of just leaving the field empty)
 #    0.5.1 - included code for slackware dist; added exception handlers
 #            to cover up situations where platforms don't have os.popen
 #            (e.g. Mac) or fail on socket.gethostname(); fixed libc
index 5182bc02eab03a2250310d1b5ae601d26f062d0d..f2dd9727d13708bcaef0eeebc8a1dda506367d27 100644 (file)
@@ -346,7 +346,7 @@ class CookieTests(TestCase):
 ##   comma-separated list, it'll be a headache to parse (at least my head
 ##   starts hurting every time I think of that code).
 ## - Expires: You'll get all sorts of date formats in the expires,
-##   including emtpy expires attributes ("expires="). Be as flexible as you
+##   including empty expires attributes ("expires="). Be as flexible as you
 ##   can, and certainly don't expect the weekday to be there; if you can't
 ##   parse it, just ignore it and pretend it's a session cookie.
 ## - Domain-matching: Netscape uses the 2-dot rule for _all_ domains, not
index 3e88168d52a154b8197e7ad35d1eb7d58f068ded..c81064d9f2a6e29942080415ea5aa096e855df0d 100644 (file)
@@ -329,7 +329,7 @@ class TestBasic(unittest.TestCase):
         d.clear()
         self.assertEqual(len(d), 0)
         self.assertEqual(list(d), [])
-        d.clear()               # clear an emtpy deque
+        d.clear()               # clear an empty deque
         self.assertEqual(list(d), [])
 
     def test_remove(self):
index daa12aa4c0225d80d6eb8ae603b1747218637b75..75861fe605cd4c2073859cfd08edf36050871e58 100644 (file)
@@ -88,7 +88,7 @@ class StructSeqTest(unittest.TestCase):
         class Exc(Exception):
             pass
 
-        # Devious code could crash structseqs' contructors
+        # Devious code could crash structseqs' constructors
         class C:
             def __getitem__(self, i):
                 raise Exc
index 0c23c96595ede4c696ec642ffdb2b05fc48f8b59..8f4610145aca353591433aac407f09bdb7b8ee15 100644 (file)
@@ -529,7 +529,7 @@ class TestCase(object):
            between the two objects is more than the given delta.
 
            Note that decimal places (from zero) are usually not the same
-           as significant digits (measured from the most signficant digit).
+           as significant digits (measured from the most significant digit).
 
            If the two objects compare equal then they will automatically
            compare almost equal.
@@ -567,7 +567,7 @@ class TestCase(object):
            between the two objects is less than the given delta.
 
            Note that decimal places (from zero) are usually not the same
-           as significant digits (measured from the most signficant digit).
+           as significant digits (measured from the most significant digit).
 
            Objects that are equal automatically fail.
         """
index 5494aaca14ff8239557b14decbf57546839a4d5e..06f10c91786918445ad16183cdb065225a965bef 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -7975,7 +7975,7 @@ Library
   mailbox.MH.get_message().
 
 - Issue #5585: Add the ability to call an initializer to
-  mulitiprocessing.manager so that users can install custom handlers/etc.
+  multiprocessing.manager so that users can install custom handlers/etc.
 
 - Issue #3551: Patch multiprocessing to raise a proper exception if the size of
   the object when writefile is called causes an ERROR_NO_SYSTEM_RESOURCES.  Added
@@ -10173,7 +10173,7 @@ Core and builtins
   module is:
     from future_builtins import hex, oct
 
-- Issue #1600: Modifed PyOS_ascii_formatd to use at most 2 digit
+- Issue #1600: Modified PyOS_ascii_formatd to use at most 2 digit
   exponents for exponents with absolute value < 100.  Follows C99
   standard.  This is a change on Windows, which would use 3 digits.
   Also, added 'n' to the formats that PyOS_ascii_formatd understands,
index d4eeda6beae4d6afbae6711e563dc161438847be..1e775431b72426ba8ef16e679c40cab00332b000 100644 (file)
@@ -434,7 +434,7 @@ d.setdefault(k,defaultval) the item of d with key k                 (5)
     defaultVal, and adds k to map with value defaultVal. defaultVal is
     optional. When not provided and k is not in the map, None is returned and
     added to map.
-      (6) Raises a KeyError if the dictionary is emtpy.
+      (6) Raises a KeyError if the dictionary is empty.
       (7) While iterating over a dictionary, the values may be updated but
           the keys cannot be changed.
 
index f12a7b2bcf18fe26e1041abab8f077f048993792..421cdccda292554421e9429a569267f02193b257 100644 (file)
@@ -366,7 +366,7 @@ _ctypes_alloc_format_string_with_shape(int ndim, const Py_ssize_t *shape,
 
 /*
   PyCStructType_Type - a meta type/class.  Creating a new class using this one as
-  __metaclass__ will call the contructor StructUnionType_new.  It replaces the
+  __metaclass__ will call the constructor StructUnionType_new.  It replaces the
   tp_dict member with a new instance of StgDict, and initializes the C
   accessible fields somehow.
 */
index 68285b82f6c98c4184912f68159dee7232a4281a..f91501bb24787d49dceb9921d0c00942fa5c05e0 100644 (file)
@@ -1747,7 +1747,7 @@ iterable, until all of the iterables are exhausted.");
 PyDoc_STRVAR(chain_from_iterable_doc,
 "chain.from_iterable(iterable) --> chain object\n\
 \n\
-Alternate chain() contructor taking a single iterable argument\n\
+Alternate chain() constructor taking a single iterable argument\n\
 that evaluates lazily.");
 
 static PyMethodDef chain_methods[] = {
index 3fc0e137860cbcf39b68d3f1b40d50e1a2075648..1929777197fda77bace06d9518e13d9320797540 100644 (file)
@@ -1640,7 +1640,7 @@ UnicodeEncodeError_str(PyObject *self)
         return PyUnicode_FromString("");
 
     /* Get reason and encoding as strings, which they might not be if
-       they've been modified after we were contructed. */
+       they've been modified after we were constructed. */
     reason_str = PyObject_Str(uself->reason);
     if (reason_str == NULL)
         goto done;
@@ -1729,7 +1729,7 @@ UnicodeDecodeError_str(PyObject *self)
         return PyUnicode_FromString("");
 
     /* Get reason and encoding as strings, which they might not be if
-       they've been modified after we were contructed. */
+       they've been modified after we were constructed. */
     reason_str = PyObject_Str(uself->reason);
     if (reason_str == NULL)
         goto done;
@@ -1830,7 +1830,7 @@ UnicodeTranslateError_str(PyObject *self)
         return PyUnicode_FromString("");
 
     /* Get reason as a string, which it might not be if it's been
-       modified after we were contructed. */
+       modified after we were constructed. */
     reason_str = PyObject_Str(uself->reason);
     if (reason_str == NULL)
         goto done;
index 6427f425f68b86ca1767e70626eb71547424c41c..ead8f284b757c6abe19d504b8dabeab214bf4343 100644 (file)
@@ -556,10 +556,10 @@ _PyLong_FromByteArray(const unsigned char* bytes, size_t n,
         size_t i;
         const unsigned char* p = pendbyte;
         const int pincr = -incr;  /* search MSB to LSB */
-        const unsigned char insignficant = is_signed ? 0xff : 0x00;
+        const unsigned char insignificant = is_signed ? 0xff : 0x00;
 
         for (i = 0; i < n; ++i, p += pincr) {
-            if (*p != insignficant)
+            if (*p != insignificant)
                 break;
         }
         numsignificantbytes = n - i;
index 836f53261f949543973f8c9b54e4a1237b446fda..2764cec796cfc375f1d431bbe9809662d66765ef 100755 (executable)
@@ -159,7 +159,7 @@ def main():
     except getopt.error, msg:
         usage('getopt error: ' + str(msg))
 
-    # proces option arguments
+    # process option arguments
     for o, a in opts:
         if o == '-h':
             print __doc__
index 2b5ade44aa202a4fd5dd9b59d520b6dffe4bc364..60dba5eecd89e93b200f0039e76bcbcf9770f38c 100755 (executable)
@@ -1,5 +1,5 @@
 #!/usr/bin/env python
-"""Basic regular expression demostration facility (Perl style syntax)."""
+"""Basic regular expression demonstration facility (Perl style syntax)."""
 
 from Tkinter import *
 import re