]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
#11565: Fix several typos. Patch by Piotr Kasprzyk.
authorEzio Melotti <ezio.melotti@gmail.com>
Wed, 16 Mar 2011 09:05:33 +0000 (11:05 +0200)
committerEzio Melotti <ezio.melotti@gmail.com>
Wed, 16 Mar 2011 09:05:33 +0000 (11:05 +0200)
94 files changed:
Demo/turtle/tdemo_bytedesign.py
Doc/includes/sqlite3/shared_cache.py
Include/abstract.h
Include/pymacconfig.h
Lib/csv.py
Lib/ctypes/test/test_arrays.py
Lib/ctypes/test/test_init.py
Lib/ctypes/test/test_numbers.py
Lib/ctypes/test/test_win32.py
Lib/difflib.py
Lib/distutils/cmd.py
Lib/distutils/cygwinccompiler.py
Lib/distutils/tests/test_clean.py
Lib/distutils/tests/test_install.py
Lib/distutils/tests/test_sdist.py
Lib/doctest.py
Lib/email/header.py
Lib/idlelib/FormatParagraph.py
Lib/idlelib/extend.txt
Lib/idlelib/macosxSupport.py
Lib/lib2to3/fixes/fix_metaclass.py
Lib/lib2to3/pgen2/conv.py
Lib/lib2to3/pytree.py
Lib/lib2to3/tests/data/py2_test_grammar.py
Lib/lib2to3/tests/data/py3_test_grammar.py
Lib/ntpath.py
Lib/pickletools.py
Lib/platform.py
Lib/pstats.py
Lib/subprocess.py
Lib/test/pyclbr_input.py
Lib/test/test_capi.py
Lib/test/test_datetime.py
Lib/test/test_decimal.py
Lib/test/test_descr.py
Lib/test/test_doctest.py
Lib/test/test_extcall.py
Lib/test/test_float.py
Lib/test/test_grammar.py
Lib/test/test_httpservers.py
Lib/test/test_iterlen.py
Lib/test/test_itertools.py
Lib/test/test_marshal.py
Lib/test/test_math.py
Lib/test/test_mmap.py
Lib/test/test_multiprocessing.py
Lib/test/test_pkg.py
Lib/test/test_print.py
Lib/test/test_strlit.py
Lib/test/test_strptime.py
Lib/test/test_struct.py
Lib/test/test_syntax.py
Lib/test/test_sys.py
Lib/test/test_threading.py
Lib/test/test_trace.py
Lib/test/test_urllib.py
Lib/test/test_warnings.py
Lib/tkinter/test/test_ttk/test_functions.py
Lib/tkinter/tix.py
Lib/tkinter/ttk.py
Lib/turtle.py
Lib/xml/dom/minicompat.py
Lib/xml/dom/minidom.py
Lib/xmlrpc/server.py
Mac/BuildScript/build-installer.py
Modules/_ctypes/_ctypes.c
Modules/_ctypes/callbacks.c
Modules/_ctypes/callproc.c
Modules/_functoolsmodule.c
Modules/_io/iobase.c
Modules/_io/stringio.c
Modules/_pickle.c
Modules/_sqlite/connection.h
Modules/cmathmodule.c
Modules/socketmodule.c
Modules/timemodule.c
Modules/zipimport.c
Modules/zlib/deflate.h
Modules/zlib/gzio.c
Objects/dictobject.c
Objects/listobject.c
Objects/longobject.c
Objects/typeobject.c
PC/bdist_wininst/extract.c
PC/bdist_wininst/install.c
PC/os2emx/dlfcn.c
PC/os2emx/dlfcn.h
Python/ceval.c
Python/pystate.c
Python/thread.c
Tools/freeze/checkextensions_win32.py
Tools/scripts/fixcid.py
Tools/unicode/makeunicodedata.py
setup.py

index 2e2ac624a006b723e3ff5b8318d0b824fc6e7f3f..85f288742b8a7f7200023c79ca9ba51474a98081 100644 (file)
@@ -4,7 +4,7 @@
         tdemo_bytedesign.py
 
 An example adapted from the example-suite
-of PythonCard's turtle graphcis.
+of PythonCard's turtle graphics.
 
 It's based on an article in BYTE magazine
 Problem Solving with Logo: Using Turtle
index bf1d7b4a21d30ead17574bd12d0f76951349d4b6..30e71c935ff62eef8231283317551f5de51b278d 100644 (file)
@@ -1,6 +1,6 @@
 import sqlite3
 
 # The shared cache is only available in SQLite versions 3.3.3 or later
-# See the SQLite documentaton for details.
+# See the SQLite documentation for details.
 
 sqlite3.enable_shared_cache(True)
index e9d1729821139355bc542496fe999e0457dffaae..bbc00926d4733fd569202871a4afefebde4d39ea 100644 (file)
@@ -466,7 +466,7 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
       arbitrary data.
 
       0 is returned on success.  buffer and buffer_len are only
-      set in case no error occurrs.  Otherwise, -1 is returned and
+      set in case no error occurs.  Otherwise, -1 is returned and
       an exception set.
        */
 
@@ -480,7 +480,7 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
       writable memory location in buffer of size buffer_len.
 
       0 is returned on success.  buffer and buffer_len are only
-      set in case no error occurrs. Otherwise, -1 is returned and
+      set in case no error occurs. Otherwise, -1 is returned and
       an exception set.
        */
 
index 9e058c18ccd744b577b1f845730a108cc2b6ba63..9dd931771385d27909609f4f62a3a58ff77187c3 100644 (file)
@@ -55,7 +55,7 @@
 #    endif
 
 #    if defined(__LP64__)
-     /* MacOSX 10.4 (the first release to suppport 64-bit code
+     /* MacOSX 10.4 (the first release to support 64-bit code
       * at all) only supports 64-bit in the UNIX layer.
       * Therefore surpress the toolbox-glue in 64-bit mode.
       */
index 59ec372ec0a35c43f1a5c0ab4a1a7d41ff93c761..dbe6db7eadb49bf6c5780a4fbbed9ce70c9146b5 100644 (file)
@@ -270,7 +270,7 @@ class Sniffer:
         an all or nothing approach, so we allow for small variations in this
         number.
           1) build a table of the frequency of each character on every line.
-          2) build a table of freqencies of this frequency (meta-frequency?),
+          2) build a table of frequencies of this frequency (meta-frequency?),
              e.g.  'x occurred 5 times in 10 rows, 6 times in 1000 rows,
              7 times in 2 rows'
           3) use the mode of the meta-frequency to determine the /expected/
index c0cdfd5b785c0003c15b33461c8560deebd89145..d11de2872219f406e2920f9e094d03180ab8793c 100644 (file)
@@ -37,7 +37,7 @@ class ArrayTestCase(unittest.TestCase):
             values = [ia[i] for i in range(len(init))]
             self.assertEqual(values, [0] * len(init))
 
-            # Too many in itializers should be caught
+            # Too many initializers should be caught
             self.assertRaises(IndexError, int_array, *range(alen*2))
 
         CharArray = ARRAY(c_char, 3)
index 94928c846a7ccd4e8ec4c27a9be778d338c10b34..75fad112a01ffbbe4f069fe872176ba66d2db455 100644 (file)
@@ -27,7 +27,7 @@ class InitTest(unittest.TestCase):
         self.assertEqual((y.x.a, y.x.b), (0, 0))
         self.assertEqual(y.x.new_was_called, False)
 
-        # But explicitely creating an X structure calls __new__ and __init__, of course.
+        # But explicitly creating an X structure calls __new__ and __init__, of course.
         x = X()
         self.assertEqual((x.a, x.b), (9, 12))
         self.assertEqual(x.new_was_called, True)
index 24d7293e893e3ddb30fe8c760775b6261892e7de..244dbaf51224bd60a6e5968a856533e25e82eb4b 100644 (file)
@@ -157,7 +157,7 @@ class NumberTestCase(unittest.TestCase):
     def test_int_from_address(self):
         from array import array
         for t in signed_types + unsigned_types:
-            # the array module doesn't suppport all format codes
+            # the array module doesn't support all format codes
             # (no 'q' or 'Q')
             try:
                 array(t._type_)
index 5dedd9f1f620f0110e185a7c9d10ecfb2a503c5c..2534a748cd95562a8fc56635173d25fa73d77110 100644 (file)
@@ -17,7 +17,7 @@ if sys.platform == "win32" and sizeof(c_void_p) == sizeof(c_int):
             # ValueError: Procedure probably called with not enough arguments (4 bytes missing)
             self.assertRaises(ValueError, IsWindow)
 
-            # This one should succeeed...
+            # This one should succeed...
             self.assertEqual(0, IsWindow(0))
 
             # ValueError: Procedure probably called with too many arguments (8 bytes in excess)
index 264860e2a38c7c90934de5a7af314ac216bc515d..24a58a61c06ee9a825d1656e136647a44c1e9c49 100644 (file)
@@ -1712,7 +1712,7 @@ class HtmlDiff(object):
             line = line.replace(' ','\0')
             # expand tabs into spaces
             line = line.expandtabs(self._tabsize)
-            # relace spaces from expanded tabs back into tab characters
+            # replace spaces from expanded tabs back into tab characters
             # (we'll replace them with markup after we do differencing)
             line = line.replace(' ','\t')
             return line.replace('\0',' ').rstrip('\n')
index ae4efc7efc31ad310354aaf6393b0f9d62ec7e5d..5b1d085c327edcf286780c1ccc9f6e52bf8fbc2e 100644 (file)
@@ -359,7 +359,7 @@ class Command:
                                   not self.force, dry_run=self.dry_run)
 
     def move_file (self, src, dst, level=1):
-        """Move a file respectin dry-run flag."""
+        """Move a file respecting dry-run flag."""
         return file_util.move_file(src, dst, dry_run=self.dry_run)
 
     def spawn(self, cmd, search_path=1, level=1):
index 95fa3ed3c8cba315903e5c8a16f91c5fe4b4a690..536aa6b61b269c83d45fa49872f583f484c49d9a 100644 (file)
@@ -155,7 +155,7 @@ class CygwinCCompiler(UnixCCompiler):
             self.dll_libraries = get_msvcr()
 
     def _compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts):
-        """Compiles the source by spawing GCC and windres if needed."""
+        """Compiles the source by spawning GCC and windres if needed."""
         if ext == '.rc' or ext == '.res':
             # gcc needs '.res' and '.rc' compiled to object files !!!
             try:
