]> granicus.if.org Git - python/commitdiff
More typos in 3.5 documentation and comments
authorMartin Panter <vadmium+py@gmail.com>
Wed, 7 Oct 2015 11:03:53 +0000 (11:03 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Wed, 7 Oct 2015 11:03:53 +0000 (11:03 +0000)
Lib/test/test_time.py
Misc/NEWS
Objects/abstract.c
Objects/methodobject.c

index de0cbc4020f614478cad3f3d5aeaa4d4232d1231..76b894eece46e03055138d3e6c136093d887c9bd 100644 (file)
@@ -773,7 +773,7 @@ class TestPyTime_t(unittest.TestCase):
                 (2**23 - 1e-9,  8388607999999999),
                 (2**23,         8388608000000000),
 
-                # start loosing precision for value > 2^23 seconds
+                # start losing precision for value > 2^23 seconds
                 (2**23 + 1e-9,  8388608000000002),
 
                 # nanoseconds are lost for value > 2^23 seconds
@@ -848,7 +848,7 @@ class TestPyTime_t(unittest.TestCase):
             (4194304000000000, 2**22),
             (4194304000000001, 2**22 + 1e-9),
 
-            # start loosing precision for value > 2^23 seconds
+            # start losing precision for value > 2^23 seconds
             (8388608000000002, 2**23 + 1e-9),
 
             # nanoseconds are lost for value > 2^23 seconds
index e0ac4fcc96d69a25790fabd5aee1fe5ee95b69d7..e055bd5db00304237b11502e228841ddc1e203c0 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -285,7 +285,7 @@ Build
 -----
 
 - Issue #24915: Add LLVM support for PGO builds and use the test suite to
-  generate the profile data. Initiial patch by Alecsandru Patrascu of Intel.
+  generate the profile data. Initial patch by Alecsandru Patrascu of Intel.
 
 - Issue #24910: Windows MSIs now have unique display names.
 
@@ -1693,7 +1693,7 @@ Core and Builtins
   type) can now be weakref'ed.  Patch by Wei Wu.
 
 - Issue #22077: Improve index error messages for bytearrays, bytes, lists,
-  and tuples by adding 'or slices'. Added ', not <typename' for bytearrays.
+  and tuples by adding 'or slices'. Added ', not <typename>' for bytearrays.
   Original patch by Claudiu Popa.
 
 - Issue #20179: Apply Argument Clinic to bytes and bytearray.
index 31cc0a8ba51c9587022256baac6b193d1f3254d4..039a4ca052c32f459fbd78fa50ff40cef14f238f 100644 (file)
@@ -2131,7 +2131,7 @@ PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw)
 
     /* PyObject_Call() must not be called with an exception set,
        because it may clear it (directly or indirectly) and so the
-       caller looses its exception */
+       caller loses its exception */
     assert(!PyErr_Occurred());
 
     call = func->ob_type->tp_call;
index 1817722940a6b82fb4a5ec255b5fe9ce1b3d65b0..946357f24a9aa43097e41e9b7aa2643dac90a292 100644 (file)
@@ -89,7 +89,7 @@ PyCFunction_Call(PyObject *func, PyObject *args, PyObject *kwds)
 
     /* PyCFunction_Call() must not be called with an exception set,
        because it may clear it (directly or indirectly) and so the
-       caller looses its exception */
+       caller loses its exception */
     assert(!PyErr_Occurred());
 
     flags = PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST);