Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ec1aa5c

Browse files
committed
More typos in 3.5 documentation and comments
1 parent 3f930dc commit ec1aa5c

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

Lib/test/test_time.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ def test_FromSecondsObject(self):
773773
(2**23 - 1e-9, 8388607999999999),
774774
(2**23, 8388608000000000),
775775

776-
# start loosing precision for value > 2^23 seconds
776+
# start losing precision for value > 2^23 seconds
777777
(2**23 + 1e-9, 8388608000000002),
778778

779779
# nanoseconds are lost for value > 2^23 seconds
@@ -848,7 +848,7 @@ def test_AsSecondsDouble(self):
848848
(4194304000000000, 2**22),
849849
(4194304000000001, 2**22 + 1e-9),
850850

851-
# start loosing precision for value > 2^23 seconds
851+
# start losing precision for value > 2^23 seconds
852852
(8388608000000002, 2**23 + 1e-9),
853853

854854
# nanoseconds are lost for value > 2^23 seconds

Misc/NEWS

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ Build
285285
-----
286286

287287
- Issue #24915: Add LLVM support for PGO builds and use the test suite to
288-
generate the profile data. Initiial patch by Alecsandru Patrascu of Intel.
288+
generate the profile data. Initial patch by Alecsandru Patrascu of Intel.
289289

290290
- Issue #24910: Windows MSIs now have unique display names.
291291

@@ -1693,7 +1693,7 @@ Core and Builtins
16931693
type) can now be weakref'ed. Patch by Wei Wu.
16941694

16951695
- Issue #22077: Improve index error messages for bytearrays, bytes, lists,
1696-
and tuples by adding 'or slices'. Added ', not <typename' for bytearrays.
1696+
and tuples by adding 'or slices'. Added ', not <typename>' for bytearrays.
16971697
Original patch by Claudiu Popa.
16981698

16991699
- Issue #20179: Apply Argument Clinic to bytes and bytearray.

Objects/abstract.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2131,7 +2131,7 @@ PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw)
21312131

21322132
/* PyObject_Call() must not be called with an exception set,
21332133
because it may clear it (directly or indirectly) and so the
2134-
caller looses its exception */
2134+
caller loses its exception */
21352135
assert(!PyErr_Occurred());
21362136

21372137
call = func->ob_type->tp_call;

Objects/methodobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ PyCFunction_Call(PyObject *func, PyObject *args, PyObject *kwds)
8989

9090
/* PyCFunction_Call() must not be called with an exception set,
9191
because it may clear it (directly or indirectly) and so the
92-
caller looses its exception */
92+
caller loses its exception */
9393
assert(!PyErr_Occurred());
9494

9595
flags = PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST);

0 commit comments

Comments
 (0)