index 649855f7ab452280269c257c1531a72d386040cf..eb8958bff5a7a40b0e37d356ed273aeb53fbef40 100755 (executable)
@@ -39,7 +39,7 @@ class cleanTestCase(support.TempdirManager,
             self.assertTrue(not os.path.exists(path),
                          '%s was not removed' % path)
 
-        # let's run the command again (should spit warnings but suceed)
+        # let's run the command again (should spit warnings but succeed)
         cmd.all = 1
         cmd.ensure_finalized()
         cmd.run()
index a76e3e7a3cb0dc806a9374fe9093e3c213ef95c1..ed69b0cbb06614da4c9a2cc57f39ca43163f52be 100644 (file)
@@ -62,7 +62,7 @@ class InstallTestCase(support.TempdirManager,
         if sys.version < '2.6':
             return
 
-        # preparing the environement for the test
+        # preparing the environment for the test
         self.old_user_base = site.USER_BASE
         self.old_user_site = site.USER_SITE
         self.tmpdir = self.mkdtemp()
index eaf39a45baecc5b8a08fdcb79599f6e5776a820f..c7dd47fb5c35de666aa543307a4c8ffd7872ac00 100644 (file)
@@ -311,7 +311,7 @@ class SDistTestCase(PyPIRCCommandTestCase):
         # adding a file
         self.write_file((self.tmp_dir, 'somecode', 'doc2.txt'), '#')
 
-        # make sure build_py is reinitinialized, like a fresh run
+        # make sure build_py is reinitialized, like a fresh run
         build_py = dist.get_command_obj('build_py')
         build_py.finalized = False
         build_py.ensure_finalized()
index 7554a1fdbe41823de708cdbba729bb9340e96c60..fae333e4f63a52a5b6cbbf20600b221a655b8a48 100644 (file)
@@ -1210,7 +1210,7 @@ class DocTestRunner:
         # Process each example.
         for examplenum, example in enumerate(test.examples):
 
-            # If REPORT_ONLY_FIRST_FAILURE is set, then supress
+            # If REPORT_ONLY_FIRST_FAILURE is set, then suppress
             # reporting after the first failure.
             quiet = (self.optionflags & REPORT_ONLY_FIRST_FAILURE and
                      failures > 0)
@@ -2132,7 +2132,7 @@ class DocTestCase(unittest.TestCase):
            caller can catch the errors and initiate post-mortem debugging.
 
            The DocTestCase provides a debug method that raises
-           UnexpectedException errors if there is an unexepcted
+           UnexpectedException errors if there is an unexpected
            exception:
 
              >>> test = DocTestParser().get_doctest('>>> raise KeyError\n42',
index a391255bd66fa62b13d25f843f0b7dd9a91d53f7..43220df762095f6a75206f4ac6b4a70f31cb9242 100644 (file)
@@ -46,7 +46,7 @@ ecre = re.compile(r'''
 # For use with .match()
 fcre = re.compile(r'[\041-\176]+:$')
 
-# Find a header embeded in a putative header value.  Used to check for
+# Find a header embedded in a putative header value.  Used to check for
 # header injection attack.
 _embeded_header = re.compile(r'\n[^ \t]+:')
 
index 02f96d493a3ba12ca2815f412b92110f98597e7b..6a5f9b5dd591be33168a321490fedbb7efd99aa8 100644 (file)
@@ -54,7 +54,7 @@ class FormatParagraph:
             # If the block ends in a \n, we dont want the comment
             # prefix inserted after it. (Im not sure it makes sense to
             # reformat a comment block that isnt made of complete
-            # lines, but whatever!)  Can't think of a clean soltution,
+            # lines, but whatever!)  Can't think of a clean solution,
             # so we hack away
             block_suffix = ""
             if not newdata[-1]:
index f5fb3e0409c7529e67fed77a5a0f57ac4aab2db8..165e044b5d10c5a320a91b8ca576fb5243c6cf27 100644 (file)
@@ -18,7 +18,7 @@ window.
 
 An IDLE extension class is instantiated with a single argument,
 `editwin', an EditorWindow instance. The extension cannot assume much
-about this argument, but it is guarateed to have the following instance
+about this argument, but it is guaranteed to have the following instance
 variables:
 
     text       a Text instance (a widget)
index 9b677e1d3b567dc9a30cbc5a144f01eb625fc5f5..da519f7a0fccf87b655123960e5b5dff16c27b2f 100644 (file)
@@ -15,8 +15,8 @@ def runningAsOSXApp():
 
 def addOpenEventSupport(root, flist):
     """
-    This ensures that the application will respont to open AppleEvents, which
-    makes is feaseable to use IDLE as the default application for python files.
+    This ensures that the application will respond to open AppleEvents, which
+    makes is feasible to use IDLE as the default application for python files.
     """
     def doOpenFile(*args):
         for fn in args:
index f924ace09e47ddf595ae531ea011d096a81b40f6..7d4d002f976bbbe57fca9f7d14116fe6672260be 100644 (file)
@@ -48,7 +48,7 @@ def fixup_parse_tree(cls_node):
     """
     for node in cls_node.children:
         if node.type == syms.suite:
-            # already in the prefered format, do nothing
+            # already in the preferred format, do nothing
             return
 
     # !%@#! oneliners have no suite node, we have to fake one up
index 1d648d6a2e5831ca0dc44156ff7fa3b9da669f95..bf49762ae48234428637f7aaad792b888a6354b6 100644 (file)
@@ -51,7 +51,7 @@ class Converter(grammar.Grammar):
         self.finish_off()
 
     def parse_graminit_h(self, filename):
-        """Parse the .h file writen by pgen.  (Internal)
+        """Parse the .h file written by pgen.  (Internal)
 
         This file is a sequence of #define statements defining the
         nonterminals of the grammar as numbers.  We build two tables
@@ -82,7 +82,7 @@ class Converter(grammar.Grammar):
         return True
 
     def parse_graminit_c(self, filename):
-        """Parse the .c file writen by pgen.  (Internal)
+        """Parse the .c file written by pgen.  (Internal)
 
         The file looks as follows.  The first two lines are always this:
 
index 100232b61c0b3f2c4ee6030ec34cd1466a507e34..fa4942f39214407aa3d7adb0d0837bccdf00d78e 100644 (file)
@@ -658,8 +658,8 @@ class WildcardPattern(BasePattern):
             content: optional sequence of subsequences of patterns;
                      if absent, matches one node;
                      if present, each subsequence is an alternative [*]
-            min: optinal minumum number of times to match, default 0
-            max: optional maximum number of times tro match, default HUGE
+            min: optional minimum number of times to match, default 0
+            max: optional maximum number of times to match, default HUGE
             name: optional name assigned to this match
 
         [*] Thus, if content is [[a, b, c], [d, e], [f, g, h]] this is
index 17f9f4c51c06adba3efb945444cfd0c7df126249..b5a4137d1615ef96ca118c090221aadd828f98f2 100644 (file)
@@ -316,7 +316,7 @@ class GrammarTests(unittest.TestCase):
         ### simple_stmt: small_stmt (';' small_stmt)* [';']
         x = 1; pass; del x
         def foo():
-            # verify statments that end with semi-colons
+            # verify statements that end with semi-colons
             x = 1; pass; del x;
         foo()
 
index 977f0b8b35fa1f7085bb5dfea7fa05f2c302e1c0..c0bf7f27aa525fe19a8dfa8ee341844f3ac814b5 100644 (file)
@@ -356,7 +356,7 @@ class GrammarTests(unittest.TestCase):
         ### simple_stmt: small_stmt (';' small_stmt)* [';']
         x = 1; pass; del x
         def foo():
-            # verify statments that end with semi-colons
+            # verify statements that end with semi-colons
             x = 1; pass; del x;
         foo()
 
index 9e4cff7a6c003a749f37b13ffd1f7795e56b44c1..ae9dcf2eafea84565dfdff43cbcc819529414a9c 100644 (file)
@@ -389,7 +389,7 @@ def expanduser(path):
 #       - $varname is accepted.
 #       - %varname% is accepted.
 #       - varnames can be made out of letters, digits and the characters '_-'
-#         (though is not verifed in the ${varname} and %varname% cases)
+#         (though is not verified in the ${varname} and %varname% cases)
 # XXX With COMMAND.COM you can use any characters in a variable name,
 # XXX except '^|<>='.
 
index dc408101dbcb65915e49376581c12be410e667a8..0af2fdba132279c2bb46a12cb5fd5bfd8a7314ee 100644 (file)
@@ -1406,7 +1406,7 @@ opcodes = [
       proto=0,
       doc="""Read an object from the memo and push it on the stack.
 
-      The index of the memo object to push is given by the newline-teriminated
+      The index of the memo object to push is given by the newline-terminated
       decimal string following.  BINGET and LONG_BINGET are space-optimized
       versions.
       """),
index 780301d264fa0c6ff44e5d0de6cddbdcfdb2299d..2294604ea41a71cbdd812c363c1f507e0ece5f39 100755 (executable)
@@ -476,7 +476,7 @@ def _syscmd_ver(system='', release='', version='',
             info = pipe.read()
             if pipe.close():
                 raise os.error('command failed')
-            # XXX How can I supress shell errors from being written
+            # XXX How can I suppress shell errors from being written
             #     to stderr ?
         except os.error as why:
             #print 'Command %s failed: %s' % (cmd,why)
index db16628adc73567d9bba02fdc2048f1e563414ab..566272dcae788877f722822344c17705713195ee 100644 (file)
@@ -71,7 +71,7 @@ class Stats:
     """
 
     def __init__(self, *args, **kwds):
-        # I can't figure out how to explictly specify a stream keyword arg
+        # I can't figure out how to explicitly specify a stream keyword arg
         # with *args:
         #   def __init__(self, *args, stream=sys.stdout): ...
         # so I use **kwds and sqauwk if something unexpected is passed in.
index b8e3c0e4c856aa34f87c8cbc9c40e42c341d1888..97792dbe605e9642e1f60262225d6442200c0748 100644 (file)
@@ -858,7 +858,7 @@ class Popen(object):
             except pywintypes.error as e:
                 # Translate pywintypes.error to WindowsError, which is
                 # a subclass of OSError.  FIXME: We should really
-                # translate errno using _sys_errlist (or simliar), but
+                # translate errno using _sys_errlist (or similar), but
                 # how can this be done from Python?
                 raise WindowsError(*e.args)
             finally:
index 8efc9de75d7767b75666e41cc5d6bfacfc0ee4a0..19ccd62dead8ee10ec2256bf3f3d07d57b14bc8b 100644 (file)
@@ -19,7 +19,7 @@ class C (B):
 
     # XXX: This causes test_pyclbr.py to fail, but only because the
     #      introspection-based is_method() code in the test can't
-    #      distinguish between this and a geniune method function like m().
+    #      distinguish between this and a genuine method function like m().
     #      The pyclbr.py module gets this right as it parses the text.
     #
     #f = f
index 0460679c7bb706e8fd9bf8df1a1a8770a2cd99a6..3f1d63c49031d90aa7a9bb5df9975c3e3a61febb 100644 (file)
@@ -106,7 +106,7 @@ class TestPendingCalls(unittest.TestCase):
                 context.event.set()
 
     def test_pendingcalls_non_threaded(self):
-        #again, just using the main thread, likely they will all be dispathced at
+        #again, just using the main thread, likely they will all be dispatched at
         #once.  It is ok to ask for too many, because we loop until we find a slot.
         #the loop can be interrupted to dispatch.
         #there are only 32 dispatch slots, so we go for twice that!
index d983d6e566d5424f7ae81c4625cd7cdbc21628d6..ea1e4d51b6131303306bbfb104459ff2f1cfb40e 100644 (file)
@@ -3120,7 +3120,7 @@ class TestTimezoneConversions(unittest.TestCase):
             self.assertEqual(dt, there_and_back)
 
         # Because we have a redundant spelling when DST begins, there is
-        # (unforunately) an hour when DST ends that can't be spelled at all in
+        # (unfortunately) an hour when DST ends that can't be spelled at all in
         # local time.  When DST ends, the clock jumps from 1:59 back to 1:00
         # again.  The hour 1:MM DST has no spelling then:  1:MM is taken to be
         # standard time.  1:MM DST == 0:MM EST, but 0:MM is taken to be
index 9467191a699a27cf05a0de3f55d48fdf801372c9..ec381e4139532d69bad81aaad7cf285b40df31db 100644 (file)
@@ -225,7 +225,7 @@ class DecimalTest(unittest.TestCase):
                 try:
                     t = self.eval_line(line)
                 except DecimalException as exception:
-                    #Exception raised where there shoudn't have been one.
+                    #Exception raised where there shouldn't have been one.
                     self.fail('Exception "'+exception.__class__.__name__ + '" raised on line '+line)
 
         return
index 6b9e30d13f84769dc28e85c2953b1fe229af3002..bd88f4533774e42cb8c90b56a59b896d6840d92b 100644 (file)
@@ -3976,7 +3976,7 @@ order (MRO) for bases """
         except TypeError:
             pass
         else:
-            self.fail("Carlo Verre __setattr__ suceeded!")
+            self.fail("Carlo Verre __setattr__ succeeded!")
         try:
             object.__delattr__(str, "lower")
         except TypeError:
index 0cb4f189bf956992b7bdf965111df72f57ec30d1..de85758ac50eb16d3daa191446c65ac94a2c2672 100644 (file)
@@ -1222,7 +1222,7 @@ marking, as well as interline differences.
         ?     +              ++    ^
     TestResults(failed=1, attempted=1)
 
-The REPORT_ONLY_FIRST_FAILURE supresses result output after the first
+The REPORT_ONLY_FIRST_FAILURE suppresses result output after the first
 failing example:
 
     >>> def f(x):
@@ -1252,7 +1252,7 @@ failing example:
         2
     TestResults(failed=3, attempted=5)
 
-However, output from `report_start` is not supressed:
+However, output from `report_start` is not suppressed:
 
     >>> doctest.DocTestRunner(verbose=True, optionflags=flags).run(test)
     ... # doctest: +ELLIPSIS
@@ -2199,7 +2199,7 @@ We don't want `-v` in sys.argv for these tests.
     >>> doctest.master = None  # Reset master.
 
 (Note: we'll be clearing doctest.master after each call to
-`doctest.testfile`, to supress warnings about multiple tests with the
+`doctest.testfile`, to suppress warnings about multiple tests with the
 same name.)
 
 Globals may be specified with the `globs` and `extraglobs` parameters:
@@ -2235,7 +2235,7 @@ optional `module_relative` parameter:
     TestResults(failed=0, attempted=2)
     >>> doctest.master = None  # Reset master.
 
-Verbosity can be increased with the optional `verbose` paremter:
+Verbosity can be increased with the optional `verbose` parameter:
 
     >>> doctest.testfile('test_doctest.txt', globs=globs, verbose=True)
     Trying:
@@ -2272,7 +2272,7 @@ parameter:
     TestResults(failed=1, attempted=2)
     >>> doctest.master = None  # Reset master.
 
-The summary report may be supressed with the optional `report`
+The summary report may be suppressed with the optional `report`
 parameter:
 
     >>> doctest.testfile('test_doctest.txt', report=False)
index f1fff0a5ecaef2183b45c82c1b03ceacbe3b2e0b..ce9ac5ea023a369c0bdaba9ef19751a4fea5030e 100644 (file)
@@ -227,7 +227,7 @@ Another helper function
     >>> Foo.method(1, *[2, 3])
     5
 
-A PyCFunction that takes only positional parameters shoud allow an
+A PyCFunction that takes only positional parameters should allow an
 empty keyword dictionary to pass without a complaint, but raise a
 TypeError if te dictionary is not empty
 
index b5b6b6585901a434632d40852576dd6eb311f28e..2b250df75f2e527dccf1b5e591406661c3cc833c 100644 (file)
@@ -121,7 +121,7 @@ class GeneralFloatCases(unittest.TestCase):
     def test_float_with_comma(self):
         # set locale to something that doesn't use '.' for the decimal point
         # float must not accept the locale specific decimal point but
-        # it still has to accept the normal python syntac
+        # it still has to accept the normal python syntax
         import locale
         if not locale.localeconv()['decimal_point'] == ',':
             return
@@ -243,7 +243,7 @@ class GeneralFloatCases(unittest.TestCase):
     def assertEqualAndEqualSign(self, a, b):
         # fail unless a == b and a and b have the same sign bit;
         # the only difference from assertEqual is that this test
-        # distingishes -0.0 and 0.0.
+        # distinguishes -0.0 and 0.0.
         self.assertEqual((a, copysign(1.0, a)), (b, copysign(1.0, b)))
 
     @requires_IEEE_754
index ff8dc937786992c216d29c7e86879702285aeb45..df224fd33006041213287099d41c72ac3a32f967 100644 (file)
@@ -356,7 +356,7 @@ class GrammarTests(unittest.TestCase):
         ### simple_stmt: small_stmt (';' small_stmt)* [';']
         x = 1; pass; del x
         def foo():
-            # verify statments that end with semi-colons
+            # verify statements that end with semi-colons
             x = 1; pass; del x;
         foo()
 
index 4f1ecff4a913774cde454b29b5c7d0955c092c80..28256975a0e7665bb49945c05e6dfd0e7ce6056d 100644 (file)
@@ -83,7 +83,7 @@ class BaseTestCase(unittest.TestCase):
         return self.connection.getresponse()
 
 class BaseHTTPRequestHandlerTestCase(unittest.TestCase):
-    """Test the functionaility of the BaseHTTPServer."""
+    """Test the functionality of the BaseHTTPServer."""
 
     HTTPResponseMatch = re.compile(b'HTTP/1.[0-9]+ 200 OK')
 
index cd928013f56750ccf97ab988585834972363c43c..7469a319f7a3ab09ba92134ec79665d7d32d0c63 100644 (file)
@@ -20,11 +20,11 @@ This is the case for tuples, range objects, and itertools.repeat().
 
 Some containers become temporarily immutable during iteration.  This includes
 dicts, sets, and collections.deque.  Their implementation is equally simple
-though they need to permantently set their length to zero whenever there is
+though they need to permanently set their length to zero whenever there is
 an attempt to iterate after a length mutation.
 
 The situation slightly more involved whenever an object allows length mutation
-during iteration.  Lists and sequence iterators are dynanamically updatable.
+during iteration.  Lists and sequence iterators are dynamically updatable.
 So, if a list is extended during iteration, the iterator will continue through
 the new items.  If it shrinks to a point before the most recent iteration,
 then no further items are available and the length is reported at zero.
index a1875ffda4ab04160e03afb161476971b80cba53..da101e11abf86448d0cf77e426294143545d277a 100644 (file)
@@ -1490,7 +1490,7 @@ Samuele
 ...     return chain(iterable, repeat(None))
 
 >>> def ncycles(iterable, n):
-...     "Returns the seqeuence elements n times"
+...     "Returns the sequence elements n times"
 ...     return chain(*repeat(iterable, n))
 
 >>> def dotproduct(vec1, vec2):
index 20f53b8d7ac067323cd038ae9b606be882ff8fca..5e1cdd5052512e3be1584a437e98e484ba109805 100644 (file)
@@ -200,7 +200,7 @@ class BugsTestCase(unittest.TestCase):
         #   >>> type(loads(dumps(Int())))
         #   <type 'int'>
         for typ in (int, float, complex, tuple, list, dict, set, frozenset):
-            # Note: str sublclasses are not tested because they get handled
+            # Note: str subclasses are not tested because they get handled
             # by marshal's routines for objects supporting the buffer API.
             subtyp = type('subtyp', (typ,), {})
             self.assertRaises(ValueError, marshal.dumps, subtyp())
index e53bf2e3a90f8d4bacda034e176351be20b1351f..9a87d5d3079a69ee0d803637758b747429b11fc4 100644 (file)
@@ -697,7 +697,7 @@ class MathTests(unittest.TestCase):
 
         # the following tests have been commented out since they don't
         # really belong here:  the implementation of ** for floats is
-        # independent of the implemention of math.pow
+        # independent of the implementation of math.pow
         #self.assertEqual(1**NAN, 1)
         #self.assertEqual(1**INF, 1)
         #self.assertEqual(1**NINF, 1)
index 0822cc12c313975a45c02566365b44da4f3551c3..7c51085a997c40d32c975109f16d18941811a534 100644 (file)
@@ -599,7 +599,7 @@ class MmapTests(unittest.TestCase):
             m2.close()
             m1.close()
 
-            # Test differnt tag
+            # Test different tag
             m1 = mmap.mmap(-1, len(data1), tagname="foo")
             m1[:] = data1
             m2 = mmap.mmap(-1, len(data2), tagname="boo")
index aa0e1d8ba7d73fd0733088bfa1e4df8849732304..d1ac4b7c44c73a7f87d445113bdfdba47bd1b285 100644 (file)
@@ -780,7 +780,7 @@ class _TestEvent(BaseTestCase):
         event = self.Event()
         wait = TimingWrapper(event.wait)
 
-        # Removed temporaily, due to API shear, this does not
+        # Removed temporarily, due to API shear, this does not
         # work with threading._Event objects. is_set == isSet
         self.assertEqual(event.is_set(), False)
 
@@ -1671,7 +1671,7 @@ class _TestFinalize(BaseTestCase):
 
         util.Finalize(None, conn.send, args=('STOP',), exitpriority=-100)
 
-        # call mutliprocessing's cleanup function then exit process without
+        # call multiprocessing's cleanup function then exit process without
         # garbage collecting locals
         util._exit_function()
         conn.close()
index 2e293f4fbe537022091bf09a36797da27aea7f58..4b48c0430758fa92e2d1a57e757ac86080a7acd2 100644 (file)
@@ -55,7 +55,7 @@ class TestPkg(unittest.TestCase):
         support.modules_cleanup(*self.modules_before)
         cleanout(self.root)
 
-        # delete all modules concerning the tested hiearchy
+        # delete all modules concerning the tested hierarchy
         if self.pkgname:
             modules = [name for name in sys.modules
                        if self.pkgname in name.split('.')]
index f157bc7db639166c37ffb3e2fe4ad688ec2b2b2a..b1ace4dc2ce005031c1ecdd77188528d2ef4d74a 100644 (file)
@@ -21,7 +21,7 @@ NotDefined = object()
 # A dispatch table all 8 combinations of providing
 #  sep, end, and file
 # I use this machinery so that I'm not just passing default
-#  values to print, I'm eiher passing or not passing in the
+#  values to print, I'm either passing or not passing in the
 #  arguments
 dispatch = {
     (False, False, False):
index 23d96f867a85da681b5da88702a2887bac39fead..9eb30e9c54b670bb92e5bc5b39f253e687a0a1e6 100644 (file)
@@ -22,7 +22,7 @@ We have to test this with various file encodings.  We also test it with
 exec()/eval(), which uses a different code path.
 
 This file is really about correct treatment of encodings and
-backslashes.  It doens't concern itself with issues like single
+backslashes.  It doesn't concern itself with issues like single
 vs. double quotes or singly- vs. triply-quoted strings: that's dealt
 with elsewhere (I assume).
 """
index e0263b4f1a51db549c798172d59ad3462411c297..f150546287d5ca041532ac07189a832a462bdb7d 100644 (file)
@@ -541,7 +541,7 @@ class CacheTests(unittest.TestCase):
                 self.assertIsNot(first_time_re, second_time_re)
             # Possible test locale is not supported while initial locale is.
             # If this is the case just suppress the exception and fall-through
-            # to the reseting to the original locale.
+            # to the resetting to the original locale.
             except locale.Error:
                 pass
         # Make sure we don't trample on the locale setting once we leave the
index 0c1932692105905bd1a62cbcf421a64949cf48b6..9ed3220e8b7f867b196611082c9aff879490ce81 100644 (file)
@@ -476,7 +476,7 @@ class StructTest(unittest.TestCase):
                           test_string)
 
     def test_unpack_with_buffer(self):
-        # SF bug 1563759: struct.unpack doens't support buffer protocol objects
+        # SF bug 1563759: struct.unpack doesn't support buffer protocol objects
         data1 = array.array('B', b'\x12\x34\x56\x78')
         data2 = memoryview(b'\x12\x34\x56\x78') # XXX b'......XXXX......', 6, 4
         for data in [data1, data2]:
index 2afbb6176402d410d3332b5837fc7aaa0152d533..202770afa6d8b68281e44cfbac7cbb4e3573cd03 100644 (file)
@@ -237,7 +237,7 @@ SyntaxError: can't assign to function call
 
 Test continue in finally in weird combinations.
 
-continue in for loop under finally shouuld be ok.
+continue in for loop under finally should be ok.
 
     >>> def test():
     ...     try:
index aa30923fe162b3d13d3c68e0a360467ce2433111..11685a420230c8f13bccddcefe4966120d8ed5ec 100644 (file)
@@ -416,7 +416,7 @@ class SysModuleTest(unittest.TestCase):
         # provide too much opportunity for insane things to happen.
         # We don't want them in the interned dict and if they aren't
         # actually interned, we don't want to create the appearance
-        # that they are by allowing intern() to succeeed.
+        # that they are by allowing intern() to succeed.
         class S(str):
             def __hash__(self):
                 return 123
index 2bf84374a74cf266d45b84bb4f34bd9f6ff847b0..f977a7fbbee16aca44510aec9bd65fc362ddf1f2 100644 (file)
@@ -543,7 +543,7 @@ class ThreadJoinOnShutdown(unittest.TestCase):
             # This acquires the lock and then waits until the child has forked
             # before returning, which will release the lock soon after.  If
             # someone else tries to fix this test case by acquiring this lock
-            # before forking instead of reseting it, the test case will
+            # before forking instead of resetting it, the test case will
             # deadlock when it shouldn't.
             condition = w._block
             orig_acquire = condition.acquire
index 07c5062f93c4a138f050c366130b5b92e789bea6..3697cbf5bb3ea68d0752102a17817c017c0020ba 100644 (file)
@@ -185,7 +185,7 @@ class TestRunExecCounts(unittest.TestCase):
             (self.my_py_filename, firstlineno + 4): 1,
         }
 
-        # When used through 'run', some other spurios counts are produced, like
+        # When used through 'run', some other spurious counts are produced, like
         # the settrace of threading, which we ignore, just making sure that the
         # counts fo traced_func_loop were right.
         #
index 2a9590a8c3eac529251b604635cc11a931659952..422831e35fa7fb4ceeb9a810b211e075244e7165 100644 (file)
@@ -1003,7 +1003,7 @@ class URLopener_Tests(unittest.TestCase):
 
 # Just commented them out.
 # Can't really tell why keep failing in windows and sparc.
-# Everywhere else they work ok, but on those machines, someteimes
+# Everywhere else they work ok, but on those machines, sometimes
 # fail in one of the tests, sometimes in other. I have a linux, and
 # the tests go ok.
 # If anybody has one of the problematic enviroments, please help!
index 77f5be033a76ccbed1cde3320aff2e6900c1627f..65a1a287269270df7983949b035e9b437759bfa1 100644 (file)
@@ -333,7 +333,7 @@ class WarnTests(unittest.TestCase):
             sys.argv = argv
 
     def test_warn_explicit_type_errors(self):
-        # warn_explicit() shoud error out gracefully if it is given objects
+        # warn_explicit() should error out gracefully if it is given objects
         # of the wrong types.
         # lineno is expected to be an integer.
         self.assertRaises(TypeError, self.module.warn_explicit,
index f9b908e5e48e8744d3db68a92c9be39401ba3f5e..df593cd710920aa11e2131e35f784247453a5f85 100644 (file)
@@ -135,7 +135,7 @@ class InternalFunctionsTest(unittest.TestCase):
         # minimum acceptable for image type
         self.assertEqual(ttk._format_elemcreate('image', False, 'test'),
             ("test ", ()))
-        # specifiyng a state spec
+        # specifying a state spec
         self.assertEqual(ttk._format_elemcreate('image', False, 'test',
             ('', 'a')), ("test {} a", ()))
         # state spec with multiple states
index 6458797e335373de2b3a9b7479ac8f8212abfcc3..b105278b9701e4dad872d8f3f9f1a63b7d02f974 100644 (file)
@@ -156,7 +156,7 @@ class tixCommand:
         return self.tk.call('tix', 'getimage', name)
 
     def tix_option_get(self, name):
-        """Gets  the options  manitained  by  the  Tix
+        """Gets  the options  maintained  by  the  Tix
         scheme mechanism. Available options include:
 
             active_bg       active_fg      bg
@@ -561,7 +561,7 @@ class ButtonBox(TixWidget):
 
 class ComboBox(TixWidget):
     """ComboBox - an Entry field with a dropdown menu. The user can select a
-    choice by either typing in the entry subwdget or selecting from the
+    choice by either typing in the entry subwidget or selecting from the
     listbox subwidget.
 
     Subwidget       Class
@@ -854,7 +854,7 @@ class HList(TixWidget):
     """HList - Hierarchy display  widget can be used to display any data
     that have a hierarchical structure, for example, file system directory
     trees. The list entries are indented and connected by branch lines
-    according to their places in the hierachy.
+    according to their places in the hierarchy.
 
     Subwidgets - None"""
 
@@ -1509,7 +1509,7 @@ class TList(TixWidget):
         self.tk.call(self._w, 'yview', *args)
 
 class Tree(TixWidget):
-    """Tree - The tixTree widget can be used to display hierachical
+    """Tree - The tixTree widget can be used to display hierarchical
     data in a tree form. The user can adjust
     the view of the tree by opening or closing parts of the tree."""
 
index 1c7f11a35b95ac51bf22649c31286fe8d4b9174c..9213b62bc7959bfa777b81d02a910dcf1eebce35 100644 (file)
@@ -707,7 +707,7 @@ class Combobox(Entry):
             textvariable, values, width
         """
         # The "values" option may need special formatting, so leave to
-        # _format_optdict the responsability to format it
+        # _format_optdict the responsibility to format it
         if "values" in kw:
             kw["values"] = _format_optdict({'v': kw["values"]})[1]
 
index 8146be6aa4adcdea367f1d681e862ff94998ce3d..0c439f1e3bafda49ddd5fb4dbaff35e7482b58ac 100644 (file)
@@ -1488,7 +1488,7 @@ class TurtleScreen(TurtleScreenBase):
         Optional arguments:
         canvwidth -- positive integer, new width of canvas in pixels
         canvheight --  positive integer, new height of canvas in pixels
-        bg -- colorstring or color-tupel, new backgroundcolor
+        bg -- colorstring or color-tuple, new backgroundcolor
         If no arguments are given, return current (canvaswidth, canvasheight)
 
         Do not alter the drawing window. To observe hidden parts of
@@ -3242,9 +3242,9 @@ class RawTurtle(TPen, TNavigator):
                                                fill="", width=ps)
         # Turtle now at position old,
         self._position = old
-        ##  if undo is done during crating a polygon, the last vertex
-        ##  will be deleted. if the polygon is entirel deleted,
-        ##  creatigPoly will be set to False.
+        ##  if undo is done during creating a polygon, the last vertex
+        ##  will be deleted. if the polygon is entirely deleted,
+        ##  creatingPoly will be set to False.
         ##  Polygons created before the last one will not be affected by undo()
         if self._creatingPoly:
             if len(self._poly) > 0:
@@ -3796,7 +3796,7 @@ class _Screen(TurtleScreen):
 
 
 class Turtle(RawTurtle):
-    """RawTurtle auto-crating (scrolled) canvas.
+    """RawTurtle auto-creating (scrolled) canvas.
 
     When a Turtle object is created or a function derived from some
     Turtle method is called a TurtleScreen object is automatically created.
@@ -3836,7 +3836,7 @@ def write_docstringdict(filename="turtle_docstringdict"):
     filename -- a string, used as filename
                 default value is turtle_docstringdict
 
-    Has to be called explicitely, (not used by the turtle-graphics classes)
+    Has to be called explicitly, (not used by the turtle-graphics classes)
     The docstring dictionary will be written to the Python script <filname>.py
     It is intended to serve as a template for translation of the docstrings
     into different languages.
index 2e6cc7e34c0a0ed9e9eedd846b87cb13fc6949ba..62725c6198d007d006cf7bb2757ec3609eecc573 100644 (file)
@@ -6,7 +6,7 @@
 #
 #   NodeList      -- lightest possible NodeList implementation
 #
-#   EmptyNodeList -- lightest possible NodeList that is guarateed to
+#   EmptyNodeList -- lightest possible NodeList that is guaranteed to
 #                    remain empty (immutable)
 #
 #   StringTypes   -- tuple of defined string types
index bc68cf89335d93e18736c8259a490cabf33ec1be..d9c04d48ade6784d1f053ff0f69248573c8f49f2 100644 (file)
@@ -1893,7 +1893,7 @@ def _clone_node(node, deep, newOwnerDocument):
                     e._call_user_data_handler(operation, n, entity)
     else:
         # Note the cloning of Document and DocumentType nodes is
-        # implemenetation specific.  minidom handles those cases
+        # implementation specific.  minidom handles those cases
         # directly in the cloneNode() methods.
         raise xml.dom.NotSupportedErr("Cannot clone node %s" % repr(node))
 
index 1cd45a95964527cbc04cfeedc5db2ad2f7178b0e..24d8a6a03e3e7fee030a4ab5d1ef22764941d27f 100644 (file)
@@ -239,7 +239,7 @@ class SimpleXMLRPCDispatcher:
         marshalled data. For backwards compatibility, a dispatch
         function can be provided as an argument (see comment in
         SimpleXMLRPCRequestHandler.do_POST) but overriding the
-        existing method through subclassing is the prefered means
+        existing method through subclassing is the preferred means
         of changing method dispatch behavior.
         """
 
index 08e64d99fe85348449e904ceaefd2d9479ff2f24..02dbe1347e1df15be585949705450375c7c34ab0 100755 (executable)
@@ -354,7 +354,7 @@ def fileContents(fn):
 
 def runCommand(commandline):
     """
-    Run a command and raise RuntimeError if it fails. Output is surpressed
+    Run a command and raise RuntimeError if it fails. Output is suppressed
     unless the command fails.
     """
     fd = os.popen(commandline, 'r')
index 5643a659f337cf5ef1a14f9e41ecea7f1690daf9..04b07cc4e2d6cab2f251338e8615420475a8f9ad 100644 (file)
@@ -3331,7 +3331,7 @@ PyCFuncPtr_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
     /* XXX XXX This would allow to pass additional options.  For COM
        method *implementations*, we would probably want different
        behaviour than in 'normal' callback functions: return a HRESULT if
-       an exception occurrs in the callback, and print the traceback not
+       an exception occurs in the callback, and print the traceback not
        only on the console, but also to OutputDebugString() or something
        like that.
     */
index 5c82f77c581f690b0ea9c17d623449c02373cddd..490ada6248cd02c1c3234ce3a33f1010d3046339 100644 (file)
@@ -234,7 +234,7 @@ static void _CallPythonObject(void *mem,
             /* XXX XXX XX
                We have the problem that c_byte or c_short have dict->size of
                1 resp. 4, but these parameters are pushed as sizeof(int) bytes.
-               BTW, the same problem occurrs when they are pushed as parameters
+               BTW, the same problem occurs when they are pushed as parameters
             */
         } else if (dict) {
             /* Hm, shouldn't we use PyCData_AtAddress() or something like that instead? */
index d185fdaf390525b9297275803d3d2a5dd73d0ba2..41a90f664759173585674d77e757ee6beaf9da39 100644 (file)
@@ -29,7 +29,7 @@
 
   4. _ctypes_callproc is then called with the 'callargs' tuple.  _ctypes_callproc first
   allocates two arrays.  The first is an array of 'struct argument' items, the
-  second array has 'void *' entried.
+  second array has 'void *' entries.
 
   5. If 'converters' are present (converters is a sequence of argtypes'
   from_param methods), for each item in 'callargs' converter is called and the
index 34373539336919c59e040172746a942b35e46fe5..9aaa0f39943563dad61f646b6b8715fa5627a5f3 100644 (file)
@@ -200,7 +200,7 @@ static PyGetSetDef partial_getsetlist[] = {
    __reduce__ by itself doesn't support getting kwargs in the unpickle
    operation so we define a __setstate__ that replaces all the information
    about the partial.  If we only replaced part of it someone would use
-   it as a hook to do stange things.
+   it as a hook to do strange things.
  */
 
 static PyObject *
index dfc1a3ad5df63c29d806666e10afac1278a334e9..84b560a029756af20d9639fb0943352bd55961ad 100644 (file)
@@ -49,7 +49,7 @@ PyDoc_STRVAR(iobase_doc,
     "stream.\n"
     "\n"
     "IOBase also supports the :keyword:`with` statement. In this example,\n"
-    "fp is closed after the suite of the with statment is complete:\n"
+    "fp is closed after the suite of the with statement is complete:\n"
     "\n"
     "with open('spam.txt', 'r') as fp:\n"
     "    fp.write('Spam and eggs!')\n");
index 7e3730a737126fbdce8dc02ce5cb35193c3c2c0e..8d83f73078d7f0f44c1e296cea7589410398f369 100644 (file)
@@ -157,7 +157,7 @@ write_str(stringio *self, PyObject *obj)
           0   lo      string_size                           hi
           |   |<---used--->|<----------available----------->|
           |   |            <--to pad-->|<---to write--->    |
-          0   buf                   positon
+          0   buf                   position
 
         */
         memset(self->buf + self->string_size, '\0',
index 4eb74ffe04f90761cf5ba622fdcb1d189bc86ad1..5102e2491d2dcbbfc8802b1d268598a73b298d03 100644 (file)
@@ -4874,7 +4874,7 @@ initmodule(void)
         goto error;
     if (!PyDict_CheckExact(name_mapping_3to2)) {
         PyErr_Format(PyExc_RuntimeError,
-                     "_compat_pickle.REVERSE_NAME_MAPPING shouldbe a dict, "
+                     "_compat_pickle.REVERSE_NAME_MAPPING should be a dict, "
                      "not %.200s", Py_TYPE(name_mapping_3to2)->tp_name);
         goto error;
     }
index af414a0c38912ef9a6d0bc3cfe0a8f7fa97b49a5..fe05297f3665155bd762f5a2b4aac6a84a4917ec 100644 (file)
@@ -55,7 +55,7 @@ typedef struct
     /* None for autocommit, otherwise a PyString with the isolation level */
     PyObject* isolation_level;
 
-    /* NULL for autocommit, otherwise a string with the BEGIN statment; will be
+    /* NULL for autocommit, otherwise a string with the BEGIN statement; will be
      * freed in connection destructor */
     char* begin_statement;
 
index 545e834cccc4f1610395dfb63b82536f857fa3b1..592b4ea4a20eec5817cd6a99cbbc8bbd0dd49265 100644 (file)
@@ -22,7 +22,7 @@
 /*
    CM_LARGE_DOUBLE is used to avoid spurious overflow in the sqrt, log,
    inverse trig and inverse hyperbolic trig functions.  Its log is used in the
-   evaluation of exp, cos, cosh, sin, sinh, tan, and tanh to avoid unecessary
+   evaluation of exp, cos, cosh, sin, sinh, tan, and tanh to avoid unnecessary
    overflow.
  */
 
index 9bdca0c0a29df0f4200b591023899d4dffbf0512..b04d246f1d05859e21ec6ce6a772ecc62fe96864 100644 (file)
@@ -2151,7 +2151,7 @@ will allow before refusing new connections.");
  * This is the guts of the recv() and recv_into() methods, which reads into a
  * char buffer.  If you have any inc/dec ref to do to the objects that contain
  * the buffer, do it in the caller.  This function returns the number of bytes
- * succesfully read.  If there was an error, it returns -1.  Note that it is
+ * successfully read.  If there was an error, it returns -1.  Note that it is
  * also possible that we return a number of bytes smaller than the request
  * bytes.
  */
@@ -2350,7 +2350,7 @@ See recv() for documentation about the flags.");
  * This is the guts of the recvfrom() and recvfrom_into() methods, which reads
  * into a char buffer.  If you have any inc/def ref to do to the objects that
  * contain the buffer, do it in the caller.  This function returns the number
- * of bytes succesfully read.  If there was an error, it returns -1.  Note
+ * of bytes successfully read.  If there was an error, it returns -1.  Note
  * that it is also possible that we return a number of bytes smaller than the
  * request bytes.
  *
@@ -2443,9 +2443,9 @@ sock_recvfrom(PySocketSockObject *s, PyObject *args)
 
     if (outlen != recvlen) {
         /* We did not read as many bytes as we anticipated, resize the
-           string if possible and be succesful. */
+           string if possible and be successful. */
         if (_PyBytes_Resize(&buf, outlen) < 0)
-            /* Oopsy, not so succesful after all. */
+            /* Oopsy, not so successful after all. */
             goto finally;
     }
 
@@ -4162,7 +4162,7 @@ os_init(void)
 
     return 0;  /* Failure */
 #else
-    /* No need to initialise sockets with GCC/EMX */
+    /* No need to initialize sockets with GCC/EMX */
     return 1; /* Success */
 #endif
 }
@@ -4195,7 +4195,7 @@ PySocketModule_APIObject PySocketModuleAPI =
    "socket.py" which implements some additional functionality.
    The import of "_socket" may fail with an ImportError exception if
    os-specific initialization fails.  On Windows, this does WINSOCK
-   initialization.  When WINSOCK is initialized succesfully, a call to
+   initialization.  When WINSOCK is initialized successfully, a call to
    WSACleanup() is scheduled to be made at exit time.
 */
 
index 8c40d21d501deb01ff9cf318ae064861526c25fc..a24728aeea0a98b29e9e5c32f87305c62c2d74b4 100644 (file)
@@ -706,7 +706,7 @@ time_mktime(PyObject *self, PyObject *tup)
     buf.tm_wday = -1;  /* sentinel; original value ignored */
     tt = mktime(&buf);
     /* Return value of -1 does not necessarily mean an error, but tm_wday
-     * cannot remain set to -1 if mktime succedded. */
+     * cannot remain set to -1 if mktime succeeded. */
     if (tt == (time_t)(-1) && buf.tm_wday == -1) {
         PyErr_SetString(PyExc_OverflowError,
                         "mktime argument out of range");
index d3ca28dc17fd1772e4fcfd919019ec1d08557c7c..fb5f42b58a0b07de6c64e56e8a23ab2a5088b165 100644 (file)
@@ -1049,7 +1049,7 @@ parse_dostime(int dostime, int dosdate)
 }
 
 /* Given a path to a .pyc or .pyo file in the archive, return the
-   modifictaion time of the matching .py file, or 0 if no source
+   modification time of the matching .py file, or 0 if no source
    is available. */
 static time_t
 get_mtime_of_source(ZipImporter *self, char *path)
index 05a5ab3a2c1251aa0b90aee68dfbd3ddc5d17838..b16f7a7728176a14ae182a405a6d8e7e5efacfb8 100644 (file)
@@ -188,7 +188,7 @@ typedef struct internal_state {
     int nice_match; /* Stop searching when current match exceeds this */
 
                 /* used by trees.c: */
-    /* Didn't use ct_data typedef below to supress compiler warning */
+    /* Didn't use ct_data typedef below to suppress compiler warning */
     struct ct_data_s dyn_ltree[HEAP_SIZE];   /* literal and length tree */
     struct ct_data_s dyn_dtree[2*D_CODES+1]; /* distance tree */
     struct ct_data_s bl_tree[2*BL_CODES+1];  /* Huffman tree for bit lengths */
index 7e90f4928fc0b67a4a4a5c76ab289394c41c7e55..5cf50e04c401b701f209aa5deebb25bd8ada26ed 100644 (file)
@@ -256,7 +256,7 @@ int ZEXPORT gzsetparams (file, level, strategy)
 /* ===========================================================================
      Read a byte from a gz_stream; update next_in and avail_in. Return EOF
    for end of file.
-   IN assertion: the stream s has been sucessfully opened for reading.
+   IN assertion: the stream s has been successfully opened for reading.
 */
 local int get_byte(s)
     gz_stream *s;
@@ -281,7 +281,7 @@ local int get_byte(s)
     mode to transparent if the gzip magic header is not present; set s->err
     to Z_DATA_ERROR if the magic header is present but the rest of the header
     is incorrect.
-    IN assertion: the stream s has already been created sucessfully;
+    IN assertion: the stream s has already been created successfully;
        s->stream.avail_in is zero for the first time, but may be non-zero
        for concatenated .gz files.
 */
index 9c17be7a2525816e8109fdccbd50ef82415f4441..8492c618d82532892b21439dfb2e217fe0f93fc7 100644 (file)
@@ -2070,7 +2070,7 @@ dict_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
         assert(d->ma_table == NULL && d->ma_fill == 0 && d->ma_used == 0);
         INIT_NONZERO_DICT_SLOTS(d);
         d->ma_lookup = lookdict_unicode;
-        /* The object has been implicitely tracked by tp_alloc */
+        /* The object has been implicitly tracked by tp_alloc */
         if (type == &PyDict_Type)
             _PyObject_GC_UNTRACK(d);
 #ifdef SHOW_CONVERSION_COUNTS
index e8b21f133cf3cdbd9185742168607961f398b6ae..b3bb21dbd0c0e9a102cf26acd760703685b050f4 100644 (file)
@@ -11,7 +11,7 @@
 /* Ensure ob_item has room for at least newsize elements, and set
  * ob_size to newsize.  If newsize > ob_size on entry, the content
  * of the new slots at exit is undefined heap trash; it's the caller's
- * responsiblity to overwrite them with sane values.
+ * responsibility to overwrite them with sane values.
  * The number of allocated elements may grow, shrink, or stay the same.
  * Failure is impossible if newsize <= self.allocated on entry, although
  * that partly relies on an assumption that the system realloc() never
index 7af5caf92e8fd1bf8d18632b3118406659f537ad..6f998ce033035c8c83818628b3bdd72823e42b03 100644 (file)
@@ -712,7 +712,7 @@ _PyLong_FromByteArray(const unsigned char* bytes, size_t n,
         is_signed = *pendbyte >= 0x80;
 
     /* Compute numsignificantbytes.  This consists of finding the most
-       significant byte.  Leading 0 bytes are insignficant if the number
+       significant byte.  Leading 0 bytes are insignificant if the number
        is positive, and leading 0xff bytes if negative. */
     {
         size_t i;
@@ -3196,7 +3196,7 @@ long_true_divide(PyObject *a, PyObject *b)
     if (failed)
         return NULL;
     /* 'aexp' and 'bexp' were initialized to -1 to silence gcc-4.0.x,
-       but should really be set correctly after sucessful calls to
+       but should really be set correctly after successful calls to
        _PyLong_AsScaledDouble() */
     assert(aexp >= 0 && bexp >= 0);
 
index caa405b9455ba1ecf32de1d2f658c80e8c58158a..310a56c4e5cd91c0b1dd5a51d3268bc8bd5f32c2 100644 (file)
@@ -1008,7 +1008,7 @@ subtype_dealloc(PyObject *self)
           self has a refcount of 0, and if gc ever gets its hands on it
           (which can happen if any weakref callback gets invoked), it
           looks like trash to gc too, and gc also tries to delete self
-          then.  But we're already deleting self.  Double dealloction is
+          then.  But we're already deleting self.  Double deallocation is
           a subtle disaster.
 
        Q. Why the bizarre (net-zero) manipulation of
@@ -5872,7 +5872,7 @@ recurse_down_subclasses(PyTypeObject *type, PyObject *name,
    slots compete for the same descriptor (for example both sq_item and
    mp_subscript generate a __getitem__ descriptor).
 
-   In the latter case, the first slotdef entry encoutered wins.  Since
+   In the latter case, the first slotdef entry encountered wins.  Since
    slotdef entries are sorted by the offset of the slot in the
    PyHeapTypeObject, this gives us some control over disambiguating
    between competing slots: the members of PyHeapTypeObject are listed
index fc2d2b970a12e071ba1e4e195745f8c2780257e3..c900f235fd91af8727cc44a1326a928589fe32f0 100644 (file)
@@ -54,7 +54,7 @@ BOOL ensure_directory(char *pathname, char *new_part, NOTIFYPROC notify)
     return TRUE;
 }
 
-/* XXX Should better explicitely specify
+/* XXX Should better explicitly specify
  * uncomp_size and file_times instead of pfhdr!
  */
 char *map_new_file(DWORD flags, char *filename,
@@ -164,7 +164,7 @@ extract_file(char *dst, char *src, int method, int comp_size,
         zstream.avail_out = uncomp_size;
 
 /* Apparently an undocumented feature of zlib: Set windowsize
-   to negative values to supress the gzip header and be compatible with
+   to negative values to suppress the gzip header and be compatible with
    zip! */
         result = TRUE;
         if (Z_OK != (x = inflateInit2(&zstream, -15))) {
index 8601ddd9f5a3e941e3202186b405209e89eae3e2..771922cfd6461a09bc9158b0266d1aa754d2d9bd 100644 (file)
@@ -148,7 +148,7 @@ BOOL pyc_compile, pyo_compile;
    the permissions of the current user. */
 HKEY hkey_root = (HKEY)-1;
 
-BOOL success;                   /* Installation successfull? */
+BOOL success;                   /* Installation successful? */
 char *failure_reason = NULL;
 
 HANDLE hBitmap;
@@ -797,7 +797,7 @@ run_installscript(char *pathname, int argc, char **argv, char **pOutput)
 
     tempname = tempnam(NULL, NULL);
     // We use a static CRT while the Python version we load uses
-    // the CRT from one of various possibile DLLs.  As a result we
+    // the CRT from one of various possible DLLs.  As a result we
     // need to redirect the standard handles using the API rather
     // than the CRT.
     redirected = CreateFile(
index 47c046ce7276201c329fe266b8c04c5dd1dbd7f8..ebda9cd94b5e2ee38cf8eb7163874c59ce69347b 100644 (file)
@@ -188,7 +188,7 @@ inv_handle:
     return NULL;
 }
 
-/* free dynamicaly-linked library */
+/* free dynamically-linked library */
 int dlclose(void *handle)
 {
     int rc;
index 49abecfbb537615221cb60e67596503585dfccd2..f73ae69513316bf5fcfc72bc82a6732d0eb848d3 100644 (file)
@@ -42,7 +42,7 @@ void *dlopen(char *filename, int flags);
 /* return a pointer to the `symbol' in DLL */
 void *dlsym(void *handle, char *symbol);
 
-/* free dynamicaly-linked library */
+/* free dynamically-linked library */
 int dlclose(void *handle);
 
 /* return a string describing last occurred dl error */
index f3433f1d7dc3442bfac67754498571dddf3ebaf9..d3ed871770521510eeb40b056b4d78d76fa73642 100644 (file)
@@ -27,7 +27,7 @@
 
 typedef unsigned long long uint64;
 
-/* PowerPC suppport.
+/* PowerPC support.
    "__ppc__" appears to be the preprocessor definition to detect on OS X, whereas
    "__powerpc__" appears to be the correct one for Linux with GCC
 */
@@ -1169,7 +1169,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
         if (--_Py_Ticker < 0) {
             if (*next_instr == SETUP_FINALLY) {
                 /* Make the last opcode before
-                   a try: finally: block uninterruptable. */
+                   a try: finally: block uninterruptible. */
                 goto fast_next_opcode;
             }
             _Py_Ticker = _Py_CheckInterval;
index f1eb6d97fac54ad31b99f078ac7b8568600bed6e..ea0d05d83371c2daef56e19c8d76f8986b424882 100644 (file)
@@ -503,7 +503,7 @@ _PyThread_CurrentFrames(void)
     /* for i in all interpreters:
      *     for t in all of i's thread states:
      *          if t's frame isn't NULL, map t's id to its frame
-     * Because these lists can mutute even when the GIL is held, we
+     * Because these lists can mutate even when the GIL is held, we
      * need to grab head_mutex for the duration.
      */
     HEAD_LOCK();
index b4e3ad0915fb27bf7c9ecd04416cd73c6a6ae99f..4a9b4368ac11ee515fed72f0335bfdb1b2cc5bae 100644 (file)
@@ -46,7 +46,7 @@
 #endif
 
 /* Check if we're running on HP-UX and _SC_THREADS is defined. If so, then
-   enough of the Posix threads package is implimented to support python
+   enough of the Posix threads package is implemented to support python
    threads.
 
    This is valid for HP-UX 11.23 running on an ia64 system. If needed, add
index ba3853c0be59f6847618fd9f03db74deef245a00..a41542f20ec971a0567984ea76d8bd39c135b32d 100644 (file)
@@ -7,7 +7,7 @@ I dont consider it worth parsing the MSVC makefiles for compiler options.  Even
 we get it just right, a specific freeze application may have specific compiler
 options anyway (eg, to enable or disable specific functionality)
 
-So my basic stragtegy is:
+So my basic strategy is:
 
 * Have some Windows INI files which "describe" one or more extension modules.
   (Freeze comes with a default one for all known modules - but you can specify
index c9d3a295f21951bf8c2933b92b7c76dc7b69690c..b21a8365f22a070744397d586dca89c92a462374 100755 (executable)
@@ -188,7 +188,7 @@ def fix(filename):
     except os.error as msg:
         err(filename + ': rename failed (' + str(msg) + ')\n')
         return 1
-    # Return succes
+    # Return success
     return 0
 
 # Tokenizing ANSI C (partly)
index 52cb3656e0c43f238ff52e911ffd170cdd95cf7e..c35170cac4ce1fb53001fff1999f7cc4bd8f0e98 100644 (file)
@@ -866,7 +866,7 @@ class Hash:
                 poly = size + poly
                 break
         else:
-            raise AssertionError("ran out of polynominals")
+            raise AssertionError("ran out of polynomials")
 
         print(size, "slots in hash table")
 
index 54400cbd6ad2915ea98a6570800cc5f5b80d90b4..51f8fde40aa9a17a65f79c218f8648dcd8003d74 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -993,8 +993,8 @@ class PyBuildExt(build_ext):
             if sys.platform == 'darwin':
                 # In every directory on the search path search for a dynamic
                 # library and then a static library, instead of first looking
-                # for dynamic libraries on the entiry path.
-                # This way a staticly linked custom sqlite gets picked up
+                # for dynamic libraries on the entire path.
+                # This way a statically linked custom sqlite gets picked up
                 # before the dynamic library in /usr/lib.
                 sqlite_extra_link_args = ('-Wl,-search_paths_first',)
             else: